Exemplo n.º 1
0
from django.conf.urls import patterns, include, url
from django.contrib import admin
from app.views import HomeView

admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    url(r'^$', HomeView.as_view(), name='home'),
    url(r'^user/(?P<pk>\d+)/$', HomeView.as_view(), name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^admin/', include(admin.site.urls)),
)
Exemplo n.º 2
0
"""app URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin

from app.views import HomeView

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(
        r'^$',
        HomeView.as_view(),
        name='home',
    ),
]
Exemplo n.º 3
0
Arquivo: urls.py Projeto: riudor/drife
from django.conf.urls import url

from app.views import HomeView

urlpatterns = [url(r'^$', HomeView.as_view(), name="home")]
Exemplo n.º 4
0
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, re_path, include

from django.conf.urls.static import static
from django.conf import settings

from app.views import HomeView, LessonListView, LessonAddView, LessonUpdateView, LessonDelView, LessonTakePartInView

urlpatterns = [
    path('admin/', admin.site.urls),
    path('user-profile/', include('user_profile.urls', namespace='user_profile')),
    re_path('^$', HomeView.as_view(), name="home"),
    path('lesson-list/', LessonListView.as_view(), name="lesson-list"),
    path('lesson-add/', LessonAddView.as_view(), name="lesson-add"),
    path('lesson-update/', LessonUpdateView.as_view(), name="lesson-update"),
    path('lesson-del/', LessonDelView.as_view(), name="lesson-del"),
    path('competition-take/', LessonTakePartInView.as_view(), name="lesson-take"),
]

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Exemplo n.º 5
0
from django.conf.urls import patterns, url
from app.views import HomeView

urlpatterns = patterns('app.views',
    url(r'^home/$',HomeView.as_view(),name='app.views.home'),
)
Exemplo n.º 6
0
from django.urls import path, include

from app.views import HomeView, HotelView, AboutView, HotelDetailView, ContactView

# NameSpace
app_name = 'App'

urlpatterns = [
    path('', HomeView.as_view(), name="home"),
    path('Hotels', HotelView.as_view(), name="hotels"),
    path('Hotels/<slug>', HotelDetailView.as_view(), name="hotel"),
    path('About', AboutView.as_view(), name="about"),
    path('Contact', ContactView.as_view(), name="contact"),

    # DRF API
    # path('API/', include('app.api.urls')),
]
Exemplo n.º 7
0
"""pushnotify URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from app.views import HomeView

urlpatterns = [path('admin/', admin.site.urls), path('', HomeView.as_view())]
Exemplo n.º 8
0
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path

from app.views import AllVacancies
from app.views import CompanyCard
from app.views import custom_handler404
from app.views import custom_handler500
from app.views import HomeView
from app.views import SpecialVacancies
from app.views import Vacancies

handler404 = custom_handler404
handler500 = custom_handler500

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', HomeView.as_view(), name='index'),
    path('vacancies/', AllVacancies.as_view(), name='vacancies'),
    path('vacancies/cat/<str:specialty_title_str>/',
         SpecialVacancies.as_view()),
    path('companies/<int:company_id>/', CompanyCard.as_view()),
    path('vacancies/<int:vacancy_id>/', Vacancies.as_view()),
]
Exemplo n.º 9
0
from app.views import (
    HomeView
)
from tags.views import (
    TagsView, 
    CreateTagView,
    TagSnippetsView
)
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(
        r'^$', 
        HomeView.as_view(),
        name='home'
    ),
    url(
        r'^login/$', 
        LoginView.as_view(),
        name='login'
    ),
    url(
        r'^logout/$', 
        'django.contrib.auth.views.logout',
        {'next_page': settings.LOGIN_URL},
        name='logout'
    ),

    ################################
Exemplo n.º 10
0
"""tests_cod URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin
from app.views import home, HomeView

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^te', home, name='home'),
    url(r'^$', HomeView.as_view()),
]
from django.conf.urls import patterns, include, url
from django.contrib import admin
from app.views import HomeView

admin.autodiscover()

urlpatterns = patterns(
    '',
    # Examples:
    url(r'^$', HomeView.as_view(), name='home'),
    url(r'^user/(?P<pk>\d+)/$', HomeView.as_view(), name='home'),
    # url(r'^blog/', include('blog.urls')),
    url(r'^admin/', include(admin.site.urls)),
)
Exemplo n.º 12
0
from django.conf.urls import url

from app.views import HomeView

urlpatterns = [
    url('^$', (HomeView.as_view()), name='home'),
]
Exemplo n.º 13
0
"""
from django.contrib import admin
from django.urls import path
from django.conf.urls import url, include
from django.conf.urls.static import static
from django.conf import settings
from app.views import home, redirectToStore, selectCampaign, ContactView, HomeView
from shopping.views import AboutUSView, WhyUSView
from django.conf.urls import handler404, handler500

handler404 = 'shopping.views.handler404'
handler500 = 'shopping.views.handler500'

urlpatterns = [
    url('^admin/', admin.site.urls),
    url('^$', HomeView.as_view(), name="home"),
    url('^about-us/$', AboutUSView.as_view(), name="about-us"),
    url('^how-it-works/$', WhyUSView.as_view(), name="how-it-works"),
    url('^contact-us/$', ContactView.as_view(), name="contact-us"),
    # Online Shopping App
    url(r'^shopping/', include('shopping.urls')),
    # Online trael App
    url(r'^travels/', include('flights.urls')),
    # Online Bus Bookings
    url(r'^buses/', include('busses.urls')),
    # Online Hotel Bookings
    url(r'^food/', include('hotels.urls')),
    url(r'^campaigns/', include('campaigns.urls')),
    url(r'^select$', selectCampaign, name="select-campaign"),
    url(r'^redirect$', redirectToStore, name="redirect-to-store"),
    url(r'^summernote/', include('django_summernote.urls')),
Exemplo n.º 14
0
from django.conf.urls import url
from app.views import StemView, TokenizeView, POSTagView, NERView, \
        LemmatizeView, HomeView, SentimentView
from rest_framework.urlpatterns import format_suffix_patterns

urlpatterns = [
    url(r'^api/$', HomeView.as_view()),
    url(r'^api/stem/$', StemView.as_view()),
    url(r'^api/tokenize/$', TokenizeView.as_view()),
    url(r'^api/lemma/$', LemmatizeView.as_view()),
    url(r'^api/tag/$', POSTagView.as_view()),
    url(r'^api/ner/$', NERView.as_view()),
    url(r'^api/sentiment/$', SentimentView.as_view()),
]

urlpatterns += format_suffix_patterns(urlpatterns)
Exemplo n.º 15
0
"""hello URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path

from app.views import HomeView

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', HomeView.as_view(), name='home'),
]
Exemplo n.º 16
0
"""urlshortener URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, re_path
from app.views import HomeView, RedirectUrlView
from django.conf.urls.static import static
from django.conf import settings

urlpatterns = [
    path('admin/', admin.site.urls),
    path('home/', HomeView.as_view()),
    re_path(r'^(?P<id>[\w\d]+)/$', RedirectUrlView.as_view(), name="redirect"),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
Exemplo n.º 17
0
from django.conf.urls import patterns, include, url
from app.views import HomeView, ProfileView

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$', HomeView.as_view(), name='home'),
    url(r'^profile/', ProfileView.as_view(), name='profile'),

    url(r'^login/', 'django.contrib.auth.views.login', {'template_name': 'auth/login.html'}),
    url(r'^logout/', 'django.contrib.auth.views.logout'),

    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),
)
Exemplo n.º 18
0
from django.contrib.auth import views as auth_views

from app.views import login, base, HomeView
from . import views
urlpatterns = [
    url('^$', base),
    url('home$', base),
    url('app/$', base),
    url(r'login_page$', auth_views.login,
        {'template_name': 'registration/login.html'}),
    url(r'logout_page$', auth_views.logout,
        {'template_name': 'registration/logout.html'}),
    url(r'login$', login),
    url(r'register$', views.register),
    url(r'view_profile$', views.view_profile, name='index'),
    url(r'edit_profile$', views.edit_profile, name='edit_super'),
    url(r'change_password$', views.change_password),
    url(r'reset_password$', auth_views.password_reset),
    url(r'reset_password_done$',
        auth_views.password_reset_done,
        name='password_reset_done'),
    url(r'reset_password_confirm/(?P<uidb64>[0-9A-Za-z]+)-(?P<token>.+)/$',
        auth_views.password_reset_confirm,
        name='password_reset_confirm'),
    url(r'reset_password_complete',
        auth_views.password_reset_complete,
        name='password_reset_complete'),
    url('post_request', HomeView.as_view()),
    url('request_details$', views.request_details),
]