3
0
Fork 0
mirror of https://github.com/nanoy42/coope synced 2024-11-12 12:56:26 +00:00

Implements local settings

This commit is contained in:
Yoann Pétri 2018-12-10 12:37:07 +01:00
parent 1cb2561b4c
commit 1428bff926
2 changed files with 29 additions and 21 deletions

View file

@ -0,0 +1,26 @@
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'Your secret key'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ['Server ip']
# Admins
ADMINS = []
EMAIL_HOST = ""
SERVER_EMAIL = ""
# Database
# https://docs.djangoproject.com/en/2.1/ref/settings/#databases
DATABASES = {
'default': {
#'ENGINE': 'django.db.backends.sqlite3',
#'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}

View file

@ -12,6 +12,8 @@ https://docs.djangoproject.com/en/2.1/ref/settings/
import os
from .local_settings import *
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@ -19,14 +21,6 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '4q7i$qbv)fdz&%i@&!eb_x$x9119s8co8nx9e84@9#d8i)lso4'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ['127.0.0.1']
# Application definition
INSTALLED_APPS = [
@ -78,18 +72,6 @@ TEMPLATES = [
WSGI_APPLICATION = 'coopeV3.wsgi.application'
# Database
# https://docs.djangoproject.com/en/2.1/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.1/ref/settings/#auth-password-validators
@ -132,4 +114,4 @@ STATICFILES_DIRS = [
]
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
LOGIN_URL = '/users/login'
LOGIN_URL = '/users/login'