##// END OF EJS Templates
developer version fixes....
Ilyas -
r49:8537e179 default
parent child Browse files
Show More
@@ -1,179 +1,179 b''
1 1 # Django settings for neboard project.
2 2 import os
3 3
4 4 DEBUG = True
5 5 TEMPLATE_DEBUG = DEBUG
6 6
7 7 ADMINS = (
8 8 # ('Your Name', 'your_email@example.com'),
9 9 ('admin', 'admin@example.com')
10 10 )
11 11
12 12 MANAGERS = ADMINS
13 13
14 14 DATABASES = {
15 15 'default': {
16 16 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
17 17 'NAME': 'database.db', # Or path to database file if using sqlite3.
18 18 'USER': '', # Not used with sqlite3.
19 19 'PASSWORD': '', # Not used with sqlite3.
20 20 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
21 21 'PORT': '', # Set to empty string for default. Not used with sqlite3.
22 22 }
23 23 }
24 24
25 25 # Local time zone for this installation. Choices can be found here:
26 26 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
27 27 # although not all choices may be available on all operating systems.
28 28 # In a Windows environment this must be set to your system time zone.
29 29 TIME_ZONE = 'Europe/Kiev'
30 30
31 31 # Language code for this installation. All choices can be found here:
32 32 # http://www.i18nguy.com/unicode/language-identifiers.html
33 33 LANGUAGE_CODE = 'ru'
34 34
35 35 SITE_ID = 1
36 36
37 37 # If you set this to False, Django will make some optimizations so as not
38 38 # to load the internationalization machinery.
39 39 USE_I18N = True
40 40
41 41 # If you set this to False, Django will not format dates, numbers and
42 42 # calendars according to the current locale.
43 43 USE_L10N = True
44 44
45 45 # If you set this to False, Django will not use timezone-aware datetimes.
46 46 USE_TZ = True
47 47
48 48 # Absolute filesystem path to the directory that will hold user-uploaded files.
49 49 # Example: "/home/media/media.lawrence.com/media/"
50 MEDIA_ROOT = ''
50 MEDIA_ROOT = './media/'
51 51
52 52 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
53 53 # trailing slash.
54 54 # Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
55 MEDIA_URL = ''
55 MEDIA_URL = '/media/'
56 56
57 57 # Absolute path to the directory static files should be collected to.
58 58 # Don't put anything in this directory yourself; store your static files
59 59 # in apps' "static/" subdirectories and in STATICFILES_DIRS.
60 60 # Example: "/home/media/media.lawrence.com/static/"
61 61 STATIC_ROOT = ''
62 62
63 63 # URL prefix for static files.
64 64 # Example: "http://media.lawrence.com/static/"
65 65 STATIC_URL = '/static/'
66 66
67 67 # Additional locations of static files
68 68 # It is really a hack, put real paths, not related
69 69 STATICFILES_DIRS = (
70 70 os.path.dirname(__file__) + '/boards/static',
71 71
72 72 # '/d/work/python/django/neboard/neboard/boards/static',
73 73 # Put strings here, like "/home/html/static" or "C:/www/django/static".
74 74 # Always use forward slashes, even on Windows.
75 75 # Don't forget to use absolute paths, not relative paths.
76 76 )
77 77
78 78 # List of finder classes that know how to find static files in
79 79 # various locations.
80 80 STATICFILES_FINDERS = (
81 81 'django.contrib.staticfiles.finders.FileSystemFinder',
82 82 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
83 83 # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
84 84 )
85 85
86 86 # Make this unique, and don't share it with anybody.
87 87 SECRET_KEY = '@1rc$o(7=tt#kd+4s$u6wchm**z^)4x90)7f6z(i&55@o11*8o'
88 88
89 89 # List of callables that know how to import templates from various sources.
90 90 TEMPLATE_LOADERS = (
91 91 'django.template.loaders.filesystem.Loader',
92 92 'django.template.loaders.app_directories.Loader',
93 93 # 'django.template.loaders.eggs.Loader',
94 94 )
95 95
96 96 TEMPLATE_CONTEXT_PROCESSORS = (
97 97 'django.core.context_processors.media',
98 98 'django.core.context_processors.static',
99 99 'django.core.context_processors.request',
100 100 'django.contrib.auth.context_processors.auth',
101 101 )
102 102
103 103 MIDDLEWARE_CLASSES = (
104 104 'django.middleware.common.CommonMiddleware',
105 105 'django.contrib.sessions.middleware.SessionMiddleware',
106 106 # 'django.middleware.csrf.CsrfViewMiddleware',
107 107 'django.contrib.auth.middleware.AuthenticationMiddleware',
108 108 'django.contrib.messages.middleware.MessageMiddleware',
109 109 # Uncomment the next line for simple clickjacking protection:
110 110 # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
111 111 )
112 112
113 113 ROOT_URLCONF = 'neboard.urls'
114 114
115 115 # Python dotted path to the WSGI application used by Django's runserver.
116 116 WSGI_APPLICATION = 'neboard.wsgi.application'
117 117
118 118 TEMPLATE_DIRS = (
119 119 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
120 120 # Always use forward slashes, even on Windows.
121 121 # Don't forget to use absolute paths, not relative paths.
122 122 'templates',
123 123 )
124 124
125 125 INSTALLED_APPS = (
126 126 'django.contrib.auth',
127 127 'django.contrib.contenttypes',
128 128 'django.contrib.sessions',
129 129 'django.contrib.sites',
130 130 'django.contrib.messages',
131 131 'django.contrib.staticfiles',
132 132 # Uncomment the next line to enable the admin:
133 133 'django.contrib.admin',
134 134 # Uncomment the next line to enable admin documentation:
135 135 # 'django.contrib.admindocs',
136 136 'django.contrib.markup',
137 137 'django_cleanup',
138 138 'boards',
139 139 )
140 140
141 141 # A sample logging configuration. The only tangible logging
142 142 # performed by this configuration is to send an email to
143 143 # the site admins on every HTTP 500 error when DEBUG=False.
144 144 # See http://docs.djangoproject.com/en/dev/topics/logging for
145 145 # more details on how to customize your logging configuration.
146 146 LOGGING = {
147 147 'version': 1,
148 148 'disable_existing_loggers': False,
149 149 'filters': {
150 150 'require_debug_false': {
151 151 '()': 'django.utils.log.RequireDebugFalse'
152 152 }
153 153 },
154 154 'handlers': {
155 155 'mail_admins': {
156 156 'level': 'ERROR',
157 157 'filters': ['require_debug_false'],
158 158 'class': 'django.utils.log.AdminEmailHandler'
159 159 }
160 160 },
161 161 'loggers': {
162 162 'django.request': {
163 163 'handlers': ['mail_admins'],
164 164 'level': 'ERROR',
165 165 'propagate': True,
166 166 },
167 167 }
168 168 }
169 169
170 170 # Custom imageboard settings
171 171 MAX_POSTS_PER_THREAD = 10 # Thread bumplimit
172 172 MAX_THREAD_COUNT = 500 # Old threads will be deleted to preserve this count
173 173 THREADS_PER_PAGE = 10
174 174 SITE_NAME = 'Neboard'
175 175
176 176 THEMES = [
177 177 ('md', 'Mystic Dark'),
178 178 ('sw', 'Snow White') ]
179 DEFAULT_THEME = 'md' No newline at end of file
179 DEFAULT_THEME = 'md'
@@ -1,21 +1,23 b''
1 1 from django.conf.urls import patterns, include, url
2 2
3 3 # Uncomment the next two lines to enable the admin:
4 4 from django.conf.urls.static import static
5 5 from django.contrib import admin
6 6 from neboard import settings
7 7
8 8 admin.autodiscover()
9 9
10 10 urlpatterns = patterns('',
11 11 # Examples:
12 12 # url(r'^$', 'neboard.views.home', name='home'),
13 13 # url(r'^neboard/', include('neboard.foo.urls')),
14 14
15 15 # Uncomment the admin/doc line below to enable admin documentation:
16 16 # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
17 17
18 18 # Uncomment the next line to enable the admin:
19 19 url(r'^admin/', include(admin.site.urls)),
20 20 url(r'^', include('boards.urls')),
21 )
21 ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
22
23
General Comments 0
You need to be logged in to leave comments. Login now