Skip to content

Commit

Permalink
Details to the example project
Browse files Browse the repository at this point in the history
Conflicts:
	example/example/templates/admin/change_form.html
  • Loading branch information
goinnn committed Sep 29, 2013
1 parent 27206d2 commit 02adb00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion example/example/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@

import django

if django.VERSION[0] >= 1 and django.VERSION[1] >= 4:
TEMPLATE_CONTEXT_PROCESSORS += ('django.core.context_processors.tz',)

if django.VERSION[0] >= 1 and django.VERSION[1] >= 3:
INSTALLED_APPS += ('django.contrib.staticfiles',)
# Absolute path to the directory static files should be collected to.
Expand Down Expand Up @@ -177,7 +180,7 @@
TEMPLATE_CONTEXT_PROCESSORS += ('django.core.context_processors.static',)


elif django.VERSION[0] >= 1 and django.VERSION[1] >= 2:
if django.VERSION[0] >= 1 and django.VERSION[1] >= 2:
INSTALLED_APPS += ('django.contrib.messages',)
MIDDLEWARE_CLASSES += ('django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
Expand Down
4 changes: 2 additions & 2 deletions example/example/templates/admin/change_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% block content_title %}
{{ block.super }}
<p style="color:red">
Overwriting the change_form template in our project without to have to copy every line of this template in our project (without repeating code)
<a href="https://github.com/goinnn/django-smart-extends/blob/django_1.4_and_1.5/example/example/templates/admin/change_form.html"> See the code </a>
Overwriting the change_form template in our project without to have to copy every line of this template in our project (without repeating code).
<a href="https://github.com/goinnn/django-smart-extends/blob/master/example/example/templates/admin/change_form.html" target="_blank"> See the code </a>
</p>
{% endblock %}

0 comments on commit 02adb00

Please sign in to comment.