Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 70f99f9fa4
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (17 sloc) 0.589 kB
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from django.utils import simplejson
from models import AestheticOptions
import nullaesthetic
#noinspection PyUnusedLocal
@login_required
def ensure_aesthetic_options_defaults(request):
AestheticOptions.ensure_defaults()
return HttpResponse(u"done")
def random_aesthetic(request):
aesthetic = recipeer.null_aesthetic()
ctx = {
'aesthetic': aesthetic
}
content = simplejson.dumps(ctx, indent=4)
return HttpResponse(content, content_type='application/json')
Jump to Line
Something went wrong with that request. Please try again.