Skip to content
This repository was archived by the owner on Oct 28, 2019. It is now read-only.

Commit 56037ac

Browse files
committed
Use dj-database-url
1 parent a8836ad commit 56037ac

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

pasteapp/settings.py

+2-10
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,8 @@
1313

1414
MANAGERS = ADMINS
1515

16-
DATABASES = {
17-
'default': {
18-
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
19-
'NAME': os.path.join(PROJECT_DIR, 'dev.sqlite3'), # Or path to database file if using sqlite3.
20-
'USER': '', # Not used with sqlite3.
21-
'PASSWORD': '', # Not used with sqlite3.
22-
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
23-
'PORT': '', # Set to empty string for default. Not used with sqlite3.
24-
}
25-
}
16+
import dj_database_url
17+
DATABASES = { 'default': dj_database_url.config() }
2618

2719
# Local time zone for this installation. Choices can be found here:
2820
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name

requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ Django==1.4.10
22
Markdown==2.1.0
33
Pygments==1.6
44
South==0.7.3
5+
dj-database-url==0.2.2
6+
django-browserid==0.9
57
docutils==0.8.1
68
gunicorn==0.13.4
79
psycopg2==2.4.4
8-
django-browserid==0.9

0 commit comments

Comments
 (0)