aboutsummaryrefslogtreecommitdiffstats
path: root/src/shorturls/testsettings.py
diff options
context:
space:
mode:
authorBen Firshman2014-09-21 02:51:11 +0200
committerBen Firshman2014-09-21 02:51:11 +0200
commit61f4de67ed9cfdf09df4cee83d3c3c88775a6bf4 (patch)
tree6348cf033160732e7ba6898c00b6bbbc544ca593 /src/shorturls/testsettings.py
parent26a2bf299401551f37b84a9a6013190c4dcfaccf (diff)
parenta003ada5378e01c00e8f6405dc017f2d1e7376c8 (diff)
downloaddjango-shorturls-61f4de67ed9cfdf09df4cee83d3c3c88775a6bf4.tar.bz2
Merge pull request #7 from bfirsh/travis
Add Travis CI
Diffstat (limited to 'src/shorturls/testsettings.py')
-rw-r--r--src/shorturls/testsettings.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/shorturls/testsettings.py b/src/shorturls/testsettings.py
index 2098abf..408ea8b 100644
--- a/src/shorturls/testsettings.py
+++ b/src/shorturls/testsettings.py
@@ -1,8 +1,18 @@
import os
DEBUG = TEMPLATE_DEBUG = True
+
+# For Pre-Django 1.3
DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = '/tmp/shorturls.db'
+
+# For Django 1.3 and beyond
+DATABASES = {
+ 'default': {
+ 'ENGINE': 'django.db.backends.sqlite3'
+ }
+}
+
INSTALLED_APPS = ['shorturls']
ROOT_URLCONF = ['shorturls.urls']
-TEMPLATE_DIRS = os.path.join(os.path.dirname(__file__), 'tests', 'templates') \ No newline at end of file
+TEMPLATE_DIRS = os.path.join(os.path.dirname(__file__), 'tests', 'templates')