Skip to content
This repository has been archived by the owner on May 31, 2019. It is now read-only.

Commit

Permalink
Active djangotribune demo
Browse files Browse the repository at this point in the history
  • Loading branch information
sveetch committed May 16, 2012
1 parent 1fafb07 commit c7f432e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dispatcher_sample.fcgi
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/python #!/usr/bin/python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
Sample dispatcher for FastCGI FastCGI dispatcher for development environment
""" """
import sys, os import sys, os


Expand Down
22 changes: 17 additions & 5 deletions settings.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
('sveeaccounts', None, None, {'github':True, 'pypi':True}), ('sveeaccounts', None, None, {'github':True, 'pypi':True}),
('djangocodemirror', None, None, {'github':True, 'pypi':True, 'demo_link': ('djangocodemirror-sample-view', [])}), ('djangocodemirror', None, None, {'github':True, 'pypi':True, 'demo_link': ('djangocodemirror-sample-view', [])}),
('sveedocuments', None, None, {'github':True, 'pypi':True}), ('sveedocuments', None, None, {'github':True, 'pypi':True}),
('djangotribune', None, None, {'github':True, 'pypi':True}), ('djangotribune', None, None, {'github':True, 'pypi':True, 'demo_link': ('tribune-board', [])}),
('DjangoSveetchies', None, None, {'github':True, 'doc_link': ('documents-page-details', ['djangosveetchies'])}), ('DjangoSveetchies', None, None, {'github':True, 'doc_link': ('documents-page-details', ['djangosveetchies'])}),
) )


Expand Down Expand Up @@ -129,11 +129,11 @@
# timezone as the operating system. # timezone as the operating system.
# If running in a Windows environment this must be set to the same as your # If running in a Windows environment this must be set to the same as your
# system time zone. # system time zone.
TIME_ZONE = 'America/Chicago' TIME_ZONE = 'Europe/Paris'


# Language code for this installation. All choices can be found here: # Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html # http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en' LANGUAGE_CODE = 'fr'


# If you set this to False, Django will make some optimizations so as not # If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery. # to load the internationalization machinery.
Expand All @@ -157,9 +157,20 @@
DOCUMENTS_PAGE_TEMPLATES = { DOCUMENTS_PAGE_TEMPLATES = {
'homepage': ('sveedocuments/page_details/homepage_with_flat_menu.html', ugettext_lazy('Home page with automatic app list')), 'homepage': ('sveedocuments/page_details/homepage_with_flat_menu.html', ugettext_lazy('Home page with automatic app list')),
} }
# Custom cache keys to remove with clearcache command option
DOCUMENTS_CACHE_KEYS_TO_CLEAN = ["applications_toc_on_homepage"] DOCUMENTS_CACHE_KEYS_TO_CLEAN = ["applications_toc_on_homepage"]


# Forbidden words for slug values in documents to avoid clashes in urls
DOCUMENTS_PAGE_RESERVED_SLUGS = (
'add', 'admin', 'board', 'preview', 'inserts', 'documents-help', 'sitemap', # for sveedocuments
'djangocodemirror-sample', # for djangocodemirror sample
'accounts', 'captcha', # for sveeaccounts
'tribune', # for djangotribune
)

# Cookie name used to store and retreive user settings for editor
DJANGOCODEMIRROR_USER_SETTINGS_COOKIE_NAME = "djangocodemirror_user_settings" DJANGOCODEMIRROR_USER_SETTINGS_COOKIE_NAME = "djangocodemirror_user_settings"

# Additional Django-CodeMirror settings for sveedocuments # Additional Django-CodeMirror settings for sveedocuments
CODEMIRROR_SETTINGS = { CODEMIRROR_SETTINGS = {
'sveetchies-documents-page': { 'sveetchies-documents-page': {
Expand Down Expand Up @@ -238,21 +249,22 @@
'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.messages.middleware.MessageMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware', #'debug_toolbar.middleware.DebugToolbarMiddleware',
) )


ROOT_URLCONF = 'DjangoSveetchies.urls' ROOT_URLCONF = 'DjangoSveetchies.urls'


INSTALLED_APPS = ( INSTALLED_APPS = (
'captcha', 'captcha',
'crispy_forms', 'crispy_forms',
'debug_toolbar', #'debug_toolbar',
'mptt', 'mptt',
'registration', 'registration',
'autobreadcrumbs', 'autobreadcrumbs',
'djangocodemirror', 'djangocodemirror',
'sveeaccounts', 'sveeaccounts',
'sveedocuments', 'sveedocuments',
'djangotribune',
'django.contrib.auth', 'django.contrib.auth',
'django.contrib.contenttypes', 'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.sessions',
Expand Down
2 changes: 2 additions & 0 deletions urls.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@


(r'^djangocodemirror-sample/', include('djangocodemirror.urls')), (r'^djangocodemirror-sample/', include('djangocodemirror.urls')),


url(r'^tribune/', include('djangotribune.urls')),

url(r'^documents-help/$', HelpPage.as_view(), name='documents-help'), url(r'^documents-help/$', HelpPage.as_view(), name='documents-help'),
url(r'^sitemap/$', PageIndex.as_view(), name='documents-index'), url(r'^sitemap/$', PageIndex.as_view(), name='documents-index'),
url(r'^(?P<slug>[-\w]+)/$', PageDetails.as_view(), name='documents-page-details'), url(r'^(?P<slug>[-\w]+)/$', PageDetails.as_view(), name='documents-page-details'),
Expand Down

0 comments on commit c7f432e

Please sign in to comment.