Closed molsim closed 9 years ago
Hmm, we need to distinguish between the two paths. ROOT is how to access the files on the filesystem and URL is how to access the files through the web. I can add the URL as a environment variable.
I see. Probably the URL is not important anyway. The problem I ran to with ROOT: with older version of static root - some of the initial manage.py scripts fail on my laptop. They have STATIC_ROOT hardcoded in some HMM scripts or alike. While with the suggested version there is a clash with STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static"), ] and web server complains ImproperlyConfigured: The STATICFILES_DIRS setting should not contain the STATIC_ROOT setting
STATIC_ROOT is not needed becuase we don't need to collect static. We will use STATIC_ROOT_AUX in scripts who need access to the path.
Some paths in settings.py are machine specific. Can we do this change:
STATIC_URL = '/projects/histonedb/HistoneDB/static/'
STATIC_URL=os.path.join(BASE_DIR, "static/")
STATIC_ROOT = '/web/public/htdocs/projects/histonedb/HistoneDB/static/'
STATIC_ROOT=os.path.join(BASE_DIR, "static/")