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

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

巴扎黑
巴扎黑

répondre à tous(2)
PHPzhong

Essayez python manage.py runserver 0.0.0.0:8000

Ty80

Essayez d'exécuter Django avec Gunicorn

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!