python - django在nginx里模板输出html标签问题
巴扎黑
巴扎黑 2017-04-18 10:21:47
0
2
563

就是用python manage.py runserver 8000运行的时候,django模板用了safe是可以输出带html标签的数据。
然后在nginx和uwsgi环境下运行的时候,带html标签的数据就不输出了,然后把标签去掉,模板就正常输出了。
求解了,谢谢!

巴扎黑
巴扎黑

reply all(2)
PHPzhong

Try python manage.py runserver 0.0.0.0:8000

Ty80

Try running django with gunicorn

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!