Skip to content

Commit

Permalink
Improvements in the example project
Browse files Browse the repository at this point in the history
  • Loading branch information
goinnn committed Oct 5, 2013
1 parent 4b7b567 commit deb4fe3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions example/example/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@
'django.core.context_processors.i18n',
'django.core.context_processors.media',
#'django.core.context_processors.request',
'django.contrib.messages.context_processors.messages',
)


Expand Down Expand Up @@ -198,7 +197,9 @@
INSTALLED_APPS += ('django.contrib.messages',)
MIDDLEWARE_CLASSES += ('django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
elif django.VERSION[0] >= 1 and django.VERSION[1] == 1:
TEMPLATE_CONTEXT_PROCESSORS += ('django.contrib.messages.context_processors.messages',)

if django.VERSION[0] >= 1 and django.VERSION[1] <= 1:
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.auth',
'django.core.context_processors.debug',
Expand Down
1 change: 1 addition & 0 deletions example/example/templates/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>404 error</h1>
1 change: 1 addition & 0 deletions example/example/templates/500.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>500 error</h1>

0 comments on commit deb4fe3

Please sign in to comment.