zoukankan      html  css  js  c++  java
  • django的安装和初步使用

    安装参考:步骤也可以参考这个 很详细
    https://blog.csdn.net/zww1984774346/article/details/54408759

    如果想在终端查看项目结构 需要用到tree命令 可以用brew install 安装, 这个是专门安装mac 系统之外的一些插件之类的

    注意点以及遇到的问题:

    运行命令时用python3 ...

    然后遇到一个异常:

    Python异常:Django2.0.5--context must be a dict rather than Context/RequestContext.

    解决办法参考:https://blog.csdn.net/u013685902/article/details/80857542 

    就是将 views.py 中的

    # c = Context({"title": "djangon"})
      c = {"title": "djangon"}


    django中文文档:http://django-chinese-docs-16.readthedocs.io/en/latest/
    此文仅为鄙人学习笔记之用,朋友你来了,如有不明白或者建议又或者想给我指点一二,请私信我。liuw_flexi@163.com/QQ群:582039935. 我的gitHub: (学习代码都在gitHub) https://github.com/nwgdegitHub/
  • 相关阅读:
    python 杂谈
    python: list转字符串
    dataframe
    time模块
    python 调试器
    BAT机器学习面试1000题系列(41-45题)
    join()函数
    value_counts()
    模型评估
    04flask_scripts使用
  • 原文地址:https://www.cnblogs.com/liuw-flexi/p/9257108.html
Copyright © 2011-2022 走看看