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/'
STATICFILES_DIRS =(
    os.path.join(BASE_DIR,'static'),
)

STATIC_ROOT =os.path.join(BASE_DIR,'staticfiles')
|

my project structure is something like this:


You need to add some print statements to your settings when DEBUG is True so you can see where your static dirs and files etc actually are and where your static URL is so everything becomes clear.

Then you can view source of your web page and check things are as they should be.



--
You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/92250d8f-2115-42d5-aad5-241a933a1803%40googlegroups.com <https://groups.google.com/d/msgid/django-users/92250d8f-2115-42d5-aad5-241a933a1803%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8ef9eaa1-f1df-9567-8f21-8b05eb3d1f71%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.

Reply via email to