Skip to content

Instantly share code, notes, and snippets.

@antonioiksi
Created November 10, 2017 19:31
Show Gist options
  • Save antonioiksi/86bf65ebaa95d107a3ef2817d0d882b7 to your computer and use it in GitHub Desktop.
Save antonioiksi/86bf65ebaa95d107a3ef2817d0d882b7 to your computer and use it in GitHub Desktop.
add 'TEST' into settings.py
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'user171030',
'USER': 'user171030',
'PASSWORD': 'user171030',
'HOST': 'localhost',
'PORT': '5432',
# for testing views
'TEST': {
'NAME': 'backend_test',
},
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment