예제 #1
0
"""imgrossen URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.10/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 main.views import HomeView

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^$', HomeView.as_view(), name='main'),
]
예제 #2
0
파일: urls.py 프로젝트: erickgnavar/eolo
from django.conf.urls import patterns, url

from main.views import HomeView, ReportView, FullReportView

urlpatterns = patterns('',

    url(
        regex=r'^$',
        view=HomeView.as_view(),
        name='home'
    ),
    url(
        regex=r'^report/$',
        view=ReportView.as_view(),
        name='report'
    ),
    url(
        regex=r'^full_report/$',
        view=FullReportView.as_view(),
        name='full_report'
    )

)
예제 #3
0
    TopicView,
    InfoView,
    CreatePostView,
    SearchView,
    UserView,
    AccountView,
    ChangePassword,
)

from main.ajax_views import (
    ajax_vote_comment,
    ajax_vote_post,
)

urlpatterns = [
    path("", HomeView.as_view(), name="home"),
    path("login/", LoginView.as_view(), name="login"),
    path("logout/", LogoutView.as_view(), name="logout"),
    path("register/", RegisterView.as_view(), name="register"),
    path("create/topic", CreateTopicView.as_view(), name="create_topic"),
    path("topic/<str:name>/", TopicView.as_view(), name="topic"),
    path("topic/<str:name>/<slug:slug>", InfoView.as_view(), name="info"),
    path("create/post", CreatePostView.as_view(), name="create_post"),
    path("search/<str:q>", SearchView.as_view(), name="search"),
    path('user/<str:user>', UserView.as_view(), name='profile'),
    path('user/<str:user>/posts', UserView.as_view()),
    path('account', AccountView.as_view(), name='account'),
    path('account/password', ChangePassword.as_view(), name='change_password'),
    path(
        "ajax/vote/post/<int:post_id>/<int:vote>/",
        ajax_vote_post,
예제 #4
0
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings

from main.views import HomeView, CourseDetailView

urlpatterns = patterns(
    "",
    # Examples:
    # url(r'^$', 'minicurso.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    url(r"^$", HomeView.as_view()),
    url(r"^cursos/(?P<slug>[-\w]+)/$", CourseDetailView.as_view()),
    url(r"^admin/", include(admin.site.urls)),
    url(r"^media/(?P<path>.*)$", "django.views.static.serve", {"document_root": settings.MEDIA_ROOT}),
)
예제 #5
0
from django.conf.urls import url
from . import views
from django.contrib.auth.views import login
from main.views import LoginView,AddClientView,AddProductView,AddBankAccountView,HomeView,InvoiceRegisterView,FactureEdexAnView,FactureEdexFrView,FactureEdexArView,FactureProformaAnView,FactureProformaFrView,FactureProformaArView,FactureUnpaAnView,FactureUnpaFrView,FactureUnpaArView
urlpatterns = [
    url(r'^$',login,{'template_name':'accounts/Login.html'}),
    url(r'^Login/$',LoginView.as_view(),name='LoginView'),
    url(r'^Home/$',HomeView.as_view(),name='HomeView'),
    url(r'^Home/AddBankAccount/$',AddBankAccountView.as_view(),name='AddBankAccountView'),
    url(r'^Home/AddClient/$',AddClientView.as_view(),name='AddClientView'),
    url(r'^Home/AddProduct/$',AddProductView.as_view(),name='AddProductView'),
    url(r'^Home/InvoiceRegister/$',InvoiceRegisterView.as_view(),name='InvoiceRegisterView'),
    url(r'^Home/FactureAr/$',FactureEdexAnView.as_view(),name='FactureEdexAnView'),
    url(r'^Home/FactureFr/$',FactureEdexFrView.as_view(),name='FactureEdexFrView'),
    url(r'^Home/FactureAn/$',FactureEdexArView.as_view(),name='FactureEdexArView'),
    url(r'^Home/FactureAr/$',FactureProformaAnView.as_view(),name='FactureProformaAnView'),
    url(r'^Home/FactureFr/$',FactureProformaFrView.as_view(),name='FactureProformaFrView'),
    url(r'^Home/FactureAn/$',FactureProformaArView.as_view(),name='FactureProformaArView'),
    url(r'^Home/FactureAr/$',FactureUnpaAnView.as_view(),name='FactureUnpaAnView'),
    url(r'^Home/FactureFr/$',FactureUnpaFrView.as_view(),name='FactureUnpaFrView'),
    url(r'^Home/FactureAn/$',FactureUnpaArView.as_view(),name='FactureUnpaArView'),
]
예제 #6
0
파일: urls.py 프로젝트: jarus/hopper.pw
from main.views import (
    HomeView,
    OverviewView,
    HostView,
    DeleteHostView,
    AboutView,
    HelpView,
    GenerateSecretView,
    DomainOverwievView,
    DeleteDomainView,
)
from api.views import MyIpView, DetectIpView, NicUpdateView, AuthorizedNicUpdateView

urlpatterns = patterns(
    "",
    url(r"^$", HomeView.as_view(), name="home"),
    url(r"^about/$", AboutView.as_view(), name="about"),
    url(r"^legal/$", TemplateView.as_view(template_name="main/legal.html"), name="legal"),
    url(r"^help/$", HelpView.as_view(), name="help"),
    url(r"^overview/$", OverviewView.as_view(), name="overview"),
    url(r"^host/(?P<pk>\d+)/$", HostView.as_view(), name="host_view"),
    url(r"^generate_secret/(?P<pk>\d+)/$", GenerateSecretView.as_view(), name="generate_secret_view"),
    url(r"^host/(?P<pk>\d+)/delete/$", DeleteHostView.as_view(), name="delete_host"),
    url(r"^domain_overview/$", DomainOverwievView.as_view(), name="domain_overview"),
    url(r"^domain/(?P<pk>\d+)/delete/$", DeleteDomainView.as_view(), name="delete_domain"),
    url(r"^myip$", MyIpView),
    url(r"^detectip/$", DetectIpView),
    url(r"^detectip/(?P<secret>\w+)/$", DetectIpView),
    url(r"^nic/update$", NicUpdateView),
    url(r"^nic/update_authorized$", AuthorizedNicUpdateView, name="nic_update_authorized"),
)
예제 #7
0
from django.conf.urls.defaults import patterns, include, url
from django.contrib.auth.decorators import login_required
from django.views.generic import TemplateView
from django.http import HttpResponse
from dj4sq.views import OAuthReceiver
from fb.views import OAuthReceiver as fb_OAuthReceiver
from main.views import HomeView

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$', HomeView.as_view(template_name='index.html'), name='home'),

    url(r'^oauth/foursquare$', OAuthReceiver.as_view()),
    url(r'^oauth/facebook$', fb_OAuthReceiver.as_view()),

    url(r'^admin/', include(admin.site.urls)),
    url(r'^robots.txt$', lambda x: HttpResponse("User-Agent: *\nDisallow: /",
                                                mimetype="text/plain")),
)
예제 #8
0
from api.views import (MyIpView, DetectIpView, NicUpdateView,
                       AuthorizedNicUpdateView)
from django.conf.urls import patterns, url
from django.views.generic import TemplateView
from main.views import (HomeView, OverviewView, HostView, DeleteHostView,
                        AboutView, HelpView, GenerateSecretView,
                        DomainOverwievView, DeleteDomainView, ThankYouView,
                        RegistrationSuccessView)
from stats.views import StatsView

urlpatterns = patterns(
    '',
    url(r'^$', HomeView.as_view(), name="home"),
    url(r'^about/$', AboutView.as_view(), name="about"),
    url(r'^thank_you/$', ThankYouView.as_view(), name="thank_you"),
    url(r'^welcome/$', RegistrationSuccessView.as_view(), name="welcome"),
    url(r'^legal/$',
        TemplateView.as_view(template_name='main/legal.html'),
        name="legal"),
    url(r'^help/$', HelpView.as_view(), name="help"),
    url(r'^stats/$', StatsView.as_view(), name="stats"),
    url(r'^overview/$', OverviewView.as_view(), name='overview'),
    url(r'^host/(?P<pk>\d+)/$', HostView.as_view(), name='host_view'),
    url(r'^generate_secret/(?P<pk>\d+)/$',
        GenerateSecretView.as_view(),
        name='generate_secret_view'),
    url(r'^host/(?P<pk>\d+)/delete/$',
        DeleteHostView.as_view(),
        name='delete_host'),
    url(r'^domain_overview/$',
        DomainOverwievView.as_view(),
예제 #9
0
파일: urls.py 프로젝트: mtist/demoday
The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.0/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 django.conf import settings
from django.conf.urls.static import static
from main.views import HomeView, RestaurantsListView, RestaurantView
from loginsys.views import logout, login, register

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', HomeView.as_view(), name='index'),
    path('rests/', RestaurantsListView.as_view(), name="rests"),
    path('rests/<slug:slug>', RestaurantView.as_view()),
    path('auth/login/', login, name="login"),
    path('auth/logout/', logout, name="logout"),
    path('auth/register/', register, name="register"),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
예제 #10
0
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings

from main.views import HomeView, CourseDetailView

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'minicurso.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^$', HomeView.as_view()),
    url(r'^cursos/(?P<slug>[-\w]+)/$', CourseDetailView.as_view()),

    url(r'^admin/', include(admin.site.urls)),

    url(r'^media/(?P<path>.*)$','django.views.static.serve',
            {'document_root':settings.MEDIA_ROOT,}
        ),
)
예제 #11
0
# coding=utf-8
from api.views import (
    MyIpView, DetectIpView, NicUpdateView, AuthorizedNicUpdateView)
from django.conf.urls import patterns, url
from django.views.generic import TemplateView
from main.views import (
    HomeView, OverviewView, HostView, DeleteHostView, AboutView, HelpView,
    GenerateSecretView, DomainOverwievView, DeleteDomainView, ThankYouView,
    RegistrationSuccessView
)
from stats.views import StatsView


urlpatterns = patterns(
    '',
    url(r'^$', HomeView.as_view(), name="home"),
    url(r'^about/$', AboutView.as_view(), name="about"),
    url(r'^thank_you/$', ThankYouView.as_view(), name="thank_you"),
    url(r'^welcome/$', RegistrationSuccessView.as_view(), name="welcome"),
    url(r'^legal/$',
        TemplateView.as_view(template_name='main/legal.html'), name="legal"),
    url(r'^help/$', HelpView.as_view(), name="help"),
    url(r'^stats/$', StatsView.as_view(), name="stats"),
    url(r'^overview/$', OverviewView.as_view(), name='overview'),
    url(r'^host/(?P<pk>\d+)/$', HostView.as_view(), name='host_view'),
    url(r'^generate_secret/(?P<pk>\d+)/$',
        GenerateSecretView.as_view(), name='generate_secret_view'),
    url(r'^host/(?P<pk>\d+)/delete/$',
        DeleteHostView.as_view(), name='delete_host'),
    url(r'^domain_overview/$',
        DomainOverwievView.as_view(), name='domain_overview'),
예제 #12
0
파일: urls.py 프로젝트: Navan0/poc-of-hm
from django.urls import re_path

from main.views import (DeepFakeDetectionView, HomeView, LoginView,
                        SurveillanceView, BlacklistView)

urlpatterns = [
    re_path(r'^$', HomeView.as_view()),
    re_path(r'^surveillance/$', SurveillanceView.as_view()),
    re_path(r'^deepfake-detection/$', DeepFakeDetectionView.as_view()),
    re_path(r'^blacklist/$', BlacklistView.as_view()),
    re_path(r'^login/$', LoginView.as_view()),
]
예제 #13
0
from django.contrib import admin
from django.urls import path, include
from main.views import HomeView

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', HomeView.as_view(), name='main'),
    path('', include('authenticate.urls')),
    path('', include('main.urls')),
]
예제 #14
0
파일: urls.py 프로젝트: coreyja/coreyja.com
from django.conf.urls import patterns, include, url
from django.views.generic import TemplateView

from main.views import HomeView, ProjectView

import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'coreyja.views.home', name='home'),
    # url(r'^coreyja/', include('coreyja.foo.urls')),

    url(r'^$', HomeView.as_view(), {'page': 1}, name="home"),
    url(r'^(?P<page>\d+)/$', HomeView.as_view(), name="home_paginated"),

    url(r'^project/(?P<slug>[\w-]+)/$', ProjectView.as_view(), name="project"),
    url(r'^resume/$', TemplateView.as_view(template_name="resume.html"), name="project"),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)

if settings.DEBUG:
    urlpatterns.append(url(r"%s(?P<path>.*)$" % settings.MEDIA_URL[1:], "django.views.static.serve", {"document_root": settings.MEDIA_ROOT,}))
예제 #15
0
"""jabbereman 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 main.views import HomeView

urlpatterns = [
    url(r'^$', HomeView.as_view(), name='home'),
    url(r'^admin/', admin.site.urls),
]
예제 #16
0
파일: urls.py 프로젝트: s-polyakov/pkt
from django.conf.urls import patterns, include, url
from django.contrib import admin
from main.views import HomeView, TeacherView, SyllabusView, TeacherTimetableView
from django.conf import settings

urlpatterns = patterns('',
    (r'^$', HomeView.as_view(), {'active_menu': 'home'}),
    (r'^home/$', HomeView.as_view(), {'active_menu': 'home'}),
    (r'^teachers/(?P<pk>\d+)/$', TeacherView.as_view(), {'active_menu': 'teacher'}),
    (r'^syllabus/(?P<pk>\d+)/$', SyllabusView.as_view(), {'active_menu': 'syllabus'}),
    (r'^teachertimetable/(?P<pk>\d+)/(?P<week_date>\d+)/$', TeacherTimetableView.as_view(), {'active_menu': 'timetable'}),

    # Examples:
    # url(r'^$', 'chair.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^admin/', include(admin.site.urls)),
)

if settings.DEBUG:
    # static files (images, css, javascript, etc.)
    urlpatterns += patterns('',
        (r'^media/(?P<path>.*)$', 'django.views.static.serve', {
        'document_root': settings.MEDIA_ROOT}))
예제 #17
0
파일: urls.py 프로젝트: Nicerain/a
"""mysite URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.10/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 main.views import HomeView

urlpatterns = [
    url(r'^$', HomeView.as_view(), name='home'),
    url(r'^admin/', admin.site.urls),
]
예제 #18
0
"""
Copyright (c) 2016 Gabriel Esteban

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of
the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""

from django.conf.urls import url
from django.contrib.auth.decorators import login_required

from main.views import HomeView, RankingProblemsView, RankingUsersView

urlpatterns = [
    url(r'^$', login_required(HomeView.as_view()), name='home'),
    url(r'^ranking/problems$', login_required(RankingProblemsView.as_view()), name='ranking_problems'),
    url(r'^ranking/users', login_required(RankingUsersView.as_view()), name='ranking_users')
]
예제 #19
0
The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.0/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 main.views import HomeView, AnimalListView, AnimalDetailView

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

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', HomeView.as_view(), name='home'),
    path('animals/', AnimalListView.as_view(), name='animals'),
    path('animals/<int:pk>', AnimalDetailView.as_view(), name='animal'),
]

if settings.DEBUG:
    urlpatterns = static(settings.MEDIA_URL,
                         document_root=settings.MEDIA_ROOT) + urlpatterns
예제 #20
0
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 django.views.generic import RedirectView
from main.views import MenuView, MyLoginView, SignupView, NewResumeView, NewVacancyView, HomeView
from resume.views import ResumesView
from vacancy.views import VacanciesView


urlpatterns = [
    path('admin/', admin.site.urls),
    path('login', MyLoginView.as_view()),
    path('signup', SignupView.as_view()),
    path('home', RedirectView.as_view(url='home/')),
    path('home/', HomeView.as_view()),
    path('resume/new', NewResumeView.as_view()),
    path('vacancy/new', NewVacancyView.as_view()),
    path('resumes/', ResumesView.as_view()),
    path('vacancies/', VacanciesView.as_view()),
    path('', MenuView.as_view()),
]