diff --git a/pacmanager/pacmanager/settings.py b/pacmanager/pacmanager/settings.py index fe178dc..b51bb47 100644 --- a/pacmanager/pacmanager/settings.py +++ b/pacmanager/pacmanager/settings.py @@ -10,16 +10,8 @@ ADMINS = ( MANAGERS = ADMINS -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. - 'NAME': 'pacmanager.db', # 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. - } -} +import dj_database_url +DATABASES = {'default': dj_database_url.config(default='postgres://localhost')} # Local time zone for this installation. Choices can be found here: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name diff --git a/requirements.txt b/requirements.txt index b7d34fd..2f7ce28 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,3 +3,5 @@ South==0.7.4 -e git+https://github.com/nikdoof/eveapi.git#egg=eveapi -e git://github.com/nikdoof/django-braces.git#egg=django-braces -e git+https://github.com/disqus/django-modeldict.git#egg=modeldict +psycopg2==2.4.5 +dj-database-url==0.2.0