- Post By Manfred Lim
- 4 years ago
1. Create a new folder “static” in the root of the main project. Same level as the global “templates” directory.
2. Add this code to your base template file (base.html).
{% load staticfiles %}
3. Use this to load the files.
4. Add this to your settings.py file.
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static'),
]