Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 76 lines (60 sloc) 2.734 kB
0141760 @lmorchard Initial Pinax project start
authored
1 from django.conf import settings
2 from django.conf.urls.defaults import *
3 from django.views.generic.simple import direct_to_template
4
5 from django.contrib import admin
6 admin.autodiscover()
7
8 from tagging.models import TaggedItem
19fdc47 @lmorchard Progress checkpoint; using freshen for BDD and scenarios; can create …
authored
9 #from wiki.models import Article as WikiArticle
0141760 @lmorchard Initial Pinax project start
authored
10
11 from pinax.apps.account.openid_consumer import PinaxConsumer
12 from pinax.apps.topics.models import Topic
13
14 handler500 = "pinax.views.server_error"
15
16 if settings.ACCOUNT_OPEN_SIGNUP:
17 signup_view = "pinax.apps.account.views.signup"
18 else:
19 signup_view = "pinax.apps.signup_codes.views.signup"
20
21
22 urlpatterns = patterns("",
23 url(r"^$", direct_to_template, {
24 "template": "homepage.html",
25 }, name="home"),
19fdc47 @lmorchard Progress checkpoint; using freshen for BDD and scenarios; can create …
authored
26
3d22888 @lmorchard Removing 'badger.apps' from all references to badges app
authored
27 (r"^badges/", include("badges.urls")),
0141760 @lmorchard Initial Pinax project start
authored
28
29 url(r"^admin/invite_user/$", "pinax.apps.signup_codes.views.admin_invite_user", name="admin_invite_user"),
30 url(r"^account/signup/$", signup_view, name="acct_signup"),
da541ae @lmorchard Initial progress toward twitter and facebook sign in
authored
31
0141760 @lmorchard Initial Pinax project start
authored
32 (r"^account/", include("pinax.apps.account.urls")),
33 (r"^openid/(.*)", PinaxConsumer()),
da541ae @lmorchard Initial progress toward twitter and facebook sign in
authored
34 (r"^auth/", include("socialconnect.urls")),
0141760 @lmorchard Initial Pinax project start
authored
35 (r"^bbauth/", include("pinax.apps.bbauth.urls")),
36 (r"^authsub/", include("pinax.apps.authsub.urls")),
37 (r"^notices/", include("notification.urls")),
38 (r"^messages/", include("messages.urls")),
39 (r"^announcements/", include("announcements.urls")),
40 (r"^comments/", include("threadedcomments.urls")),
41 (r"^robots.txt$", include("robots.urls")),
42 (r"^i18n/", include("django.conf.urls.i18n")),
43 (r"^admin/", include(admin.site.urls)),
44 (r"^avatar/", include("avatar.urls")),
45 (r"^flag/", include("flag.urls")),
670fd38 @lmorchard Untested implementation of badge display on profile pages; reworked b…
authored
46
47 #(r"^profiles/", include("pinax.apps.profiles.urls")),
48 url(r"^profiles/$", "pinax.apps.profiles.views.profiles", name="profile_list"),
49 #url(r"^profiles/profile/(?P<username>[\w\._-]+)/$", "pinax.apps.profiles.views.profile", name="profile_detail"),
3d22888 @lmorchard Removing 'badger.apps' from all references to badges app
authored
50 url(r"^profiles/profile/(?P<username>[\w\._-]+)/$", "badges.views.profile", name="profile_detail"),
670fd38 @lmorchard Untested implementation of badge display on profile pages; reworked b…
authored
51 url(r"^profiles/edit/$", "pinax.apps.profiles.views.profile_edit", name="profile_edit"),
0141760 @lmorchard Initial Pinax project start
authored
52
53 )
54
55 tagged_models = (
56 dict(title="Topics",
57 query=lambda tag: TaggedItem.objects.get_by_model(Topic, tag),
58 ),
59 )
60 tagging_ext_kwargs = {
61 "tagged_models": tagged_models,
62 }
63
64 urlpatterns += patterns("",
65 url(r"^tags/(?P<tag>.+)/(?P<model>.+)$", "tagging_ext.views.tag_by_model",
66 kwargs=tagging_ext_kwargs, name="tagging_ext_tag_by_model"),
67 url(r"^tags/(?P<tag>.+)/$", "tagging_ext.views.tag",
68 kwargs=tagging_ext_kwargs, name="tagging_ext_tag"),
69 url(r"^tags/$", "tagging_ext.views.index", name="tagging_ext_index"),
70 )
71
72 if settings.SERVE_MEDIA:
73 urlpatterns += patterns("",
74 (r"", include("staticfiles.urls")),
75 )
Something went wrong with that request. Please try again.