This repository has been archived by the owner on Mar 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
urls.py
82 lines (74 loc) · 2.02 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('vacancies_and_studentships.views',
# vacancies and studentship items
url(
r"^vacancy/(?P<slug>[-\w]+)/$",
"vacancy",
name="vacancy"
),
url(
r"^studentship/(?P<slug>[-\w]+)/$",
"studentship",
name="studentship"
),
# archived vacancies
url(
r'^archived-vacancies/$',
"archived_vacancies",
{"slug": None},
"archived-vacancies-base"
),
url(
r'^archived-vacancies/(?:(?P<slug>[-\w]+)/)$',
"archived_vacancies",
name="archived-vacancies"
),
# all current vacancies
url(
r'^current-vacancies/$',
"all_current_vacancies",
{"slug": None},
name="current-vacancies-base"
),
url(
r'^current-vacancies/(?:(?P<slug>[-\w]+)/)$',
"all_current_vacancies",
name="current-vacancies"
),
# archived studentships
url(
r'^archived-studentships/$',
"archived_studentships",
{"slug": None},
"archived-studentships-base"
),
url(
r'^archived-studentships/(?:(?P<slug>[-\w]+)/)$',
"archived_studentships",
name="archived-studentships"
),
# all current studentships
url(
r'^current-studentships/$',
"all_current_studentships",
{"slug": None},
"current-studentships-base"
),
url(
r'^current-studentships/(?:(?P<slug>[-\w]+)/)$',
"all_current_studentships",
name="current-studentships"
),
# main vacancies and studentships
url(
r"^vacancies-and-studentships/$",
"vacancies_and_studentships",
{"slug": None},
"vacancies-and-studentships-base"
),
url(
r"^vacancies-and-studentships/(?:(?P<slug>[-\w]+)/)$",
"vacancies_and_studentships",
name="vacancies-and-studentships"
),
)