mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-09 06:24:52 +03:00
cutter first edit 1.0
This commit is contained in:
parent
b626fac5c6
commit
f4a5e97369
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user