官网:https://www.djangoproject.com/
中文文档:https://www.gitbook.com/book/wizardforcel/django-chinese-docs-18/details
前端框架:http://v3.bootcss.com/
菜鸟教程:http://www.runoob.com/django/django-tutorial.html
pycharm下调试django:http://blog.youkuaiyun.com/Peach_CodeRider/article/details/53138442
uwsgi:
http://www.nowamagic.net/academy/detail/1330328
http://www.nowamagic.net/academy/detail/1330331
报错:The translation infrastructure cannot be initialized before the apps registry is ready. Check that you don't make
non-lazy gettext calls at import time.
在nginx+uwsgi环境下运行django时,按照古老的教程来写出现了错误,错误出现在你编写的wsgi.py中,做如下修改:
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
而不是之前的WSGIHandler
http://www.nowamagic.net/academy/detail/1330334
uwsgi -h查看参数含义
将参数写入配置文件启动(uwsgi -x a.xml)时报错:UNABLE to load uWSGI plugin: ./python_plugin.so: cannot open shared object
file: No such file or directory
http://www.th7.cn/system/lin/201408/66585.shtml里面给出了解决方案:
可以将<plugins>python</plugins>去掉
另外注意:
nginx.conf的server_name不要配成localhost。
uwsgi接nginx的时候,不要以http的方式起,要以uwsgi-socket的方式,即:--uwsgi-socket :8000
模型使用mysql时需要安装mysql python:
sudo apt-get install python-mysqldb
linuxmint18上django开发
最新推荐文章于 2022-08-22 10:31:31 发布