secret settings

This commit is contained in:
vabene1111
2018-02-05 11:26:30 +01:00
parent 9a5a0aa617
commit 42aeeb569b
7 changed files with 140 additions and 163 deletions

View File

@@ -0,0 +1,29 @@
"""
Setting file for secret settings
imported by settings.py
TEMPLATE FILE: remove .template extension and fill in missing values
"""
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
# defined in secret settings to be able to use local sqlite db's
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = ''
# Database
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
# Dropbox API access token
# see https://www.dropbox.com/developers/documentation/http/documentation for more info
DROPBOX_API_KEY = ""

View File

@@ -11,16 +11,11 @@ https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
from Recipies.secret_settings import *
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '3*2&bz92brcnq^3c9b=_g%sc3b(i1j#rs*%1k67c8=cy2397j3'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
@@ -77,16 +72,6 @@ TEMPLATES = [
WSGI_APPLICATION = 'Recipies.wsgi.application'
# Database
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
# Password validation
# https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators