django

经历了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$ 
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容