· 7 years ago · Jul 18, 2018, 05:24 PM
1cat settings.py
2import os.path
3
4DEPLOY_PATH = os.path.dirname(__file__) # This is the base dir for everything
5
6ADMINS = (
7 # ('Your Name', 'your_email@domain.com'),
8)
9
10DATABASE_ENGINE = 'mysql'
11DATABASE_NAME = 'aur2'
12DATABASE_USER = 'aur2' # Not used with sqlite3.
13DATABASE_PASSWORD = 'xxx' # Not used with sqlite3.
14DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
15DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
16
17MANAGERS = ADMINS
18
19TIME_ZONE = 'America/Chicago'
20
21LANGUAGE_CODE = 'en-us'
22
23SITE_ID = 1
24
25USE_I18N = True
26
27# Absolute path to the directory that holds media.
28MEDIA_ROOT = os.path.join(DEPLOY_PATH, 'media')
29MEDIA_URL = '/media/'
30
31# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
32# trailing slash.
33ADMIN_MEDIA_PREFIX = '/media/admin/'
34
35# Make this unique, and don't share it with anybody.
36SECRET_KEY = ''
37
38# List of callables that know how to import templates from various sources.
39TEMPLATE_LOADERS = (
40 'django.template.loaders.filesystem.load_template_source',
41 'django.template.loaders.app_directories.load_template_source',
42)
43
44MIDDLEWARE_CLASSES = (
45 'django.middleware.common.CommonMiddleware',
46 'django.contrib.sessions.middleware.SessionMiddleware',
47 'django.contrib.auth.middleware.AuthenticationMiddleware',
48 'django.middleware.doc.XViewMiddleware',
49)
50
51ROOT_URLCONF = 'archlinux.urls'
52
53TEMPLATE_DIRS = (
54 os.path.join(DEPLOY_PATH, 'templates'),
55)
56
57FIXTURE_DIRS = (
58 os.path.join(DEPLOY_PATH, 'fixtures'),
59)
60
61INSTALLED_APPS = (
62 'django.contrib.auth',
63 'django.contrib.contenttypes',
64 'django.contrib.sessions',
65 'django.contrib.admin',
66 'django.contrib.sites',
67 'aur',
68 'registration',
69 'aurprofile',
70 'tagging',
71)
72
73# Third party settings
74
75# django-registration
76ACCOUNT_ACTIVATION_DAYS = 1
77
78# django-tagging
79FORCE_LOWERCASE_TAGS = True
80
81# Import local settings if they exist
82try:
83 from settings_local import *
84except ImportError:
85 pass