Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 80 lines (61 sloc) 2.482 kB
6c6443a @pydanny added rabbits core project code
pydanny authored
1 from django.conf import settings
2 from django.conf.urls.defaults import *
3 from django.views.generic.simple import direct_to_template
f83323e @pydanny Looping for fun and profit
pydanny authored
4 from django.views.generic.list_detail import object_list
6c6443a @pydanny added rabbits core project code
pydanny authored
5
6 from django.contrib import admin
7 admin.autodiscover()
8
9 from pinax.apps.account.openid_consumer import PinaxConsumer
10
e3a8af6 @pydanny Changing homepage.html to be a view driven by homepage app
pydanny authored
11 from homepage.views import homepage
4ad4826 @pydanny Added packaginator
pydanny authored
12 from package.views import package_autocomplete, category, packaginate
6c6443a @pydanny added rabbits core project code
pydanny authored
13
14 handler500 = "pinax.views.server_error"
15
16
17 urlpatterns = patterns("",
a4320a6 @pydanny Getting the homepage to be dynamic off of homepage app
pydanny authored
18
e3a8af6 @pydanny Changing homepage.html to be a view driven by homepage app
pydanny authored
19 url(r"^$", homepage, name="home"),
acaaace @pydanny Basic support on category pages
pydanny authored
20
e3a8af6 @pydanny Changing homepage.html to be a view driven by homepage app
pydanny authored
21
6c6443a @pydanny added rabbits core project code
pydanny authored
22 url(r"^admin/invite_user/$", "pinax.apps.signup_codes.views.admin_invite_user", name="admin_invite_user"),
23 url(r"^admin/", include(admin.site.urls)),
24 url(r"^about/", include("about.urls")),
07bf85c @pydanny First pass on the API
pydanny authored
25 url(r"^account/", include("pinax.apps.account.urls")),
6c6443a @pydanny added rabbits core project code
pydanny authored
26 url(r"^openid/(.*)", PinaxConsumer()),
27 url(r"^profiles/", include("idios.urls")),
28 url(r"^notices/", include("notification.urls")),
29 url(r"^announcements/", include("announcements.urls")),
020cb17 @pydanny URLs work and breadcrumbs for unlogged in users
pydanny authored
30 url(r"^packages/", include("package.urls")),
5056acf @pydanny Added in new search powerz
pydanny authored
31 url(r"^grids/", include("grid.urls")),
28f3f06 @pydanny Now with latest feed RSS
pydanny authored
32 url(r"^search/", include("searchv1.urls")),
33 url(r"^feeds/", include("feeds.urls")),
bfa769d @pydanny Various things and some package autocomplete code
pydanny authored
34
4ad4826 @pydanny Added packaginator
pydanny authored
35 url(r"^categories/(?P<slug>[-\w]+)/$", category, name="category"),
36 url(r"^categories/$", homepage, name="categories"),
37 url(r"^packaginator/$",
38 direct_to_template,
39 {'template': 'package/packaginator.html'},
40 name="packaginator"),
41
42 url(r"^packaginate/$",
43 packaginate,
44 name="packaginate"),
acaaace @pydanny Basic support on category pages
pydanny authored
45
bfa769d @pydanny Various things and some package autocomplete code
pydanny authored
46 url(
47 regex = '^autocomplete/package/$',
48 view = package_autocomplete,
49 name = 'package_autocomplete',
50 )
51
6c6443a @pydanny added rabbits core project code
pydanny authored
52 )
53
ceb21e9 @pydanny Forcing json as the response
pydanny authored
54 from apiv1.api import Api
082b15a @pydanny Adding in related fields into API between grids and packages
pydanny authored
55 from apiv1.resources import (
56 GotwResource, DpotwResource,
fa9fdde @gisle Kill Repo model
gisle authored
57 PackageResource, CategoryResource,
ce4c5bf @pydanny API cleanup. Remove of id fields and also adding created_by and last_…
pydanny authored
58 GridResource, PackageResourceBase,
59 UserResource
082b15a @pydanny Adding in related fields into API between grids and packages
pydanny authored
60 )
07bf85c @pydanny First pass on the API
pydanny authored
61
62 v1_api = Api()
082b15a @pydanny Adding in related fields into API between grids and packages
pydanny authored
63 v1_api.register(PackageResourceBase())
07bf85c @pydanny First pass on the API
pydanny authored
64 v1_api.register(PackageResource())
65 v1_api.register(CategoryResource())
9577e5f @pydanny Adding grids to the APO
pydanny authored
66 v1_api.register(GridResource())
497b63c @pydanny Adding grid and homepage API
pydanny authored
67 v1_api.register(GotwResource())
68 v1_api.register(DpotwResource())
ce4c5bf @pydanny API cleanup. Remove of id fields and also adding created_by and last_…
pydanny authored
69 v1_api.register(UserResource())
07bf85c @pydanny First pass on the API
pydanny authored
70
73572a6 @pydanny Getting in the expanded API
pydanny authored
71 urlpatterns += patterns('',
07bf85c @pydanny First pass on the API
pydanny authored
72 url(r"^api/", include(v1_api.urls)),
73 )
74
6c6443a @pydanny added rabbits core project code
pydanny authored
75
76 if settings.SERVE_MEDIA:
77 urlpatterns += patterns("",
78 url(r"", include("staticfiles.urls")),
79 )
Something went wrong with that request. Please try again.