Skip to content Skip to sidebar Skip to footer

Problem With Django Styling

Hi new to django but I'm having issues with the stylesheets (CSS) of pages. my settings.py contains MEDIA_ROOT = '' MEDIA_URL = '' TEMPLATE_DIRS = ( os.path.join(os.path.dirname(_

Solution 1:

The templates setting is just for aiding when you're selecting a template file for rendering in your view handler.

If you want to serve files, such as CSS, see how to serve static files with Django, which is the easiest way. The best way, however, is to configure your server to, for the CSS (and other static files) requests, serve the files himself instead of handing the request to the Django handler.

Post a Comment for "Problem With Django Styling"