I am very new to django, and gone through tutorial for many days , i have started building a small website using django and trying to serve a css f
django
css
in settings.py try.
settings.py
PROJECT_DIR = os.path.dirname(__file__) ... MEDIA_ROOT = os.path.join(PROJECT_DIR,'media') MEDIA_URL = '/media/' STATIC_ROOT = os.path.join(PROJECT_DIR,'static') STATIC_URL = '/static/'
my settings.py file is usually in same directory as static directory