Added changelog view under the about main menu

This commit is contained in:
Roberto Rosario
2011-08-06 21:16:36 -04:00
parent f81f480f32
commit 0584244663
4 changed files with 46 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
import os
from django.shortcuts import redirect
from django.utils.translation import ugettext_lazy as _
from django.http import HttpResponseRedirect
@@ -8,6 +10,8 @@ from django.contrib.contenttypes.models import ContentType
from django.core.urlresolvers import reverse
from django.utils.http import urlencode
from django.contrib.auth.views import login
from django.conf import settings
from django.utils.safestring import mark_safe
from common.forms import ChoiceForm, UserForm, UserForm_view
from common.forms import EmailAuthenticationForm
@@ -179,3 +183,16 @@ def login_view(request):
kwargs['authentication_form'] = EmailAuthenticationForm
return login(request, **kwargs)
from common.forms import ChangelogForm
def changelog(request):
#changelog_widget = mark_safe(u'<form class="form"><div class="group"><textarea rows="10" cols="40" class="text_area">%s</textarea></div></form>' % changelog)
form = ChangelogForm()
return render_to_response(
'generic_detail.html', {
'form': form,
'title': _(u'Changelog'),
},
context_instance=RequestContext(request))