[Django]-Converting existing css/html page into Django

3👍

With Django, the static files are separated from the main web page templates. See the documentation on static files for more information.

1👍

Use {% static %} method with every CSS and JS reference.

If href = "stackoverflow.jpeg" then adjust your code as follows :

href = "{% static 'stackoverflow.jpeg'%}"

Do the same with every piece of JS and CSS code.

Leave a comment