Hi Siddarth, I am also using the STATICFILES_DIRS =[ ] to point to my own css but it is not pointing. In layout.html (which is extending base.html) the stylesheet is like this: <link rel="stylesheet" type="text/css" href="{% static "oscar /css/styles.css" %}" />
When I open chrome developer's tool then in the styles tab it shows that it is pointing .less from django oscar not my own .css. How to resolve the problem? On Friday, October 30, 2015 at 2:38:38 PM UTC+5:30, Siddharth Mahato wrote: > > You were right. My 'STATICFILES_DIR' wasn't pointing to the location of > the custom css file. Solved now. Thanks both of you. > > On Friday, October 30, 2015 at 12:36:07 AM UTC+5:30, 06us...@gmail.com > wrote: >> >> I agree with Dennis W, there could be a disconnect between the location >> of your static folder and the STATICFILES_DIR used by Django to retrieved >> the static files. >> >> For my project, I had to set STATICFILES_DIR in "settings.py" as below in >> order for the "new" CSS to be retrieved for Oscar. >> >> ########################################## >> # STATICFILES_DIR for project level CSS # >> ########################################## >> import os >> >> SETTINGS_ROOT_DIR = os.path.dirname(__file__) >> PROJECT_ROOT_DIR = os.path.join(SETTINGS_ROOT_DIR, '..') >> STATICFILES_DIRS = ( >> os.path.join(PROJECT_ROOT_DIR, 'static'), >> ) >> > -- https://github.com/django-oscar/django-oscar http://django-oscar.readthedocs.org/en/latest/ https://twitter.com/django_oscar --- You received this message because you are subscribed to the Google Groups "django-oscar" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/django-oscar. To view this discussion on the web, visit https://groups.google.com/d/msgid/django-oscar/c94a4faa-054f-4a3e-aec9-43f7a87fd6df%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.