You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
581 B
20 lines
581 B
# -*- coding: utf-8 -*-
|
|
from django.shortcuts import render_to_response
|
|
from django.http import HttpResponseRedirect, HttpResponse
|
|
from django.core.context_processors import csrf
|
|
from django.conf import settings
|
|
from django.contrib.auth.decorators import login_required
|
|
#
|
|
from forms import SettingsForm
|
|
|
|
|
|
|
|
@login_required
|
|
def change_settings(request):
|
|
if request.POST:
|
|
pass
|
|
else:
|
|
form = SettingsForm()
|
|
args = {'form': form, 'languages': settings.LANGUAGES}
|
|
args.update(csrf(request))
|
|
return render_to_response('settings.html', args) |