0.1.30
routes/route_search_results/
This commit is contained in:
10
RoutesApp/urls.py
Normal file
10
RoutesApp/urls.py
Normal 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'),
|
||||
|
||||
]
|
||||
@@ -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))
|
||||
|
||||
@@ -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')),
|
||||
|
||||
Reference in New Issue
Block a user