forked from PowerUpWithPride/donation-tracker-toplevel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
example_local.py
executable file
·87 lines (67 loc) · 3 KB
/
example_local.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
ALLOWED_HOSTS = [
'localhost',
'127.0.0.1',
'your.domain.name',
]
# this is used as part of the auto-mailing services to identify where
# to redirect registration and password resets to
DOMAIN = 'your.domain.name'
# Used by the Paypal integration for generating callback links.
# Should in almost all cases be the same as DOMAIN, but this allows you to customize if your environment requires it.
# Added when I had some issues with donations not working behind a reverse proxy due to bad link generation.
# Also allows you to direct paypal to go via a proxy service like ngrok for development while allowing you to still use localhost.
PAYPAL_DOMAIN = 'your.domain.name'
# Leave this as true during development, so that you get error pages describing what went wrong
DEBUG = True
# Site name for admin headers. Change this for your own event.
SITE_NAME = 'Django'
SITE_NAME_SHORT = '<Your organization name here>'
# You can add your e-mail if you want to receive notifications of failures I think , but its probably not a good idea
ADMINS = [
#('Your Name', '[email protected]'),
]
# You can also make local sqlite databases in your current directory
# if you want to test changes to the data model
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
},
}
TIME_ZONE = 'Europe/Amsterdam'
# set this to your site's prefix, This allows handling multiple deployments from a common url base
SITE_PREFIX = '/'
# Generate a random value for this for your own site! Used in session cookie generation, and some other things.
SECRET_KEY = 'GenerateARandomValueForThisForYourOwnSite'
STATICFILES_DIRS = (
os.path.abspath('tracker/static/'),
)
STATIC_URL = "/static" + SITE_PREFIX
# STATIC_ROOT = os.path.join(BASE_DIR, 'static', SITE_PREFIX.lstrip('/'))
STATIC_ROOT = "/var/www/html/static" + SITE_PREFIX
HAS_GDOC = False
# GDOC_USERNAME = '[email protected]'
# GDOC_PASSWORD = '12345678'
HAS_EMAIL = False
# EMAIL_HOST = 'mail.somwhere.com'
# EMAIL_PORT = 465
# EMAIL_HOST_USER = '[email protected]'
# EMAIL_HOST_PASSWORD = '1234567878'
# EMAIL_FROM_USER = '[email protected]'
HAS_GOOGLE_APP_ID = False
# GOOGLE_CLIENT_ID = 'the.google.apps.url.thingy'
# GOOGLE_CLIENT_SECRET = 'secretpasswordthing'
HAS_GIANTBOMB_API_KEY = False
# GIANTBOMB_API_KEY = 'Itsreallynicetohaveanditsfreetomakeanaccountbutnotneccessary'
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
# Are we using the revamped donate page layout?
# The new layout has a revamped display of donation incentives and bid wars.
USE_NEW_DONATE_LAYOUT = False
# RabbitMQ integration settings.
# If set to true, tracker will connect to the MQ server to deliver messages for each donation add & update.
# Unless you know you need this, leave it at False.
USE_AMQP = False
#AMQP_CONNECTIONSTRING = "amqps://username:[email protected]/v_host"