I have an issue when I put online my Django Project. If I have an {% url ... %}
tag in my main html file (base.html), I see " Server Error 500
".
If I remove all these lines with {% url ... %}
, my django website works fine and the " Server Error 500
" disappears ! I have this issue only with the URL tag.
For information, I have no issue when I work locally (127.0.0.1) on my computer. My hosting ( Alwaysdata.com ) use python 2.6 and Django 1.6.4
Could you help me please ? :)
I solved the issue by adding #-*- coding: utf-8 -*-
at the begenning of all my Python (*.py)
files because it's an old version about python (2.6)
Thank's to all :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.