from django.conf.urls import url, include from frontend.views import (HomeView, SubmissionCreateView, SubmissionReView, SubmissionPDFView) urlpatterns = [ url(r'^$', HomeView.as_view(), name='home'), url(r'^exam/(?P<exam_pk>\d+)/submission/$', SubmissionCreateView.as_view(), name='exam-completion'), url(r'^submission/(?P<submission_id>[0-9a-z-]+)/$', SubmissionReView.as_view(), name='submission-review'), url(r'^submission/(?P<submission_id>[0-9a-z-]+)/pdf/$', SubmissionPDFView.as_view(), name='submission-review-pdf'), ]
from django.conf import settings from django.urls import path from django.conf.urls.static import static from django.contrib import admin from frontend.views import CarDetailsView, NewBookingView, HomeView urlpatterns = [ path('admin/', admin.site.urls), path('', HomeView.as_view(), name='home'), path('car/<int:pk>/', CarDetailsView.as_view(), name='car-details'), path('booking/<int:car_pk>/', NewBookingView.as_view(), name='new-booking'), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
from django.conf import settings from django.conf.urls import url from django.conf.urls.static import static from django.contrib import admin from frontend.views import CarDetailsView from frontend.views import NewBookingView from frontend.views import HomeView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^$', HomeView.as_view(), name='home'), url(r'^car/(?P<pk>\d+)/$', CarDetailsView.as_view(), name='car-details'), url(r'^booking/(?P<car_pk>\d+)/$', NewBookingView.as_view(), name='new-booking'), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
from django.contrib import admin from django.urls import path, include, re_path from django.utils.translation import ugettext_lazy from backend.views import member from frontend.views import HomeView admin.site.site_title = ugettext_lazy('Administration PHYTORGANIC') admin.site.site_header = ugettext_lazy('Administration PHYTORGANIC') urlpatterns = [ path('admin/', admin.site.urls), path('', include('frontend.urls')), path('dashboard/', include('backend.urls')), path('wallet/', include('wallet.urls')), path('<str:username>', HomeView.as_view()), re_path(r'^ckeditor/', include('ckeditor_uploader.urls')), ] urlpatterns += [ path('get_member/<str:username>', member.get_member, name='get_member'), re_path(r'^validate_username/$', member.validate_username, name='validate_username'), re_path(r'^validate_sponsor/$', member.validate_sponsor, name='validate_sponsor'), re_path(r'^validate_email/$', member.validate_email, name='validate_email'), re_path(r'^validate_placement_name/$', member.validate_placement_name,
from django.conf.urls.defaults import patterns, url from django.contrib.auth.decorators import login_required from django.views.generic.base import TemplateView from django.contrib import admin from frontend.views import loggedInView, HomeView admin.autodiscover() urlpatterns = patterns( '', url(r'^loggedin', loggedInView, name='logged_in'), url(r'^.*$', login_required(HomeView.as_view()), name='home'), )
from django.conf.urls import url, include from frontend.views import ( HomeView, SubmissionCreateView, SubmissionReView, SubmissionPDFView ) urlpatterns = [ url( r'^$', HomeView.as_view(), name='home' ), url( r'^exam/(?P<exam_pk>\d+)/submission/$', SubmissionCreateView.as_view(), name='exam-completion' ), url( r'^submission/(?P<submission_id>[0-9a-z-]+)/$', SubmissionReView.as_view(), name='submission-review' ), url( r'^submission/(?P<submission_id>[0-9a-z-]+)/pdf/$', SubmissionPDFView.as_view(), name='submission-review-pdf' ), ]
from django.conf.urls import url from django.urls import path from frontend.views import HomeView, AboutView, JokeView, QuoteView, WeatherView urlpatterns = [ url(r"^$", HomeView.as_view()), url(r"about", AboutView.as_view()), url(r"joke", JokeView.as_view()), path(r"joke", JokeView.as_view(), name='add_joke'), url(r"quote", QuoteView.as_view()), path(r"quote", QuoteView.as_view(), name='quote'), url(r"weather", WeatherView.as_view()), path(r"weather", WeatherView.as_view(), name='weather'), ]
from django.conf.urls import url from django.urls import path from frontend.views import HomeView, ReportView, ReportWordView urlpatterns = [ url(r'^$', HomeView.as_view(), name="home"), path('report/<uuid:report_id>/', ReportView.as_view(), name="report"), path('report/<uuid:report_id>/<str:word>/', ReportWordView.as_view(), name="report_word"), ]
from django.conf.urls.defaults import patterns, url from django.contrib.auth.decorators import login_required from django.views.generic.base import TemplateView from django.contrib import admin from frontend.views import loggedInView, HomeView admin.autodiscover() urlpatterns = patterns('', url(r'^loggedin', loggedInView, name='logged_in'), url(r'^.*$',login_required(HomeView.as_view()), name='home'), )
from django.conf.urls import url from frontend.views import HomeView from music.views import find_song, song_stream, song_download urlpatterns = [ url("^$", HomeView.as_view(), name="home"), ]