This repository has been archived by the owner on Feb 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsample_local_settings.py
43 lines (36 loc) · 1.66 KB
/
sample_local_settings.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
# Local settings for labgeeksrpg project.
# You should copy this file to your own local_settings.py and customize it.
# The full path to your labgeeksrpg installation.
APP_DIR = "/full/path/to/your/labgeeksrpg"
ADMINS = (
# ('Your Name', '[email protected]'),
)
# Make this unique, and don't share it with anybody.
SECRET_KEY = '*8-x1k(+(7)da_vw3a3p*&k_i+8_gbiadevvp@5_zhytxl6@x@'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'labgeeks.db', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
""" All of these sections need to be reset after changing the APP_DIR from the main settings.py.
You shouldn't need to alter them at all yourself.
"""
MEDIA_ROOT = '%s/uploads/' % APP_DIR
STATICFILES_DIRS = (
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
"%s/static/" % APP_DIR,
"%s/uploads/" % APP_DIR,
)
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
"%s/templates" % APP_DIR,
)