rebelstuff

Keep track of your stuff
git clone https://git.ce9e.org/rebelstuff.git

commit
8ed0067009203989fba1e9ac4f0823c3253dfe88
parent
bbdf412c4d0a45efd2a7ae7798262fde822472ba
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2019-08-23 00:11
split settings

Diffstat

M manage.py 2 +-
A settings/__init__.py 0
R rebelstuff/settings.py -> settings/base.py 23 -----------------------
A settings/dev.py 23 +++++++++++++++++++++++

4 files changed, 24 insertions, 24 deletions


diff --git a/manage.py b/manage.py

@@ -5,7 +5,7 @@ import sys
    5     5 
    6     6 
    7     7 def main():
    8    -1     os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'rebelstuff.settings')
   -1     8     os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings.dev')
    9     9     try:
   10    10         from django.core.management import execute_from_command_line
   11    11     except ImportError as exc:

diff --git a/settings/__init__.py b/settings/__init__.py

diff --git a/rebelstuff/settings.py b/settings/base.py

@@ -16,18 +16,6 @@ import os
   16    16 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
   17    17 
   18    18 
   19    -1 # Quick-start development settings - unsuitable for production
   20    -1 # See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
   21    -1 
   22    -1 # SECURITY WARNING: keep the secret key used in production secret!
   23    -1 SECRET_KEY = 'c%-$4e9f8a@##ow4%*sk47%(x88cr=%l3b2-&g2ua0s+v&ak%^'
   24    -1 
   25    -1 # SECURITY WARNING: don't run with debug turned on in production!
   26    -1 DEBUG = True
   27    -1 
   28    -1 ALLOWED_HOSTS = []
   29    -1 
   30    -1 
   31    19 # Application definition
   32    20 
   33    21 INSTALLED_APPS = [
@@ -72,17 +60,6 @@ TEMPLATES = [
   72    60 WSGI_APPLICATION = 'rebelstuff.wsgi.application'
   73    61 
   74    62 
   75    -1 # Database
   76    -1 # https://docs.djangoproject.com/en/2.2/ref/settings/#databases
   77    -1 
   78    -1 DATABASES = {
   79    -1     'default': {
   80    -1         'ENGINE': 'django.db.backends.sqlite3',
   81    -1         'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
   82    -1     }
   83    -1 }
   84    -1 
   85    -1 
   86    63 # Password validation
   87    64 # https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators
   88    65 

diff --git a/settings/dev.py b/settings/dev.py

@@ -0,0 +1,23 @@
   -1     1 from .base import *
   -1     2 
   -1     3 # Quick-start development settings - unsuitable for production
   -1     4 # See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
   -1     5 
   -1     6 # SECURITY WARNING: keep the secret key used in production secret!
   -1     7 SECRET_KEY = 'c%-$4e9f8a@##ow4%*sk47%(x88cr=%l3b2-&g2ua0s+v&ak%^'
   -1     8 
   -1     9 # SECURITY WARNING: don't run with debug turned on in production!
   -1    10 DEBUG = True
   -1    11 
   -1    12 ALLOWED_HOSTS = []
   -1    13 
   -1    14 
   -1    15 # Database
   -1    16 # https://docs.djangoproject.com/en/2.2/ref/settings/#databases
   -1    17 
   -1    18 DATABASES = {
   -1    19     'default': {
   -1    20         'ENGINE': 'django.db.backends.sqlite3',
   -1    21         'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
   -1    22     }
   -1    23 }