python+django學習二

全部模型類型的準備和遷移python

在setting.py中添加:AUTH_USER_MODEL = 'users.UserProfile' 繼承用戶模板git

確保子項目的url如今都是空的,github

在pycharm的file=>settings中:添加pillow包django

在terminal中運行命令:app

python manage.py makemigrations   成功的狀態ssh

而後運行:python manage.py migrate      成功狀態:url

 添加xamdi到項目中地址https://github.com/sshwsfc/xadminspa

按照apps的創建新建extra_apps文件.net

導入包:django>=1.9.0
django-crispy-forms>=1.6.0
django-import-export>=0.5.1
django-reversion>=2.0
django-formtools==2.0
future==0.15.2
httplib2==0.9.2
six==1.10.0
而後我弄的是django是2.0的版本,而後就是各類錯誤
參考博客:https://blog.csdn.net/yuezhuo_752/article/details/87916995,裏面有錯誤解決方式orm

 而後執行建立管理員帳號 python manage.py createsuperuser

相關文章
相關標籤/搜索