##// END OF EJS Templates
Added a centered MD theme (with maximum thread width).
neko259 -
r254:2b1879ad default
parent child Browse files
Show More
@@ -0,0 +1,12 b''
1 @import url("../md/base_page.css");
2
3 .thread, .post-form-w, .image-mode-tab {
4 max-width: 1000px;
5 margin-left: auto;
6 margin-right: auto;
7 }
8
9 .thread {
10 border-left: solid 2px #888;
11 border-right: solid 2px #888;
12 }
@@ -1,142 +1,142 b''
1 {% extends "boards/base.html" %}
1 {% extends "boards/base.html" %}
2
2
3 {% load i18n %}
3 {% load i18n %}
4 {% load markup %}
4 {% load markup %}
5 {% load cache %}
5 {% load cache %}
6
6
7 {% block head %}
7 {% block head %}
8 <title>Neboard - {{ posts.0.get_title }}</title>
8 <title>Neboard - {{ posts.0.get_title }}</title>
9 {% endblock %}
9 {% endblock %}
10
10
11 {% block content %}
11 {% block content %}
12 {% get_current_language as LANGUAGE_CODE %}
12 {% get_current_language as LANGUAGE_CODE %}
13
13
14 <script src="{{ STATIC_URL }}js/thread.js"></script>
14 <script src="{{ STATIC_URL }}js/thread.js"></script>
15
15
16 {% if posts %}
16 {% if posts %}
17 {% cache 600 thread_view posts.0.last_edit_time moderator LANGUAGE_CODE %}
17 {% cache 600 thread_view posts.0.last_edit_time moderator LANGUAGE_CODE %}
18 <div id="posts">
18 <div class="thread" id="posts">
19 {% for post in posts %}
19 {% for post in posts %}
20 {% if bumpable %}
20 {% if bumpable %}
21 <div class="post" id="{{ post.id }}">
21 <div class="post" id="{{ post.id }}">
22 {% else %}
22 {% else %}
23 <div class="post dead_post" id="{{ post.id }}">
23 <div class="post dead_post" id="{{ post.id }}">
24 {% endif %}
24 {% endif %}
25 {% if post.image %}
25 {% if post.image %}
26 <div class="image">
26 <div class="image">
27 <a
27 <a
28 class="thumb"
28 class="thumb"
29 href="{{ post.image.url }}"><img
29 href="{{ post.image.url }}"><img
30 src="{{ post.image.url_200x150 }}"
30 src="{{ post.image.url_200x150 }}"
31 alt="{{ post.id }}"
31 alt="{{ post.id }}"
32 data-width="{{ post.image_width }}"
32 data-width="{{ post.image_width }}"
33 data-height="{{ post.image_height }}"/>
33 data-height="{{ post.image_height }}"/>
34 </a>
34 </a>
35 </div>
35 </div>
36 {% endif %}
36 {% endif %}
37 <div class="message">
37 <div class="message">
38 <div class="post-info">
38 <div class="post-info">
39 <span class="title">{{ post.title }}</span>
39 <span class="title">{{ post.title }}</span>
40 <a class="post_id" href="#{{ post.id }}">
40 <a class="post_id" href="#{{ post.id }}">
41 (#{{ post.id }})</a>
41 (#{{ post.id }})</a>
42 [{{ post.pub_time }}]
42 [{{ post.pub_time }}]
43 [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}')
43 [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}')
44 ; return false;">&gt;&gt;</a>]
44 ; return false;">&gt;&gt;</a>]
45
45
46 {% if moderator %}
46 {% if moderator %}
47 <span class="moderator_info">
47 <span class="moderator_info">
48 [<a href="{% url 'delete' post_id=post.id %}"
48 [<a href="{% url 'delete' post_id=post.id %}"
49 >{% trans 'Delete' %}</a>]
49 >{% trans 'Delete' %}</a>]
50 ({{ post.poster_ip }})
50 ({{ post.poster_ip }})
51 [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}"
51 [<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}"
52 >{% trans 'Ban IP' %}</a>]
52 >{% trans 'Ban IP' %}</a>]
53 </span>
53 </span>
54 {% endif %}
54 {% endif %}
55 </div>
55 </div>
56 {% autoescape off %}
56 {% autoescape off %}
57 {{ post.text.rendered }}
57 {{ post.text.rendered }}
58 {% endautoescape %}
58 {% endautoescape %}
59 </div>
59 </div>
60 {% if post.id == posts.0.id %}
60 {% if post.id == posts.0.id %}
61 <div class="metadata">
61 <div class="metadata">
62 <span class="tags">{% trans 'Tags' %}:
62 <span class="tags">{% trans 'Tags' %}:
63 {% for tag in post.tags.all %}
63 {% for tag in post.tags.all %}
64 <a class="tag" href="{% url 'tag' tag.name %}">
64 <a class="tag" href="{% url 'tag' tag.name %}">
65 {{ tag.name }}</a>
65 {{ tag.name }}</a>
66 {% endfor %}
66 {% endfor %}
67 </span>
67 </span>
68 </div>
68 </div>
69 {% endif %}
69 {% endif %}
70 </div>
70 </div>
71 {% endfor %}
71 {% endfor %}
72 </div>
72 </div>
73 {% endcache %}
73 {% endcache %}
74 {% endif %}
74 {% endif %}
75
75
76 <form id="form" enctype="multipart/form-data" method="post"
76 <form id="form" enctype="multipart/form-data" method="post"
77 >{% csrf_token %}
77 >{% csrf_token %}
78 <div class="post-form-w">
78 <div class="post-form-w">
79 <div class="form-title">{% trans "Reply to thread" %} #{{ posts.0.id }}</div>
79 <div class="form-title">{% trans "Reply to thread" %} #{{ posts.0.id }}</div>
80 <div class="post-form">
80 <div class="post-form">
81 <div class="form-row">
81 <div class="form-row">
82 <div class="form-label">{% trans 'Title' %}</div>
82 <div class="form-label">{% trans 'Title' %}</div>
83 <div class="form-input">{{ form.title }}</div>
83 <div class="form-input">{{ form.title }}</div>
84 <div class="form-errors">{{ form.title.errors }}</div>
84 <div class="form-errors">{{ form.title.errors }}</div>
85 </div>
85 </div>
86 <div class="form-row">
86 <div class="form-row">
87 <div class="form-label">{% trans 'Formatting' %}</div>
87 <div class="form-label">{% trans 'Formatting' %}</div>
88 <div class="form-input" id="mark_panel">
88 <div class="form-input" id="mark_panel">
89 <span class="mark_btn" id="quote"><span class="quote">&gt;{% trans 'quote' %}</span></span>
89 <span class="mark_btn" id="quote"><span class="quote">&gt;{% trans 'quote' %}</span></span>
90 <span class="mark_btn" id="italic"><i>{% trans 'italic' %}</i></span>
90 <span class="mark_btn" id="italic"><i>{% trans 'italic' %}</i></span>
91 <span class="mark_btn" id="bold"><b>{% trans 'bold' %}</b></span>
91 <span class="mark_btn" id="bold"><b>{% trans 'bold' %}</b></span>
92 <span class="mark_btn" id="spoiler"><span class="spoiler">{% trans 'spoiler' %}</span></span>
92 <span class="mark_btn" id="spoiler"><span class="spoiler">{% trans 'spoiler' %}</span></span>
93 <span class="mark_btn" id="comment"><span class="comment">// {% trans 'comment' %}</span></span>
93 <span class="mark_btn" id="comment"><span class="comment">// {% trans 'comment' %}</span></span>
94 </div>
94 </div>
95 </div>
95 </div>
96 <div class="form-row">
96 <div class="form-row">
97 <div class="form-label">{% trans 'Text' %}</div>
97 <div class="form-label">{% trans 'Text' %}</div>
98 <div class="form-input">{{ form.text }}</div>
98 <div class="form-input">{{ form.text }}</div>
99 <div class="form-errors">{{ form.text.errors }}</div>
99 <div class="form-errors">{{ form.text.errors }}</div>
100 </div>
100 </div>
101 <div class="form-row">
101 <div class="form-row">
102 <div class="form-label">{% trans 'Image' %}</div>
102 <div class="form-label">{% trans 'Image' %}</div>
103 <div class="form-input">{{ form.image }}</div>
103 <div class="form-input">{{ form.image }}</div>
104 <div class="form-errors">{{ form.image.errors }}</div>
104 <div class="form-errors">{{ form.image.errors }}</div>
105 </div>
105 </div>
106 <div class="form-row form-email">
106 <div class="form-row form-email">
107 <div class="form-label">{% trans 'e-mail' %}</div>
107 <div class="form-label">{% trans 'e-mail' %}</div>
108 <div class="form-input">{{ form.email }}</div>
108 <div class="form-input">{{ form.email }}</div>
109 <div class="form-errors">{{ form.email.errors }}</div>
109 <div class="form-errors">{{ form.email.errors }}</div>
110 </div>
110 </div>
111 <div class="form-row">
111 <div class="form-row">
112 {{ form.captcha }}
112 {{ form.captcha }}
113 <div class="form-errors">{{ form.captcha.errors }}</div>
113 <div class="form-errors">{{ form.captcha.errors }}</div>
114 </div>
114 </div>
115 <div class="form-row">
115 <div class="form-row">
116 <div class="form-errors">{{ form.other.errors }}</div>
116 <div class="form-errors">{{ form.other.errors }}</div>
117 </div>
117 </div>
118 </div>
118 </div>
119
119
120 <div class="form-submit"><input type="submit"
120 <div class="form-submit"><input type="submit"
121 value="{% trans "Post" %}"/></div>
121 value="{% trans "Post" %}"/></div>
122 <div><a href="{% url "staticpage" name="help" %}">
122 <div><a href="{% url "staticpage" name="help" %}">
123 {% trans 'Text syntax' %}</a></div>
123 {% trans 'Text syntax' %}</a></div>
124 </div>
124 </div>
125 </form>
125 </form>
126
126
127 {% endblock %}
127 {% endblock %}
128
128
129 {% block metapanel %}
129 {% block metapanel %}
130
130
131 {% get_current_language as LANGUAGE_CODE %}
131 {% get_current_language as LANGUAGE_CODE %}
132
132
133 <span class="metapanel">
133 <span class="metapanel">
134 {% cache 600 thread_meta posts.0.last_edit_time moderator LANGUAGE_CODE %}
134 {% cache 600 thread_meta posts.0.last_edit_time moderator LANGUAGE_CODE %}
135 {{ posts.0.get_reply_count }} {% trans 'replies' %},
135 {{ posts.0.get_reply_count }} {% trans 'replies' %},
136 {{ posts.0.get_images_count }} {% trans 'images' %}.
136 {{ posts.0.get_images_count }} {% trans 'images' %}.
137 {% trans 'Last update: ' %}{{ posts.0.last_edit_time }}
137 {% trans 'Last update: ' %}{{ posts.0.last_edit_time }}
138 [<a href="rss/">RSS</a>]
138 [<a href="rss/">RSS</a>]
139 {% endcache %}
139 {% endcache %}
140 </span>
140 </span>
141
141
142 {% endblock %}
142 {% endblock %}
@@ -1,215 +1,209 b''
1 # Django settings for neboard project.
1 # Django settings for neboard project.
2 import os
2 import os
3 import markdown
3 import markdown
4 from boards.mdx_neboard import markdown_extended
4 from boards.mdx_neboard import markdown_extended
5
5
6 DEBUG = True
6 DEBUG = True
7 TEMPLATE_DEBUG = DEBUG
7 TEMPLATE_DEBUG = DEBUG
8
8
9 ADMINS = (
9 ADMINS = (
10 # ('Your Name', 'your_email@example.com'),
10 # ('Your Name', 'your_email@example.com'),
11 ('admin', 'admin@example.com')
11 ('admin', 'admin@example.com')
12 )
12 )
13
13
14 MANAGERS = ADMINS
14 MANAGERS = ADMINS
15
15
16 DATABASES = {
16 DATABASES = {
17 'default': {
17 'default': {
18 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
18 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
19 'NAME': 'database.db', # Or path to database file if using sqlite3.
19 'NAME': 'database.db', # Or path to database file if using sqlite3.
20 'USER': '', # Not used with sqlite3.
20 'USER': '', # Not used with sqlite3.
21 'PASSWORD': '', # Not used with sqlite3.
21 'PASSWORD': '', # Not used with sqlite3.
22 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
22 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
23 'PORT': '', # Set to empty string for default. Not used with sqlite3.
23 'PORT': '', # Set to empty string for default. Not used with sqlite3.
24 }
24 }
25 }
25 }
26
26
27 CACHES = {
28 'default': {
29 'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
30 'LOCATION': 'neboard_cache',
31 }
32 }
33
34 # Local time zone for this installation. Choices can be found here:
27 # Local time zone for this installation. Choices can be found here:
35 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
28 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
36 # although not all choices may be available on all operating systems.
29 # although not all choices may be available on all operating systems.
37 # In a Windows environment this must be set to your system time zone.
30 # In a Windows environment this must be set to your system time zone.
38 TIME_ZONE = 'Europe/Kiev'
31 TIME_ZONE = 'Europe/Kiev'
39
32
40 # Language code for this installation. All choices can be found here:
33 # Language code for this installation. All choices can be found here:
41 # http://www.i18nguy.com/unicode/language-identifiers.html
34 # http://www.i18nguy.com/unicode/language-identifiers.html
42 LANGUAGE_CODE = 'en'
35 LANGUAGE_CODE = 'en'
43
36
44 SITE_ID = 1
37 SITE_ID = 1
45
38
46 # If you set this to False, Django will make some optimizations so as not
39 # If you set this to False, Django will make some optimizations so as not
47 # to load the internationalization machinery.
40 # to load the internationalization machinery.
48 USE_I18N = True
41 USE_I18N = True
49
42
50 # If you set this to False, Django will not format dates, numbers and
43 # If you set this to False, Django will not format dates, numbers and
51 # calendars according to the current locale.
44 # calendars according to the current locale.
52 USE_L10N = True
45 USE_L10N = True
53
46
54 # If you set this to False, Django will not use timezone-aware datetimes.
47 # If you set this to False, Django will not use timezone-aware datetimes.
55 USE_TZ = True
48 USE_TZ = True
56
49
57 # Absolute filesystem path to the directory that will hold user-uploaded files.
50 # Absolute filesystem path to the directory that will hold user-uploaded files.
58 # Example: "/home/media/media.lawrence.com/media/"
51 # Example: "/home/media/media.lawrence.com/media/"
59 MEDIA_ROOT = './media/'
52 MEDIA_ROOT = './media/'
60
53
61 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
54 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
62 # trailing slash.
55 # trailing slash.
63 # Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
56 # Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
64 MEDIA_URL = '/media/'
57 MEDIA_URL = '/media/'
65
58
66 # Absolute path to the directory static files should be collected to.
59 # Absolute path to the directory static files should be collected to.
67 # Don't put anything in this directory yourself; store your static files
60 # Don't put anything in this directory yourself; store your static files
68 # in apps' "static/" subdirectories and in STATICFILES_DIRS.
61 # in apps' "static/" subdirectories and in STATICFILES_DIRS.
69 # Example: "/home/media/media.lawrence.com/static/"
62 # Example: "/home/media/media.lawrence.com/static/"
70 STATIC_ROOT = ''
63 STATIC_ROOT = ''
71
64
72 # URL prefix for static files.
65 # URL prefix for static files.
73 # Example: "http://media.lawrence.com/static/"
66 # Example: "http://media.lawrence.com/static/"
74 STATIC_URL = '/static/'
67 STATIC_URL = '/static/'
75
68
76 # Additional locations of static files
69 # Additional locations of static files
77 # It is really a hack, put real paths, not related
70 # It is really a hack, put real paths, not related
78 STATICFILES_DIRS = (
71 STATICFILES_DIRS = (
79 os.path.dirname(__file__) + '/boards/static',
72 os.path.dirname(__file__) + '/boards/static',
80
73
81 # '/d/work/python/django/neboard/neboard/boards/static',
74 # '/d/work/python/django/neboard/neboard/boards/static',
82 # Put strings here, like "/home/html/static" or "C:/www/django/static".
75 # Put strings here, like "/home/html/static" or "C:/www/django/static".
83 # Always use forward slashes, even on Windows.
76 # Always use forward slashes, even on Windows.
84 # Don't forget to use absolute paths, not relative paths.
77 # Don't forget to use absolute paths, not relative paths.
85 )
78 )
86
79
87 # List of finder classes that know how to find static files in
80 # List of finder classes that know how to find static files in
88 # various locations.
81 # various locations.
89 STATICFILES_FINDERS = (
82 STATICFILES_FINDERS = (
90 'django.contrib.staticfiles.finders.FileSystemFinder',
83 'django.contrib.staticfiles.finders.FileSystemFinder',
91 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
84 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
92 # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
85 # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
93 )
86 )
94
87
95 # Make this unique, and don't share it with anybody.
88 # Make this unique, and don't share it with anybody.
96 SECRET_KEY = '@1rc$o(7=tt#kd+4s$u6wchm**z^)4x90)7f6z(i&amp;55@o11*8o'
89 SECRET_KEY = '@1rc$o(7=tt#kd+4s$u6wchm**z^)4x90)7f6z(i&amp;55@o11*8o'
97
90
98 # List of callables that know how to import templates from various sources.
91 # List of callables that know how to import templates from various sources.
99 TEMPLATE_LOADERS = (
92 TEMPLATE_LOADERS = (
100 'django.template.loaders.filesystem.Loader',
93 'django.template.loaders.filesystem.Loader',
101 'django.template.loaders.app_directories.Loader',
94 'django.template.loaders.app_directories.Loader',
102 # 'django.template.loaders.eggs.Loader',
95 # 'django.template.loaders.eggs.Loader',
103 )
96 )
104
97
105 TEMPLATE_CONTEXT_PROCESSORS = (
98 TEMPLATE_CONTEXT_PROCESSORS = (
106 'django.core.context_processors.media',
99 'django.core.context_processors.media',
107 'django.core.context_processors.static',
100 'django.core.context_processors.static',
108 'django.core.context_processors.request',
101 'django.core.context_processors.request',
109 'django.contrib.auth.context_processors.auth',
102 'django.contrib.auth.context_processors.auth',
110 )
103 )
111
104
112 MIDDLEWARE_CLASSES = (
105 MIDDLEWARE_CLASSES = (
113 'django.contrib.sessions.middleware.SessionMiddleware',
106 'django.contrib.sessions.middleware.SessionMiddleware',
114 'django.middleware.locale.LocaleMiddleware',
107 'django.middleware.locale.LocaleMiddleware',
115 'django.middleware.common.CommonMiddleware',
108 'django.middleware.common.CommonMiddleware',
116 # 'django.middleware.csrf.CsrfViewMiddleware',
109 # 'django.middleware.csrf.CsrfViewMiddleware',
117 'django.contrib.auth.middleware.AuthenticationMiddleware',
110 'django.contrib.auth.middleware.AuthenticationMiddleware',
118 'django.contrib.messages.middleware.MessageMiddleware',
111 'django.contrib.messages.middleware.MessageMiddleware',
119 # Uncomment the next line for simple clickjacking protection:
112 # Uncomment the next line for simple clickjacking protection:
120 # 'django.middleware.clickjacking.XFrameOptionsMiddleware'
113 # 'django.middleware.clickjacking.XFrameOptionsMiddleware'
121 'boards.middlewares.BanMiddleware',
114 'boards.middlewares.BanMiddleware',
122 )
115 )
123
116
124 ROOT_URLCONF = 'neboard.urls'
117 ROOT_URLCONF = 'neboard.urls'
125
118
126 # Python dotted path to the WSGI application used by Django's runserver.
119 # Python dotted path to the WSGI application used by Django's runserver.
127 WSGI_APPLICATION = 'neboard.wsgi.application'
120 WSGI_APPLICATION = 'neboard.wsgi.application'
128
121
129 TEMPLATE_DIRS = (
122 TEMPLATE_DIRS = (
130 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
123 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
131 # Always use forward slashes, even on Windows.
124 # Always use forward slashes, even on Windows.
132 # Don't forget to use absolute paths, not relative paths.
125 # Don't forget to use absolute paths, not relative paths.
133 'templates',
126 'templates',
134 )
127 )
135
128
136 INSTALLED_APPS = (
129 INSTALLED_APPS = (
137 'django.contrib.auth',
130 'django.contrib.auth',
138 'django.contrib.contenttypes',
131 'django.contrib.contenttypes',
139 'django.contrib.sessions',
132 'django.contrib.sessions',
140 # 'django.contrib.sites',
133 # 'django.contrib.sites',
141 'django.contrib.messages',
134 'django.contrib.messages',
142 'django.contrib.staticfiles',
135 'django.contrib.staticfiles',
143 # Uncomment the next line to enable the admin:
136 # Uncomment the next line to enable the admin:
144 'django.contrib.admin',
137 'django.contrib.admin',
145 # Uncomment the next line to enable admin documentation:
138 # Uncomment the next line to enable admin documentation:
146 # 'django.contrib.admindocs',
139 # 'django.contrib.admindocs',
147 'django.contrib.markup',
140 'django.contrib.markup',
148 'django_cleanup',
141 'django_cleanup',
149 'boards',
142 'boards',
150 'captcha',
143 'captcha',
151 'south',
144 'south',
152 )
145 )
153
146
154 # TODO: NEED DESIGN FIXES
147 # TODO: NEED DESIGN FIXES
155 CAPTCHA_OUTPUT_FORMAT = (u' %(hidden_field)s '
148 CAPTCHA_OUTPUT_FORMAT = (u' %(hidden_field)s '
156 u'<div class="form-label">%(image)s</div>'
149 u'<div class="form-label">%(image)s</div>'
157 u'<div class="form-text">%(text_field)s</div>')
150 u'<div class="form-text">%(text_field)s</div>')
158
151
159 # A sample logging configuration. The only tangible logging
152 # A sample logging configuration. The only tangible logging
160 # performed by this configuration is to send an email to
153 # performed by this configuration is to send an email to
161 # the site admins on every HTTP 500 error when DEBUG=False.
154 # the site admins on every HTTP 500 error when DEBUG=False.
162 # See http://docs.djangoproject.com/en/dev/topics/logging for
155 # See http://docs.djangoproject.com/en/dev/topics/logging for
163 # more details on how to customize your logging configuration.
156 # more details on how to customize your logging configuration.
164 LOGGING = {
157 LOGGING = {
165 'version': 1,
158 'version': 1,
166 'disable_existing_loggers': False,
159 'disable_existing_loggers': False,
167 'filters': {
160 'filters': {
168 'require_debug_false': {
161 'require_debug_false': {
169 '()': 'django.utils.log.RequireDebugFalse'
162 '()': 'django.utils.log.RequireDebugFalse'
170 }
163 }
171 },
164 },
172 'handlers': {
165 'handlers': {
173 'mail_admins': {
166 'mail_admins': {
174 'level': 'ERROR',
167 'level': 'ERROR',
175 'filters': ['require_debug_false'],
168 'filters': ['require_debug_false'],
176 'class': 'django.utils.log.AdminEmailHandler'
169 'class': 'django.utils.log.AdminEmailHandler'
177 }
170 }
178 },
171 },
179 'loggers': {
172 'loggers': {
180 'django.request': {
173 'django.request': {
181 'handlers': ['mail_admins'],
174 'handlers': ['mail_admins'],
182 'level': 'ERROR',
175 'level': 'ERROR',
183 'propagate': True,
176 'propagate': True,
184 },
177 },
185 }
178 }
186 }
179 }
187
180
188 MARKUP_FIELD_TYPES = (
181 MARKUP_FIELD_TYPES = (
189 ('markdown', markdown_extended),
182 ('markdown', markdown_extended),
190 )
183 )
191 # Custom imageboard settings
184 # Custom imageboard settings
192 MAX_POSTS_PER_THREAD = 10 # Thread bumplimit
185 MAX_POSTS_PER_THREAD = 10 # Thread bumplimit
193 MAX_THREAD_COUNT = 500 # Old threads will be deleted to preserve this count
186 MAX_THREAD_COUNT = 500 # Old threads will be deleted to preserve this count
194 THREADS_PER_PAGE = 10
187 THREADS_PER_PAGE = 10
195 SITE_NAME = 'Neboard'
188 SITE_NAME = 'Neboard'
196
189
197 THEMES = [
190 THEMES = [
198 ('md', 'Mystic Dark'),
191 ('md', 'Mystic Dark'),
192 ('md_centered', 'Mystic Dark (centered)'),
199 ('sw', 'Snow White'),
193 ('sw', 'Snow White'),
200 ('pg', 'Photon Gray'),
194 ('pg', 'Photon Gray'),
201 ]
195 ]
202
196
203 DEFAULT_THEME = 'md'
197 DEFAULT_THEME = 'md'
204
198
205 POPULAR_TAGS = 10
199 POPULAR_TAGS = 10
206 LAST_REPLIES_COUNT = 3
200 LAST_REPLIES_COUNT = 3
207
201
208 ENABLE_CAPTCHA = False
202 ENABLE_CAPTCHA = False
209 # if user tries to post before CAPTCHA_DEFAULT_SAFE_TIME. Captcha will be shown
203 # if user tries to post before CAPTCHA_DEFAULT_SAFE_TIME. Captcha will be shown
210 CAPTCHA_DEFAULT_SAFE_TIME = 30 # seconds
204 CAPTCHA_DEFAULT_SAFE_TIME = 30 # seconds
211 POSTING_DELAY = 30 # seconds
205 POSTING_DELAY = 30 # seconds
212
206
213 # Debug mode middlewares
207 # Debug mode middlewares
214 if DEBUG:
208 if DEBUG:
215 MIDDLEWARE_CLASSES += ('boards.profiler.ProfilerMiddleware',)
209 MIDDLEWARE_CLASSES += ('boards.profiler.ProfilerMiddleware',)
General Comments 0
You need to be logged in to leave comments. Login now