I suppose that's my confusion - before this, each application directory had it's own /static/ directory with /css/, /js/ and /img/ directories as needed. I adjusted the settings as mentioned and tried the following:
DEBUG = False PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) STATIC_ROOT = os.path.join(PROJECT_PATH, 'static') STATIC_URL = '/static/' STATICFILES_DIRS = ( os.path.join(PROJECT_PATH, 'static'),) CollectStatic now works properly - it collects everything into the project root under static. File linking isn't though - the links dont work, and so none of the css or javascript loads. I'm wondering if I'm misusing the css tags I'm testing with. An example from my base template: {% load static %} <link href="{% static '/css/custom.css' %}" media="screen"> Thank you for your time, Vernon Burt On Thursday, March 6, 2014 8:08:07 PM UTC-8, Vernon Burt wrote: > > Hello all, > > I've pretty quikly found out in my DJango adventure that I need to have > some kind of versioning for my static css and javascript files. After > talking to some web developers I was directed to use Django's > CachedStaticFilesStorage app to append an md5 hash to the static files > path. No matter how I set my static settings the files don't seem to get > the has appended and I can no longer link to any of my static files, > either directly or using the static directive. I was wondering if anyone > might know what I am doing wrong. > > My Settings: > > STATIC_ROOT = 'staticfiles' > > STATIC_URL = '' > # Additional locations of static files > STATICFILES_DIRS = () > > STATICFILES_FINDERS = ( > 'django.contrib.staticfiles.finders.FileSystemFinder', > 'django.contrib.staticfiles.finders.AppDirectoriesFinder',) > > STATICFILES_STORAGE = > 'django.contrib.staticfiles.storage.CachedStaticFilesStorage' > > > My Template entry: > > {% block cssfiles %}{% load static%}<link href="{% static > "/static/css/map.css" %}" media="screen">{% endblock %} > > Anything that can point me in the right direction would help.If intrested, > I've also had this question up on StackOverflow for a few days: > http://stackoverflow.com/questions/22130697/djangos-cachedstaticfilesstorage-not-hashing-file-urls > > > -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0253cd85-a788-42fe-92e3-130af02d2d65%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.