django

經(jīng)歷了4次失敗,終于生成數(shù)據(jù)移植文件了

~/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$ 
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容