mvantellingen/localshop — pull request #38 by jezdez (2012-12-27 18:35:41+00:00)
Title: configurations adoption

This is more like a proposal (includes the changes from #37 for completeness sake) to remove the need for Logan since I believe it implements an anti-pattern by re-implementing many of Django's abilities, e.g. commands.

Instead I'd like to propose to adopt django-configurations instead by yours truly. I've ported the settings to using one of the base configurations classes and wrote a small function to do the same as Logan with regard to settings in ~/.localshop/localshop.conf.py. The only thing missing (which I've found not needed very much) is the `init` management command.

The main advantage is to be able to use `Procfile` compatible deployements as done by Heroku (via the excellent Foreman, http://ddollar.github.com/foreman/), Gaffer (http://gaffer.rtfd.org/, by the Gunicorn author) or Honcho (https://github.com/nickstenning/honcho). This should also fix the odd issue of Celery not being able to run the localshop's tasks reliably since it can use a simple manage.py.

I'm be very interested to hear what you think about that, whether this would be an acceptable change.