settings: add default (sqlite3) database

This commit is contained in:
Frédéric Péters 2013-02-11 11:14:53 +01:00
parent a560ce42ee
commit 345845ff26
2 changed files with 7 additions and 6 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
local_settings.py
passerelle.sqlite3

View File

@ -1,8 +1,12 @@
# Django settings for passerelle project.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
PROJECT_PATH = os.path.dirname(os.path.dirname(__file__))
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
@ -11,12 +15,8 @@ MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(PROJECT_PATH, 'passerelle.sqlite3'),
}
}