routes/route_search_results/
This commit is contained in:
SDE
2023-08-04 14:16:36 +03:00
parent c8484f1451
commit 5ff0b100c5
3 changed files with 32 additions and 1 deletions

10
RoutesApp/urls.py Normal file
View File

@@ -0,0 +1,10 @@
# coding=utf-8
from django.urls import path
from .views import *
from django.contrib.auth import views
urlpatterns = [
path('route_search_results/', route_search_results_View, name='route_search_results_View'),
]

View File

@@ -1,3 +1,21 @@
from django.shortcuts import render
# Create your views here.
from uuid import uuid1
from .models import *
from django.contrib import auth
from django.http import HttpResponse, Http404
from django.template import loader, RequestContext
from django.contrib.auth.decorators import login_required
from BaseModels.mailSender import techSendMail
from django.utils.translation import gettext as _
from datetime import datetime
def route_search_results_View(request):
routes = Route.objects.filter(enable=True).order_by('-modifiedDT')
Dict = {
'routes': routes
}
t = loader.get_template('pages/p_results_find_route.html')
return HttpResponse(t.render(Dict, request))

View File

@@ -20,7 +20,10 @@ urlpatterns += i18n_patterns(
path('profile/', include('AuthApp.urls')),
path('user_account/', include('AuthApp.js_urls')),
path('routes/', include('RoutesApp.js_urls')),
path('routes/', include('RoutesApp.urls')),
path('messages/', include('ChatServiceApp.js_urls')),
path('reference_data/', include('ReferenceDataApp.js_urls')),