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/'
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,
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
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%}
4 matches
Mail list logo