Pyoseo settings

Django settings for pyoseo project.

For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/

For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/

pyoseo.settings.CELERY_TASK_RESULT_EXPIRES = 18000

5 hours

pyoseo.settings.find_or_create_secret_key()

Look for secret_key.py and return the SECRET_KEY entry in it if the file exists. Otherwise, generate a new secret key, save it in secret_key.py, and return the key.

Adapted from Miles Steel’s blog at http://blog.milessteele.com/posts/2013-07-07-hiding-djangos-secret-key.html