Titivillus/create_quest/views.py

15 lines
333 B
Python
Raw Normal View History

2018-08-10 08:39:51 -04:00
#!/usr/bin/env python3
"""
/create_quest app views.
"""
from django.shortcuts import render
2018-08-10 19:07:18 -04:00
from django.contrib.auth.decorators import login_required
2018-08-10 08:39:51 -04:00
2018-08-10 19:07:18 -04:00
@login_required(login_url='/login/')
2018-08-10 08:39:51 -04:00
def index(request):
"""
The index page for creating new quests.
"""
context = {}
return render(request, 'create_quest/index.html', context)