orionblastar / K666

K666 is forum discussion software, this is an attempt to write the Free version FreeK666 without violating copyright
http://k666.kr5ddit.com
MIT License
5 stars 0 forks source link

Replace fixed urls with their names. #27

Open procrasti opened 8 years ago

procrasti commented 8 years ago

After you've completed the first tutorial, you will see you can name urls, and we shouldn't link to them with hardcoded urls, but by their name.

So, in common_links and the other fragments, replace the hardcoded urls with:

For example,

{% url 'inbox' %}

Do the same with static files, but they aren't named, but you drop the /static/ from them:

{% static 'up.jpg' %}
{% static 'index.html' %}
procrasti commented 8 years ago

Make a branch and all that, you come up with the name.