diff --git a/main/views.py b/main/views.py index e54041b..1004ac3 100644 --- a/main/views.py +++ b/main/views.py @@ -42,6 +42,7 @@ def create_item(request): context = {'form': form} return render(request, "create_item.html", context) +@csrf_exempt def register(request): form = UserCreationForm() @@ -54,6 +55,7 @@ def register(request): context = {'form':form} return render(request, 'register.html', context) +@csrf_exempt def login_user(request): if request.method == 'POST': username = request.POST.get('username')