Reputation: 29
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 ? :)
Upvotes: 1
Views: 445
Reputation: 29
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 :)
Upvotes: 1