diff --git a/pinry/local_settings.py b/pinry/local_settings.py new file mode 100644 index 0000000..bcce682 --- /dev/null +++ b/pinry/local_settings.py @@ -0,0 +1,48 @@ +import os + + +# Please don't change following settings unless you know what you are doing +STATIC_ROOT = '/data/static' + +MEDIA_ROOT = os.path.join(STATIC_ROOT, 'media') + +# SECURITY WARNING: keep the secret key used in production secret! +# Or just write your own secret-key here instead of using a env-variable +SECRET_KEY = "LUdDIZ6FcVn0Lvajb6IY4cwGvAaomVtP" + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = False +TEMPLATE_DEBUG = DEBUG + +# SECURITY WARNING: use your actual domain name in production! +ALLOWED_HOSTS = ['research.scarif.space', 'research.scarif.local'] + +# Database +# https://docs.djangoproject.com/en/1.10/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': '/data/production.db', + } +} + +# Allow users to register by themselves +ALLOW_NEW_REGISTRATIONS = False + +# Delete image files once you remove your pin +IMAGE_AUTO_DELETE = True + +# thumbnail size control +IMAGE_SIZES = { + 'thumbnail': {'size': [240, 0]}, + 'standard': {'size': [600, 0]}, + 'square': {'crop': True, 'size': [125, 125]}, +} + +# Whether people can view pins without login +PUBLIC = True + +ENABLED_PLUGINS = [ + 'pinry_plugins.batteries.plugin_example.Plugin', +]