-
Notifications
You must be signed in to change notification settings - Fork 11
/
example_local.py
40 lines (30 loc) · 1.11 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
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', '[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': '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 = 'IHaveNoIdeaWhatThisIsOrWhatItDoes'
STATIC_URL = "/static/" + SITE_PREFIX
STATIC_ROOT = os.path.join(BASE_DIR, 'static', SITE_PREFIX)
# Use this for running a separate beta testing site for people to generate beta seeds.
BETA = False