openworm / ChannelWorm

Tools and curated datasets to build quantitative models of C. elegans ion channels
MIT License
12 stars 11 forks source link

Remove duplicate static files #140

Closed VahidGh closed 9 years ago

VahidGh commented 9 years ago

With the latest updates to UI, now we have two static directories with the same content under wsgi, and related directories for each app (digitizer, web_app, ec).

miladjafary commented 9 years ago

@VahidGh I only see one static directory under wsgi directory. and there is not any duplicate static file. would you please expelling more?

VahidGh commented 9 years ago

@miladjafary, e.g. this and this

miladjafary commented 9 years ago

@VahidGh I think it's because of "collectstatic" command. May be in production env, we can delete static folders from app directory.

VahidGh commented 9 years ago

I see. I guess we should use -link to prevent creation of those files in the wsgi directory (creating symbolic link instead). Would you please check which one is not required and then remove unnecessary ones?

miladjafary commented 9 years ago

Sure , I will do it

rgerkin commented 9 years ago

@VahidGh @miladjafary Typically "collectstatic" is run only in production, because in production your static files are only served from one place, served by Apache or Nginx or whatever. In testing locally, the django test server can just serve them from the app directories. And so your staticfiles directory list should have the production location listed first (which will be ignored in local testing), and then the app directory locations next (or rather the staticfiles module that refers to the app directories).

VahidGh commented 9 years ago

@rgerkin, Right. thanks for your comment.