mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-10 08:14:53 +00:00
Use sqlite by default
This commit is contained in:
parent
a9b5d81e74
commit
03700d65ed
3 changed files with 21 additions and 8 deletions
1
wagtail/project_template/.gitignore
vendored
1
wagtail/project_template/.gitignore
vendored
|
|
@ -7,3 +7,4 @@
|
|||
/.vagrant/
|
||||
Vagrantfile.local
|
||||
/docs/_build/
|
||||
/db.sqlite3
|
||||
|
|
|
|||
|
|
@ -87,18 +87,27 @@ WSGI_APPLICATION = SITE_NAME + '.wsgi.application'
|
|||
# Database
|
||||
# https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/#databases
|
||||
|
||||
# SQLite (simplest install)
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
'NAME': '{{ project_name }}',
|
||||
'USER': 'postgres',
|
||||
'PASSWORD': '',
|
||||
'HOST': '', # Set to empty string for localhost.
|
||||
'PORT': '', # Set to empty string for default.
|
||||
'CONN_MAX_AGE': 600, # number of seconds database connections should persist for
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': join(PROJECT_ROOT, 'db.sqlite3'),
|
||||
}
|
||||
}
|
||||
|
||||
# PostgreSQL (Recommended, but requires the psycopg2 library and Postgresql development headers)
|
||||
# DATABASES = {
|
||||
# 'default': {
|
||||
# 'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
# 'NAME': '{{ project_name }}',
|
||||
# 'USER': 'postgres',
|
||||
# 'PASSWORD': '',
|
||||
# 'HOST': '', # Set to empty string for localhost.
|
||||
# 'PORT': '', # Set to empty string for default.
|
||||
# 'CONN_MAX_AGE': 600, # number of seconds database connections should persist for
|
||||
# }
|
||||
# }
|
||||
|
||||
|
||||
# Internationalization
|
||||
# https://docs.djangoproject.com/en/{{ docs_version }}/topics/i18n/
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
# Minimal requirements
|
||||
Django>=1.6.2,<1.7
|
||||
South==1.0.0
|
||||
wagtail==0.5
|
||||
psycopg2==2.5.2
|
||||
|
||||
# Recommended components (require additional setup)
|
||||
# psycopg2==2.5.2
|
||||
elasticsearch==1.1.1
|
||||
django-redis-cache==0.13.0
|
||||
django-celery==3.1.10
|
||||
|
|
|
|||
Loading…
Reference in a new issue