Exemplo n.º 1
0
    (r'^_stars/', include('stars.urls')),

    # Region routing URLs
    (r'^', include(regions.site.urls)),

    # API URLs
    url(r'^api/{0,1}$', RedirectView.as_view(url='/api/v4/', permanent=False)),
    url(r'^api/v4/', include(router.urls)),

    # Internal API URLs
    (r'^_api/', include('main.api.internal_urls')),

    # Comments
    (r'^_comment/(?P<region>[^/]+?)/', include(crap_comments.site.urls)),
    (r'^(?P<region>[^/]+?)/map$',
     NamedRedirectView.as_view(name='maps:global')),
    (r'^', include(maps.site.urls)),
    (r'^(?P<region>[^/]+?)/tags$',
     NamedRedirectView.as_view(name='tags:list')),
    (r'^', include(tags.site.urls)),
    (r'^_redirect/', include(redirects.site.urls)),
    (r'^_links/', include(links.site.urls)),
    (r'^', include('search.urls')),
    (r'^', include('activity.urls')),
    (r'^(?P<region>[^/]+?)/', include('explore.urls')),
    (r'^', include('explore.global_urls')),

    # Region userpage -> global userpage redirect
    (r'^(?P<region>[^/]+?)/((?i)Users)/(?P<username>[^/]+?)/*(?P<rest>(/[^/_]+)|)$',
     GlobalUserpageRedirectView.as_view()),
urlpatterns = patterns('',
    # Follow-related URLs
    (r'^_follow/', include('follow.urls')),
    (r'^_stars/', include('stars.urls')),

    # Region routing URLs
    (r'^', include(regions.site.urls_no_region)),
    
    # Internal API URLs
    (r'^_api/', include('main.api.internal_urls')),
    
    # Comments
    (r'^_comment/', include(crap_comments.site.urls)),

    (r'^map$', NamedRedirectView.as_view(name='maps:global')),
    (r'^', include(maps.site.urls_no_region)),
    (r'^tags$', NamedRedirectView.as_view(name='tags:list')),
    (r'^', include(tags.site.urls_no_region)),
    (r'^_redirect/', include(redirects.site.urls)),
    (r'^', include('search.urls_no_region')),
    (r'^', include('activity.urls_no_region')),
    (r'^', include('explore.urls')),

    # Region userpage -> global userpage redirect
    (r'^((?i)Users)/(?P<username>[^/]+?)/*(?P<rest>(/[^/_]+)|)$', GlobalUserpageRedirectView.as_view()),

    # Historical URL for dashboard:
    (r'^tools/dashboard/?$', NamedRedirectView.as_view(name='dashboard:main')),
    (r'^_tools/dashboard/', include(dashboard.site.urls)),
Exemplo n.º 3
0
    (r'^_stars/', include('stars.urls')),

    # Region routing URLs
    (r'^', include(regions.site.urls)),

    # API URLs
    url(r'^api/{0,1}$', RedirectView.as_view(url='/api/v4/', permanent=False)),
    url(r'^api/v4/', include(router.urls)),

    # Internal API URLs
    (r'^_api/', include('main.api.internal_urls')),

    # Comments
    (r'^_comment/(?P<region>[^/]+?)/', include(crap_comments.site.urls)),

    (r'^(?P<region>[^/]+?)/map$', NamedRedirectView.as_view(name='maps:global')),
    (r'^', include(maps.site.urls)),
    (r'^(?P<region>[^/]+?)/tags$', NamedRedirectView.as_view(name='tags:list')),
    (r'^', include(tags.site.urls)),
    (r'^_redirect/', include(redirects.site.urls)),
    (r'^_links/', include(links.site.urls)),
    (r'^', include('search.urls')),
    (r'^', include('activity.urls')),

    (r'^(?P<region>[^/]+?)/', include('explore.urls')),
    (r'^', include('explore.global_urls')),

    # Region userpage -> global userpage redirect
    (r'^(?P<region>[^/]+?)/((?i)Users)/(?P<username>[^/]+?)/*(?P<rest>(/[^/_]+)|)$', GlobalUserpageRedirectView.as_view()),

    # Historical URL for dashboard:
Exemplo n.º 4
0
 (r"^blog/", include("blog.urls")),
 # Users / registration URLs
 (r"^(?i)Users/", include("users.urls")),
 # Follow-related URLs
 (r"^_follow/", include("follow.urls")),
 (r"^_stars/", include("stars.urls")),
 # Region routing URLs
 (r"^", include(regions.site.urls)),
 # API URLs
 url(r"^api/{0,1}$", RedirectView.as_view(url="/api/v4/", permanent=False)),
 url(r"^api/v4/", include(router.urls)),
 # Internal API URLs
 (r"^_api/", include("main.api.internal_urls")),
 # Comments
 (r"^_comment/(?P<region>[^/]+?)/", include(crap_comments.site.urls)),
 (r"^(?P<region>[^/]+?)/map$", NamedRedirectView.as_view(name="maps:global")),
 (r"^", include(maps.site.urls)),
 (r"^(?P<region>[^/]+?)/tags$", NamedRedirectView.as_view(name="tags:list")),
 (r"^", include(tags.site.urls)),
 (r"^_redirect/", include(redirects.site.urls)),
 (r"^_links/", include(links.site.urls)),
 (r"^", include("search.urls")),
 (r"^", include("activity.urls")),
 (r"^(?P<region>[^/]+?)/", include("explore.urls")),
 (r"^", include("explore.global_urls")),
 # Region userpage -> global userpage redirect
 (
     r"^(?P<region>[^/]+?)/((?i)Users)/(?P<username>[^/]+?)/*(?P<rest>(/[^/_]+)|)$",
     GlobalUserpageRedirectView.as_view(),
 ),
 # Historical URL for dashboard:
urlpatterns = patterns(
    '',
    # Follow-related URLs
    (r'^_follow/', include('follow.urls')),
    (r'^_stars/', include('stars.urls')),

    # Region routing URLs
    (r'^', include(regions.site.urls_no_region)),

    # Internal API URLs
    (r'^_api/', include('main.api.internal_urls')),

    # Comments
    (r'^_comment/', include(crap_comments.site.urls)),
    (r'^map$', NamedRedirectView.as_view(name='maps:global')),
    (r'^', include(maps.site.urls_no_region)),
    (r'^tags$', NamedRedirectView.as_view(name='tags:list')),
    (r'^', include(tags.site.urls_no_region)),
    (r'^_redirect/', include(redirects.site.urls)),
    (r'^', include('search.urls_no_region')),
    (r'^', include('activity.urls_no_region')),
    (r'^', include('explore.urls')),

    # Region userpage -> global userpage redirect
    (r'^((?i)Users)/(?P<username>[^/]+?)/*(?P<rest>(/[^/_]+)|)$',
     GlobalUserpageRedirectView.as_view()),

    # Historical URL for dashboard:
    (r'^tools/dashboard/?$', NamedRedirectView.as_view(name='dashboard:main')),
    (r'^_tools/dashboard/', include(dashboard.site.urls)),