From 8f5d61324d0393b44e133157bae9682c4e531421 Mon Sep 17 00:00:00 2001 From: thisismsreddy Date: Mon, 16 Nov 2015 14:17:03 +0530 Subject: [PATCH] Update common.py Adding a Sqlite db in comments if any case PostgreSQL not available --- {{cookiecutter.repo_name}}/config/settings/common.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/{{cookiecutter.repo_name}}/config/settings/common.py b/{{cookiecutter.repo_name}}/config/settings/common.py index a0ab6063e..5324f9c32 100644 --- a/{{cookiecutter.repo_name}}/config/settings/common.py +++ b/{{cookiecutter.repo_name}}/config/settings/common.py @@ -11,6 +11,10 @@ https://docs.djangoproject.com/en/dev/ref/settings/ from __future__ import absolute_import, unicode_literals import environ +# import os + +# BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + ROOT_DIR = environ.Path(__file__) - 3 # (/a/b/myfile.py - 3 = /) APPS_DIR = ROOT_DIR.path('{{ cookiecutter.repo_name }}') @@ -95,6 +99,13 @@ ADMINS = ( MANAGERS = ADMINS # DATABASE CONFIGURATION +# DATABASES = { +# 'default': { +# 'ENGINE': 'django.db.backends.sqlite3', +# 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), +# } +# } + # ------------------------------------------------------------------------------ # See: https://docs.djangoproject.com/en/dev/ref/settings/#databases DATABASES = {