Add a new auto-slug field that is concurrency resistent

This commit is contained in:
Swen Kooij
2017-02-02 10:58:04 +02:00
parent 1adcd5a399
commit a48eb12370
6 changed files with 63 additions and 15 deletions

View File

@@ -3,7 +3,7 @@ import dj_database_url
DEBUG = True
TEMPLATE_DEBUG = True
SECRET_KEY = 'this is my secret key'
SECRET_KEY = 'this is my secret key' # NOQA
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
@@ -11,6 +11,8 @@ DATABASES = {
'default': dj_database_url.config(default='postgres:///localized_fields')
}
DATABASES['default']['ENGINE'] = 'localized_fields.db_backend'
LANGUAGE_CODE = 'en'
LANGUAGES = (
('en', 'English'),