Mercurial > public > sg101
annotate gpp/settings/test.py @ 507:8631d32e6b16
Some users are still having problems with the pop-up login. I think they are actually getting 403s because of the CSRF protection. So I have modified the base template to always have a javascript variable called csrf_token available when they aren't logged in. The ajax_login.js script was then modified to send this value with the ajax post. Fingers crossed.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 04 Dec 2011 03:05:21 +0000 |
parents | 1a09a7bea000 |
children | 82b97697312e |
rev | line source |
---|---|
bgneal@499 | 1 """ |
bgneal@499 | 2 Settings to use when running tests. Uses sqlite for speed. |
bgneal@499 | 3 |
bgneal@499 | 4 """ |
bgneal@499 | 5 from settings.base import * |
bgneal@499 | 6 |
bgneal@499 | 7 DATABASES = { |
bgneal@499 | 8 'default': { |
bgneal@499 | 9 'ENGINE': 'django.db.backends.sqlite3', |
bgneal@499 | 10 'NAME': 'dev.db', |
bgneal@499 | 11 }, |
bgneal@499 | 12 } |
bgneal@499 | 13 |
bgneal@499 | 14 # For unit-testing the Donations module w/o using the Paypal sandbox |
bgneal@499 | 15 DONATIONS_DEBUG_VERIFY_RESPONSE = 'VERIFIED' |
bgneal@499 | 16 DONATIONS_BUSINESS_DEBUG = 'brian@surfguitar101.com' |