create test_settings

This commit is contained in:
Mateusz Sikora 2014-05-02 20:53:42 +02:00
parent 9431362694
commit 1c8d2f6d56
2 changed files with 19 additions and 2 deletions

View File

@ -3,8 +3,8 @@ python:
- "2.6" - "2.6"
- "2.7" - "2.7"
env: env:
- DJANGO=1.5.7 DJANGO_SETTINGS_MODULE="django_common.test_settings" - DJANGO=1.5.7 DJANGO_SETTINGS_MODULE="rest_auth.test_settings"
- DJANGO=1.6.4 DJANGO_SETTINGS_MODULE="django_common.test_settings" - DJANGO=1.6.4 DJANGO_SETTINGS_MODULE="rest_auth.test_settings"
install: install:
- pip install -q Django==$DJANGO --use-mirrors - pip install -q Django==$DJANGO --use-mirrors
script: script:

View File

@ -0,0 +1,17 @@
import django
if django.VERSION[:2] >= (1, 3):
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
else:
DATABASE_ENGINE = 'sqlite3'
INSTALLED_APPS = [
'rest_auth',
]
SECRET_KEY = "38dh*skf8sjfhs287dh&^hd8&3hdg*j2&sd"