美文网首页
后台系统搭建(待续。。。)

后台系统搭建(待续。。。)

作者: 又大又甜的桂圆 | 来源:发表于2018-05-11 06:57 被阅读0次
  1. 在anaconda的base环境中运行terminal 执行pip install django
import django
print(django.get_version())
2.0.5
print(django.__path__)
['/Users/gy/anaconda3/lib/python3.6/site-packages/django']

cd mysite1/
tree
python manage.py runserver

python manage.py runserver
  File "<ipython-input-17-0c7648aaa463>", line 1
    python manage.py runserver
                ^
SyntaxError: invalid syntax
  1. django中的model类型
  2. django2.0中的url配置
  3. makemigrations migrate
  4. django内置的queryset类型,优点是支持for循环,通过filter基于用户进行筛选,也支持像quertset[2:8]一样的数组操作
  5. save方法
  6. render方法
  7. 表单的提交
  8. 内置的一些函数
  9. 自定义认证

相关文章

网友评论

      本文标题:后台系统搭建(待续。。。)

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