Пример #1
0
from vacancies.views import custom_handler404
from django.contrib.auth.views import LogoutView

from vacancies.views import MainView, VacanciesView,\
     SpecializationView, CompanyView, VacancyView,\
     MySignupView, VacanciesSendView, MyCompanyEditView,\
     MyVacanciesView, MyVacancyEditView, MyLoginView,\
     MyCompanyCreateView, MyVacanciesСreateView

handler404 = custom_handler404

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', MainView.as_view()),
    path('vacancies/', VacanciesView.as_view()),
    path('vacancies/cat/<str:specialty>', SpecializationView.as_view()),
    path('companies/<int:id>', CompanyView.as_view()),
    path('vacancies/<int:id>', VacancyView.as_view()),
    path('vacancies/<vacancy_id>/send', VacanciesSendView.as_view()),
    path('mycompany/edit', MyCompanyEditView.as_view(), name='my_company'),
    path('mycompany/create',
         MyCompanyCreateView.as_view(),
         name='my_company_cr'),
    path('mycompany/vacancies',
         MyVacanciesView.as_view(),
         name='mycompany_vac'),
    path('mycompany/vacancies/create',
         MyVacanciesСreateView.as_view(),
         name='my_vacancy_cr'),
    path('mycompany/vacancies/<int:id>', MyVacancyEditView.as_view()),
Пример #2
0
from django.urls import path
from django.contrib.auth.decorators import login_required

from vacancies.views import MainView, CompanyView, CompaniesView, \
    VacancyView, VacanciesView, VacancyBySpecialisationView, \
    MyLoginView, MyLogoutView, SignupView, \
    MyCompanyUpdateView, MyCompanyCreateView, MyCompanyPlugView, \
    MyVacancyUpdateView, MyVacanciesView, MyVacancyCreateView, MyVacancyApplicatiosView,\
    MyResumeUpdateView, MyResumeCreateView, MyResumePlugView, SearchView

urlpatterns = [
    path('', MainView.as_view(), name='index'),
    path('vacancies/', VacanciesView.as_view(), name='vacancies'),
    path('vacancies/<int:pk>/', VacancyView.as_view(), name='vacancy'),
    path('companies/<int:pk>/', CompanyView.as_view(), name='company'),
    path('companies/', CompaniesView.as_view()),
    path('vacancies/cat/<str:specialisation>/',
         VacancyBySpecialisationView.as_view(), name='vacancy_specialisation'),
    path('login/', MyLoginView.as_view(), name='login'),
    path('logout/', MyLogoutView.as_view(), name='logout'),
    path('signup/', SignupView.as_view(), name='signup'),
    path('mycompany/', login_required(MyCompanyUpdateView.as_view()), name='mycompany'),
    path('mycompany/plug/', login_required(MyCompanyPlugView.as_view()), name='mycompany_plug'),
    path('mycompany/create/', login_required(MyCompanyCreateView.as_view()), name='mycompany_create'),
    path('myresume/', login_required(MyResumeUpdateView.as_view()), name='myresume'),
    path('myresume/plug/', login_required(MyResumePlugView.as_view()), name='myresume_plug'),
    path('myresume/create/', login_required(MyResumeCreateView.as_view()), name='myresume_create'),
    path('myvacancy/<int:pk>', login_required(MyVacancyUpdateView.as_view()), name='myvacancy_update'),
    path('myvacancy/create/', login_required(MyVacancyCreateView.as_view()), name='myvacancy_create'),
    path('myvacancies/', login_required(MyVacanciesView.as_view()), name='myvacancies'),
    path('myvacancy/<int:pk>/applications/',
Пример #3
0
from django.conf import settings
from django.urls import include, path, re_path
from vacancies.views import CompanyView, MainView, VacanciesView, VacancyView, custom_500

handler500 = custom_500

urlpatterns = [
    path("", MainView.as_view(), name="main"),
    re_path(r"^vacancies/(?:cat/(?P<slug>\w+))?$", VacanciesView.as_view(), name="vacancies"),
    path("vacancies/<int:pk>", VacancyView.as_view(), name="vacancy"),
    path("companies/<int:pk>", CompanyView.as_view(), name="company"),
]

if settings.DEBUG:
    import debug_toolbar

    urlpatterns += [path("__debug__/", include(debug_toolbar.urls))]
Пример #4
0
from vacancies.views import CompanyCardView, MainView, UserProfile, VacanciesView, VacancyView
from vacancies.views import custom_handler404, custom_handler500
from vacancies.views import Login, Registration
from vacancies.views import MyCompanyCreateView, MyCompanyDeleteView, MyCompanyLetsstarView, MyCompanyView
from vacancies.views import MyResumeCreateView, MyResumeDeleteView, MyResumeLetsstartView, MyResumeView
from vacancies.views import MyVacanciesView, MyVacancyCreateView, MyVacancyDeleteView, MyVacancyView
from vacancies.views import ResumesAccessView, ResumeSendingView, ResumesView, SearchView, VacanciesSpecialtyView

handler404 = custom_handler404
handler500 = custom_handler500

urlpatterns = [
    # основные
    path('', MainView.as_view(), name='main'),
    path('vacancies', VacanciesView.as_view(), name='vacancies'),  # все вакансии
    path('resumes', ResumesView.as_view(), name='resumes'),  # все резюме
    path('resumes_access', ResumesAccessView.as_view(), name='resumes_access'),  # все резюме
    path('vacancies/<int:vacancy_id>', VacancyView.as_view(), name='vacancy'),  # одна вакансия
    path('vacancies/cat/<str:specialty>', VacanciesSpecialtyView.as_view(), name='vacancies_specialty'),
    path('vacancies/<int:vacancy_id>/send/', ResumeSendingView.as_view(), name='resume_send'),  # отправка заявки
    path('companies/<int:company_id>', CompanyCardView.as_view(), name='company'),  # компания
    path('search', SearchView.as_view(), name='search'),
    path('profile/<int:pk>', UserProfile.as_view(), name='user_profile'),

    # компания
    path('mycompany/letsstart/', MyCompanyLetsstarView.as_view(), name='my_company_letsstart'),  # создать компанию
    path('mycompany/create/', MyCompanyCreateView.as_view(), name='my_company_empty_form'),  # пустая форма
    path('mycompany/', MyCompanyView.as_view(), name='my_company_form'),  # заполненная форма
    path('mycompany/delete/', MyCompanyDeleteView.as_view(), name='my_company_delete'),  # удаление компании
    # компания -> вакансии
Пример #5
0
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from vacancies.views import custom_handler404, custom_handler500, SendVacancyView, MyCompanyCreateOfferView, \
    MyCompanyCreateView, MyCompanyEditView, MyVacanciesList, MyVacancyEditView, MyVacancyCreateView, MyLogoutView
from vacancies.views import MainView, VacanciesView, SpecializationByVacanciesView, CompanyCardView, VacancyView, \
    MySignupView, MyLoginView

handler404 = custom_handler404
handler500 = custom_handler500

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', MainView.as_view(), name="main"),
    path('vacancies/', VacanciesView.as_view(), name="vacancies"),
    path('vacancies/cat/<str:specialization>/',
         SpecializationByVacanciesView.as_view(),
         name="vacancies_by_spec"),
    path('companies/<int:company_id>',
         CompanyCardView.as_view(),
         name="company"),
    path('vacancies/<int:vacancy_id>', VacancyView.as_view(), name="vacancy"),
    path('login/', MyLoginView.as_view(), name="login"),
    path('logout/', MyLogoutView.as_view(), name="logout"),
    path('register/', MySignupView.as_view(), name="register"),
    path('vacancies/<int:vacancy_id>/send',
         SendVacancyView.as_view(),
         name="send"),
    path('mycompany/letsstart',
         MyCompanyCreateOfferView.as_view(),
Пример #6
0

from vacancies.views import CompanyView
from vacancies.views import VacanciesBySpecialtyView
from vacancies.views import MainView
from vacancies.views import VacanciesView
from vacancies.views import VacancyView

urlpatterns = [
    path(
        '',
        MainView.as_view(),
        name='main'),
    path(
        'vacancies/',
        VacanciesView.as_view(),
        name='vacancies'),
    path(
        'jobs/cat/<str:cat_id>/',
        VacanciesBySpecialtyView.as_view(),
        name='vacancies_by_specialty'),
    path(
        'companies/<int:company_id>/',
        CompanyView.as_view(),
        name='company'),
    path(
        'jobs/<int:job_id>/',
        VacancyView.as_view(),
        name='job'),
    path(
        'admin/',