route сreate
This commit is contained in:
SDE
2023-07-13 15:37:31 +03:00
parent 6de8a4bdd7
commit 86a43d69e2
6 changed files with 88 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
from django.shortcuts import render
from uuid import uuid1
from AuthApp.models import *
from .models import *
from django.contrib import auth
from django.http import HttpResponse, Http404, JsonResponse
from django.template import loader, RequestContext
@@ -24,17 +24,7 @@ def my_routes_ajax(request):
return JsonResponse({'html': html}, status=200)
def new_route_view_ajax(request):
if request.method != 'POST':
raise Http404
from RoutesApp.forms import RegistrationForm
Dict = {
'form': RegistrationForm()
}
html = render_to_string('blocks/profile/b_new_route.html', Dict, request=request)
return JsonResponse({'html': html}, status=200)
def login_ajax(request):