diff options
Diffstat (limited to 'djangopypi/settings.py')
-rw-r--r-- | djangopypi/settings.py | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/djangopypi/settings.py b/djangopypi/settings.py new file mode 100644 index 0000000..0fb8716 --- /dev/null +++ b/djangopypi/settings.py | |||
@@ -0,0 +1,112 @@ | |||
1 | # Django settings for djangopypi project. | ||
2 | import os | ||
3 | |||
4 | ADMINS = ( | ||
5 | # ('Your Name', 'your_email@domain.com'), | ||
6 | ) | ||
7 | |||
8 | # Allow uploading a new distribution file for a project version | ||
9 | # if a file of that type already exists. | ||
10 | # | ||
11 | # The default on PyPI is to not allow this, but it can be real handy | ||
12 | # if you're sloppy. | ||
13 | DJANGOPYPI_ALLOW_VERSION_OVERWRITE = False | ||
14 | DJANGOPYPI_RELEASE_UPLOAD_TO = 'dists' | ||
15 | |||
16 | # change to False if you do not want Django's default server to serve static pages | ||
17 | LOCAL_DEVELOPMENT = True | ||
18 | |||
19 | REGISTRATION_OPEN = True | ||
20 | ACCOUNT_ACTIVATION_DAYS = 7 | ||
21 | LOGIN_REDIRECT_URL = "/" | ||
22 | |||
23 | EMAIL_HOST = '' | ||
24 | DEFAULT_FROM_EMAIL = '' | ||
25 | SERVER_EMAIL = DEFAULT_FROM_EMAIL | ||
26 | |||
27 | MANAGERS = ADMINS | ||
28 | |||
29 | DATABASE_ENGINE = '' | ||
30 | DATABASE_NAME = '' | ||
31 | DATABASE_USER = '' | ||
32 | DATABASE_PASSWORD = '' | ||
33 | DATABASE_HOST = '' | ||
34 | DATABASE_PORT = '' | ||
35 | |||
36 | # Local time zone for this installation. Choices can be found here: | ||
37 | # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name | ||
38 | # although not all choices may be available on all operating systems. | ||
39 | # If running in a Windows environment this must be set to the same as your | ||
40 | # system time zone. | ||
41 | TIME_ZONE = 'America/Chicago' | ||
42 | |||
43 | # Language code for this installation. All choices can be found here: | ||
44 | # http://www.i18nguy.com/unicode/language-identifiers.html | ||
45 | LANGUAGE_CODE = 'en-us' | ||
46 | |||
47 | SITE_ID = 1 | ||
48 | |||
49 | # If you set this to False, Django will make some optimizations so as not | ||
50 | # to load the internationalization machinery. | ||
51 | USE_I18N = True | ||
52 | |||
53 | # Absolute path to the directory that holds media. | ||
54 | # Example: "/home/media/media.lawrence.com/" | ||
55 | here = os.path.abspath(os.path.dirname(__file__)) | ||
56 | MEDIA_ROOT = os.path.join(here, 'htdocs', 'media') | ||
57 | |||
58 | # URL that handles the media served from MEDIA_ROOT. Make sure to use a | ||
59 | # trailing slash if there is a path component (optional in other cases). | ||
60 | # Examples: "http://media.lawrence.com", "http://example.com/media/" | ||
61 | MEDIA_URL = '/htdocs/media/' | ||
62 | |||
63 | # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a | ||
64 | # trailing slash. | ||
65 | # Examples: "http://foo.com/media/", "/media/". | ||
66 | ADMIN_MEDIA_PREFIX = '/admin-media/' | ||
67 | |||
68 | # Make this unique, and don't share it with anybody. | ||
69 | SECRET_KEY = 'w_#0r2hh)=!zbynb*gg&969@)sy#^-^ia3m*+sd4@lst$zyaxu' | ||
70 | |||
71 | # List of callables that know how to import templates from various sources. | ||
72 | TEMPLATE_LOADERS = ( | ||
73 | 'django.template.loaders.filesystem.load_template_source', | ||
74 | 'django.template.loaders.app_directories.load_template_source', | ||
75 | # 'django.template.loaders.eggs.load_template_source', | ||
76 | ) | ||
77 | |||
78 | MIDDLEWARE_CLASSES = ( | ||
79 | 'django.middleware.common.CommonMiddleware', | ||
80 | 'django.contrib.sessions.middleware.SessionMiddleware', | ||
81 | 'django.contrib.auth.middleware.AuthenticationMiddleware', | ||
82 | 'django.contrib.csrf.middleware.CsrfMiddleware', | ||
83 | ) | ||
84 | |||
85 | ROOT_URLCONF = 'djangopypi.urls' | ||
86 | |||
87 | TEMPLATE_CONTEXT_PROCESSORS = ( | ||
88 | "django.core.context_processors.auth", | ||
89 | "django.core.context_processors.debug", | ||
90 | "django.core.context_processors.i18n", | ||
91 | "django.core.context_processors.media", | ||
92 | "django.core.context_processors.request", | ||
93 | ) | ||
94 | |||
95 | TEMPLATE_DIRS = ( | ||
96 | # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". | ||
97 | # Always use forward slashes, even on Windows. | ||
98 | # Don't forget to use absolute paths, not relative paths. | ||
99 | os.path.join(os.path.dirname(os.path.dirname(__file__)), "templates"), | ||
100 | ) | ||
101 | |||
102 | INSTALLED_APPS = ( | ||
103 | 'django.contrib.auth', | ||
104 | 'django.contrib.contenttypes', | ||
105 | 'django.contrib.sessions', | ||
106 | 'django.contrib.sites', | ||
107 | 'django.contrib.admin', | ||
108 | 'django.contrib.markup', | ||
109 | 'django.contrib.admindocs', | ||
110 | 'registration', | ||
111 | 'djangopypi', | ||
112 | ) | ||