diff --git a/ram/ram/local_settings.py.tmpl b/ram/ram/local_settings.py.tmpl new file mode 100644 index 0000000..d77b50b --- /dev/null +++ b/ram/ram/local_settings.py.tmpl @@ -0,0 +1,20 @@ +# vim: syntax=python + +""" +Django local_settings for ram project. +""" + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = ( + "django-insecure-1fgtf05rwp0qp05@ef@a7%x#o+t6vk6063py=vhdmut0j!8s4u" +) + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = False + +STORAGE_DIR = BASE_DIR / "storage" +ALLOWED_HOSTS = ["127.0.0.1"] +CSRF_TRUSTED_ORIGINS = ["https://myhost"] +ROOT_URLCONF = "ram.urls" +STATIC_URL = "static/" +MEDIA_URL = "media/" diff --git a/ram/ram/settings.py b/ram/ram/settings.py index 74dd8bf..c5f0a7e 100644 --- a/ram/ram/settings.py +++ b/ram/ram/settings.py @@ -161,3 +161,10 @@ ROLLING_STOCK_TYPES = [ ("equipment", "Equipment"), ("other", "Other"), ] + +try: + from ram.local_settings import * +except ImportError: + # If a local_setting.py does not exist + # settings in this file only will be used + pass