suchen

Heim  >  Fragen und Antworten  >  Hauptteil

python - django在nginx里模板输出html标签问题

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

巴扎黑巴扎黑2866 Tage vor627

Antworte allen(2)Ich werde antworten

  • PHPz

    PHPz2017-04-18 10:23:47

    试试python manage.py runserver 0.0.0.0:8000

    Antwort
    0
  • PHP中文网

    PHP中文网2017-04-18 10:23:47

    试试用 gunicorn 运行 django

    Antwort
    0
  • StornierenAntwort