3👍
Maybe this will help:
STATIC_URL = '/static/'
if not DEBUG:
STATIC_ROOT = ''
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static/'),
]
👤jack
1👍
The problem is in the STATIC_ROOT and STATICFILES_DIRS there names cant be same.
static root is used for collectstatic command of django.
You can remove it if not using it.
And can also remove static files dirs if not changing its default position(inside django app) to somewhere else like base or something.
👤Amit
- Django-tables2 set of columns
- Does changing a django models related_name attribute require a south migration?
- Django filter on APIView
- How do I use Django signals with an abstract model?
Source:stackexchange.com