mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-04-25 11:42:54 +03:00
Use dj-database-url for configuring db access
This commit is contained in:
parent
92952d9f75
commit
667317a7bb
@ -12,3 +12,4 @@ coverage==4.2
|
|||||||
django-coverage-plugin==1.3.1
|
django-coverage-plugin==1.3.1
|
||||||
flake8==3.0.4
|
flake8==3.0.4
|
||||||
pep8==1.7.0
|
pep8==1.7.0
|
||||||
|
dj-database-url==0.4.1
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
import dj_database_url
|
||||||
|
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
TEMPLATE_DEBUG = True
|
TEMPLATE_DEBUG = True
|
||||||
|
|
||||||
@ -6,11 +8,7 @@ SECRET_KEY = 'this is my secret key'
|
|||||||
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
|
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': dj_database_url.config(default='postgres:///localized_fields')
|
||||||
'ENGINE': 'django.db.backends.postgresql',
|
|
||||||
'NAME': 'localized_fields',
|
|
||||||
'HOST': 'localhost'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LANGUAGE_CODE = 'en'
|
LANGUAGE_CODE = 'en'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user