edraizen / HistoneDB

Browse all histone sequences by histone varaints
http://www.ncbi.nlm.nih.gov/projects/HistoneDB2.0
0 stars 2 forks source link

suggested modification #58

Closed molsim closed 9 years ago

molsim commented 9 years ago

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/")

edraizen commented 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.

molsim commented 9 years ago

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

edraizen commented 9 years ago

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.