cutter first edit 1.0

This commit is contained in:
myvault 2018-09-27 11:38:42 +03:00
parent b626fac5c6
commit f4a5e97369

View File

@ -2,6 +2,11 @@
Base settings to build other settings files upon.
"""
### for sqllite
#import os
#BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
###
import environ
ROOT_DIR = environ.Path(__file__) - 3 # ({{ cookiecutter.project_slug }}/config/settings/base.py - 3 = {{ cookiecutter.project_slug }}/)
@ -48,6 +53,15 @@ DATABASES = {
{%- endif %}
DATABASES['default']['ATOMIC_REQUESTS'] = True
# sqlite3
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
# }
# }
# URLS
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#root-urlconf