diff --git a/helios/fixtures/election.json b/helios/fixtures/election.json index b219c0d4b7014f779db596e008cfbdf432ff583f..cd7a61655bbcc560c65b4a34aef42b1d9228b53c 100644 --- a/helios/fixtures/election.json +++ b/helios/fixtures/election.json @@ -8,6 +8,8 @@ "name" : "Test Election", "election_type" : "election", "use_advanced_audit_features" : true, + "created_at" : "2013-02-22 12:00:00", + "modified_at" : "2013-02-22 12:00:00", "private_p" : false, "description" : "test description", "public_key" : null, diff --git a/helios/tests.py b/helios/tests.py index 3f1e63daa9bf9c763846d398ed0c4cad6d9310d7..33ae43b0e6d8715291d532f358c00906b256fafc 100644 --- a/helios/tests.py +++ b/helios/tests.py @@ -267,7 +267,7 @@ class CastVoteModelTests(TestCase): pass class DatatypeTests(TestCase): - fixtures = ['election.json'] + fixtures = ['users.json', 'election.json'] def setUp(self): self.election = models.Election.objects.all()[0] diff --git a/helios_auth/auth_systems/openid/util.py b/helios_auth/auth_systems/openid/util.py index 265cedb93f16a0298b42591d4b6655c28fbdccfb..13cd063c0187ba0d338b13046e52cafdf86d95f8 100644 --- a/helios_auth/auth_systems/openid/util.py +++ b/helios_auth/auth_systems/openid/util.py @@ -41,7 +41,7 @@ def getOpenIDStore(filestore_path, table_prefix): The result of this function should be passed to the Consumer constructor as the store parameter. """ - if not settings.DATABASE_ENGINE: + if not settings.DATABASES['default'].ENGINE: return FileOpenIDStore(filestore_path) # Possible side-effect: create a database connection if one isn't diff --git a/requirements.txt b/requirements.txt index 18d636b14b6126da0b2238712f33df215f776e1c..2387077ad67536aa2a905ab57f3811546ba46fac 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -Django==1.3.7 +Django==1.4.5 South==0.7.3 amqplib==1.0.2 anyjson==0.3.1 diff --git a/settings.py b/settings.py index a1bfc89b46a18455724e04bc2b028d6914ef0fec..7bc42aa7b243348ff19e1ac4a1ba586232f76fb4 100644 --- a/settings.py +++ b/settings.py @@ -53,16 +53,15 @@ MEDIA_URL = '' # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a # trailing slash. # Examples: "http://foo.com/media/", "/media/". -ADMIN_MEDIA_PREFIX = '/media/' +STATIC_URL = '/media/' # Make this unique, and don't share it with anybody. SECRET_KEY = get_from_env('SECRET_KEY', 'replaceme') # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( - 'django.template.loaders.filesystem.load_template_source', - 'django.template.loaders.app_directories.load_template_source', -# 'django.template.loaders.eggs.load_template_source', + 'django.template.loaders.filesystem.Loader', + 'django.template.loaders.app_directories.Loader' ) MIDDLEWARE_CLASSES = (