-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_local.py
More file actions
53 lines (41 loc) · 1.63 KB
/
example_local.py
File metadata and controls
53 lines (41 loc) · 1.63 KB
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
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',
]
# Leave this as true during development, so that you get error pages describing what went wrong
DEBUG = True
# 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', 'your_email@example.com'),
]
# 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 = 'America/Toronto'
# set this to your site's prefix, This allows handling multiple deployments from a common url base
SITE_PREFIX = ''
SECRET_KEY = 'GenerateAGoodRandomValueForThis!!!'
STATIC_URL = "/static/" + SITE_PREFIX
STATIC_ROOT = os.path.join(BASE_DIR, 'static', SITE_PREFIX)
# Twitch app settings.
SOCIAL_AUTH_TWITCH_KEY = 'YourTwitchAppClientID'
SOCIAL_AUTH_TWITCH_SECRET = 'YourTwitchAppSecret'
# Populate with Twitch logins of users who are event admins.
# Users listed here will be given Django staff status and event admin privileges to approve/reject runs, etc.
MARATHON_ADMINS = [
# yourtwitchlogin
]
# Users listed here will be given Django superuser status, and also event admin status by proxy.
# This allows full admin rights to change everything! Only give this to yourself and/or users you absolutely trust!
MARATHON_SUPERUSERS = [
# yourtwitchlogin
]