Re: Adding seperate static css file for other extended templates.

2018-03-27 Thread Mike Dewhirst
On 27/03/2018 5:08 PM, prince gosavi wrote: Thanks for the reply but it is not working for me. When i check the page source of the loaded page the 'query.css' is not loaded. Is it because of the urls? or path? or something else. here is my static settings: | settings.py STATIC_URL ='/static/'

Re: Adding seperate static css file for other extended templates.

2018-03-27 Thread prince gosavi
Thanks for the reply but it is not working for me. When i check the page source of the loaded page the 'query.css' is not loaded. Is it because of the urls? or path? or something else. here is my static settings: settings.py STATIC_URL = '/static/' STATICFILES_DIRS = ( os.path.join(BASE_DIR,

Re: Adding seperate static css file for other extended templates.

2018-03-26 Thread Mike Dewhirst
On 27/03/2018 3:09 PM, prince gosavi wrote: I am working on a project where I need to have different styles for different templates. I have a base.html template which gets extended in other templates. Following is the snippet: | base.html {%load static%} Recommendation    

Adding seperate static css file for other extended templates.

2018-03-26 Thread prince gosavi
I am working on a project where I need to have different styles for different templates. I have a base.html template which gets extended in other templates. Following is the snippet: base.html {% load static %} Recommendation {% block css%} {% endblock%}