Ejemplo n.º 1
0
    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 menu.views import MenuView
from resume.views import ResumeView
from vacancy.views import VacancyView
from signup.views import SignUpView
from login.views import LogInView
from home.views import HomeView
from django.contrib.auth.views import LogoutView
from django.views.generic import RedirectView

urlpatterns = [
    path('', MenuView.as_view()),
    path('signup', SignUpView.as_view()),
    path('signup/', RedirectView.as_view(url='/signup')),
    path('login', LogInView.as_view()),
    path('login/', RedirectView.as_view(url='/login')),
    path('home', HomeView.as_view()),
    path('home/', RedirectView.as_view(url='/home')),
    path('logout', LogoutView.as_view()),
    path('resumes/', ResumeView.as_view()),
    path('vacancies/', VacancyView.as_view()),
    path('resume/new', ResumeView.as_view()),
    path('vacancy/new', VacancyView.as_view()),
    path('none/new', HomeView.as_view()),
    path('admin/', admin.site.urls),
]
Ejemplo n.º 2
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 .views import MainView, MyLoginView, MySignupView, HomeView
from resume.views import ResumeView, NewResumeView
from vacancy.views import VacancyView, NewVacancyView
from django.views.generic import RedirectView

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', MainView.as_view()),
    path('resumes', ResumeView.as_view()),
    path('vacancies', VacancyView.as_view()),
    path('login/', RedirectView.as_view(url='/login')),
    path('signup/', RedirectView.as_view(url='/signup')),
    path('login', MyLoginView.as_view()),
    path('signup', MySignupView.as_view()),
    path('resume/new', NewResumeView.as_view()),
    path('vacancy/new', NewVacancyView.as_view()),
    path('home', HomeView.as_view())
]
Ejemplo n.º 3
0
from django.urls import path

from resume.views import (
        ResumeFilewUploadView,
        ResumePartialView,
        ResumeView,
        )

urlpatterns = [
    path('/upload', ResumeFilewUploadView.as_view()),
    path('', ResumeView.as_view()),
    path('/<int:resume_id>', ResumePartialView.as_view()),
    path('/upload/<int:resume_id>', ResumeFilewUploadView.as_view()),
        ]
Ejemplo n.º 4
0
    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.base import TemplateView, RedirectView

from common.views import CreateUserView, MyLoginView, ProfileView
from resume.views import ResumeListView, ResumeView
from vacancy.views import VacancyListView, VacancyView

urlpatterns = [
    path("admin/", admin.site.urls),
    path("home", ProfileView.as_view()),
    path("resume/new", ResumeView.as_view()),
    path("vacancy/new", VacancyView.as_view()),
    path("resumes", ResumeListView.as_view()),
    path("vacancies", VacancyListView.as_view()),
    path("", TemplateView.as_view(template_name="common/menu.html")),
    path("login", MyLoginView.as_view()),
    path("signup", CreateUserView.as_view()),
    path('login/', RedirectView.as_view(url='/login')),
    path('signup/', RedirectView.as_view(url='/signup'))
]
Ejemplo n.º 5
0
    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 menu.views import MainMenuView
from vacancy.views import VacancyView
from home.views import CreateVacancyView
from resume.views import ResumeView
from home.views import CreateResumeView
from home.views import HomeView
from hyperjobauth.views import SignUpView
from hyperjobauth.views import SignInView

urlpatterns = [
    # path('admin/', admin.site.urls),
    path("", MainMenuView.as_view()),
    path("signup", SignUpView.as_view()),
    path("login", SignInView.as_view()),
    path("vacancies", VacancyView.as_view()),
    path("home", HomeView.as_view()),
    path("vacancy/new", CreateVacancyView.as_view()),
    path("resume/new", CreateResumeView.as_view()),
    path("resumes", ResumeView.as_view())
]
Ejemplo n.º 6
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 hyperjob.views import MenuView, MyLoginView, SignupView
from hyperjob.views import NewResumeView, NewVacancyView, HomeView
from resume.views import ResumeView
from vacancy.views import VacancyView

urlpatterns = [
    path('', MenuView.as_view(), name='menu'),
    path('menu/', MenuView.as_view(), name='menu'),
    path('login/', MyLoginView.as_view(), name='login'),
    path('signup/', SignupView.as_view(), name='signup'),
    path('resumes/', ResumeView.as_view(), name='resume'),
    path('vacancies/', VacancyView.as_view(), name='vacancy'),
    path('resume/new/', NewResumeView.as_view(), name='new_resume'),
    path('vacancy/new/', NewVacancyView.as_view(), name='new_vacancy'),
    path('home/', HomeView.as_view(), name='home'),
    path('admin/', admin.site.urls),
]
Ejemplo n.º 7
0
from django.conf.urls import include, url

from resume.views import ResumeView

urlpatterns = [
    url(r'^$', ResumeView.as_view(), name="resume"),
]