新手学习django,发现数据库同步改用migrate了 ,请问要默认127.0.0.1/admin页面 怎么登陆,谢谢了
1
wuming 2015-02-11 16:21:42 +08:00 1
仍然可以使用syncdb,运行python manager makemigrations 后在syncdb就好, 创建admin还可以用命令python manager.py createsuperuser
|
2
Anybfans OP |
4
zeroten 2015-02-11 16:51:21 +08:00
有取消?没看到相关文档。用1.7.1正常,这么重大的更新不会在小版本号出现吧?
|
5
imlonghao 2015-02-11 16:59:39 +08:00 via Android 1
root@webserver:/var/www/esd.cc# python manage.py
Usage: manage.py subcommand [options] [args] Options: -v VERBOSITY, --verbosity=VERBOSITY Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output --settings=SETTINGS The Python path to a settings module, e.g. "myproject.settings.main". If this isn't provided, the DJANGO_SETTINGS_MODULE environment variable will be used. --pythonpath=PYTHONPATH A directory to add to the Python path, e.g. "/home/djangoprojects/myproject". --traceback Raise on exception --no-color Don't colorize the command output. --version show program's version number and exit -h, --help show this help message and exit Type 'manage.py help <subcommand>' for help on a specific subcommand. Available subcommands: [auth] changepassword createsuperuser |
6
imlonghao 2015-02-11 17:01:33 +08:00 via Android
|
7
Anybfans OP @guoqiao 配置正确的。。
E:\Github\Learn\Django\mysite>manage.py help Type 'manage.py help <subcommand>' for help on a specific subcommand. Available subcommands: [auth] changepassword createsuperuser [django] check compilemessages createcachetable dbshell diffsettings dumpdata flush inspectdb loaddata makemessages makemigrations migrate shell showmigrations sqlflush sqlmigrate sqlsequencereset squashmigrations startapp startproject test testserver [sessions] clearsessions [staticfiles] collectstatic findstatic runserver 貌似已经没有这个方法了。。 |
8
Anybfans OP @imlonghao 哈哈 谢谢了。感觉syncdb要简单一点。。已经成功了。。我manage.py help 发现貌似真的没有syncdb这个方法了。。
|