django

作者: CaesarsTesla | 来源:发表于2017-04-06 22:40 被阅读96次

经历了4次失败,终于生成数据移植文件了

~/Documents/Python$ django-admin startproject djangosite


~/Documents/Python/djangosite$ python manage.py startapp app

screenshot.png
~/Documents/Python/djangosite$ python manage.py runserver 0.0.0.0:8081
Performing system checks...

System check identified no issues (0 silenced).

You have 13 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.

April 06, 2017 - 14:29:54
Django version 1.10.6, using settings 'djangosite.settings'
Starting development server at http://0.0.0.0:8081/
Quit the server with CONTROL-C.
[06/Apr/2017 14:30:36] "GET /app/ HTTP/1.1" 200 25
Performing system checks...

System check identified no issues (0 silenced).

You have 13 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.

April 06, 2017 - 14:33:46
Django version 1.10.6, using settings 'djangosite.settings'
Starting development server at http://0.0.0.0:8081/
Quit the server with CONTROL-C.
^C~/Documents/Python/djangosite$ python manage.py makemigrations app
Migrations for 'app':
  app/migrations/0001_initial.py:
    - Create model Moment
~/Documents/Python/djangosite$ 

相关文章

网友评论

      本文标题:django

      本文链接:https://www.haomeiwen.com/subject/cakcattx.html