| author | ymh <ymh.work@gmail.com> |
| Mon, 19 Nov 2012 22:57:12 +0100 | |
| changeset 74 | 1b68d4acab0d |
| parent 41 | b6010b3d6ea8 |
| permissions | -rw-r--r-- |
|
37
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
from django.conf.urls import patterns, include, url |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
|
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
# Uncomment the next two lines to enable the admin: |
| 38 | 4 |
from django.contrib import admin |
5 |
admin.autodiscover() |
|
|
37
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
|
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
urlpatterns = patterns('', |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
# Examples: |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
# url(r'^$', 'hp.views.home', name='home'), |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
10 |
# url(r'^hp/', include('hp.foo.urls')), |
| 38 | 11 |
url(r'^$', 'hp.views.all_videos', name='home'), |
12 |
url(r'^video/(?P<content_id>.*)$', 'hp.views.show_video_details', name='video_details'), |
|
|
41
b6010b3d6ea8
add proxy, model, and correct embed_player
ymh <ymh.work@gmail.com>
parents:
38
diff
changeset
|
13 |
url(r'^kc_proxy/(?P<path>.*)$', 'hp.views.kc_proxy', name='kc_proxy'), |
| 38 | 14 |
|
15 |
url(r'^api/1.0/', include('hp.api.urls')), |
|
|
37
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
16 |
|
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
17 |
# Uncomment the admin/doc line below to enable admin documentation: |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
18 |
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')), |
|
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
19 |
|
| 38 | 20 |
|
|
37
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
21 |
# Uncomment the next line to enable the admin: |
| 38 | 22 |
url(r'^admin/', include(admin.site.urls)), |
|
37
b4ed8cdc654c
update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
23 |
) |