Example #1
0
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from resume.views import ResumeFormView, ResumeDetailView, UserResumeView, DeleteUserResume, ChangeUserResume, ResumeCatDetailView
from django.contrib.auth.decorators import login_required

urlpatterns = patterns('',
    url(r'^add/$', ResumeFormView.as_view(template_name='resume.html'), name='add_resume'),
    url(r'^(?P<pk>\d+)/$', ResumeDetailView.as_view(), name='resume_detail'),
    url(r'^my/$', login_required(UserResumeView.as_view(), login_url='/accounts/login/'), name='user_resume'),
    url(r'^delete/(?P<pk>\d+)/$', login_required(DeleteUserResume.as_view(), login_url='/accounts/login/'),
        name='delete_user_resume'),
    url(r'^change/(?P<pk>\d+)/$', login_required(ChangeUserResume.as_view(), login_url='/accounts/login/'),
        name='change_user_resume'),
    url(r'^(?P<slug>\S+)/$', ResumeCatDetailView.as_view(), name='resume_cat_ads'),
)
Example #2
0
from django.conf.urls import url
from django.contrib import admin
from resume import views
from resume.views import ResumeDetailView

urlpatterns = [
    url(r'^$', ResumeDetailView.as_view()),
    url(r'^format/(?P<format>.*)/$', ResumeDetailView.as_view()),
    url(r'^admin/', admin.site.urls),
    url(r'^riker/', views.riker),

]