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$ 
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容