forked from spookylukey/django-paypal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manage.py
executable file
·36 lines (32 loc) · 1 KB
/
manage.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env python
# This manage.py exists for the purpose of creating migrations
import sys
import django
from django.conf import settings
from django.core.management import execute_from_command_line
settings.configure(
ROOT_URLCONF='paypal.standard.ipn.tests.test_urls', # So Django 1.9 doesn't die
DATABASES={'default':
{'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'test.db',
}},
PAYPAL_IDENTITY_TOKEN='',
INSTALLED_APPS=[
'django.contrib.auth',
'django.contrib.contenttypes',
'paypal.pro',
'paypal.standard',
'paypal.standard.ipn',
'paypal.standard.pdt',
] + (['south'] if django.VERSION < (1, 7) else []),
CACHES={
'default': {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
'TIMEOUT': 0,
'KEY_PREFIX': 'paypal_tests_',
}
},
MIDDLEWARE_CLASSES=[],
)
if __name__ == '__main__':
execute_from_command_line(sys.argv)