style(settings): move important settings in other file

This commit is contained in:
Romain J 2020-05-16 18:27:02 +02:00
parent bf16a7ebfb
commit 829dbc9402
3 changed files with 15 additions and 12 deletions

View file

@ -27,7 +27,7 @@
<ul class="uk-grid uk-grid-margin-medium uk-child-width-1-3@m" data-uk-grid="masonry: true">
{% for service in services %}
<li>
<div class="uk-card uk-card-default">
<div class="uk-card uk-card-secondary">
<div class="uk-card-media-top">
<img data-src="{{ service.photo.url }}" data-uk-img alt="{{ service.name }}">
<noscript>

View file

@ -0,0 +1,11 @@
SECRET_KEY = "hi there"
DATABASES = {
"default": {
"ENGINE": "django.db.backends.mysql",
"NAME": "gnouseu",
"USER": "root",
"PASSWORD": "root",
"OPTIONS": {"charset": "utf8mb4"},
}
}

View file

@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
from gnousEU import local_settings
# 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,7 +20,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "*0q64%2cb!f@w(o@b74yyi2#xr1d2r#%uul+hc1=gne^8u+*3)k"
SECRET_KEY = local_settings.SECRET_KEY
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
@ -34,7 +35,6 @@ INSTALLED_APPS = [
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"markdownify",
"apps.gnous_eu",
"apps.gnous_eu.apps.SuitConfig",
"django.contrib.admin",
@ -74,15 +74,7 @@ WSGI_APPLICATION = "gnousEU.wsgi.application"
# Database
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases
DATABASES = {
"default": {
"ENGINE": "django.db.backends.mysql",
"NAME": "gnouseu",
"USER": "root",
"PASSWORD": "root",
"OPTIONS": {"charset": "utf8mb4"},
}
}
DATABASES = local_settings.DATABASES
# Password validation
# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators