from django.contrib import admin admin.autodiscover() import jutils.ji18n.translate jutils.ji18n.translate.patch() from crate.web.search.views import Search from crate.web.packages.views import ReleaseDetail from crate.web.packages.simple.views import Sitemap handler500 = "pinax.views.server_error" urlpatterns = patterns("", url(r"^$", Search.as_view(), name="home"), url(r"^users/", include("crate.web.lists.urls")), url(r"^stats/", include("crate.web.packages.stats.urls")), url(r"^externally-hosted/$", "crate.web.packages.views.fuck_the_status_quo"), url(r"^(?P<package>[^/]+)/(?:(?P<version>[^/]+)/)?$", ReleaseDetail.as_view(), name="package_detail"), url(r"^", include("crate.web.search.urls")), url(r"^sitemap.xml$", Sitemap.as_view(), name="simple_sitemap"), ) if settings.SERVE_MEDIA: urlpatterns += patterns("", url(r"", include("staticfiles.urls")), )
from django.conf.urls import patterns, url from crate.web.search.views import Search urlpatterns = patterns("", url(r"^$", Search.as_view(), name="search"), )
import jutils.ji18n.translate jutils.ji18n.translate.patch() from crate.web.search.views import Search handler500 = "pinax.views.server_error" urlpatterns = patterns( "", url(r"^security/$", direct_to_template, {"template": "security.html"}), url(r"^security.asc$", direct_to_template, { "template": "security.asc", "mimetype": "text/plain" }), url(r"^$", Search.as_view(), name="home"), url(r"^admin/", include(admin.site.urls)), #url(r"^about/", include("about.urls")), url(r"^account/", include("account.urls")), url(r"^account/", include("crate.web.social_auth.urls")), url(r"^admin_tools/", include("admin_tools.urls")), url( r"^social-auth/disconnect/(?P<backend>[^/]+)/(?P<association_id>[^/]+)/$", "crate.web.social_auth.views.disconnect", ), url(r"^social-auth/", include("social_auth.urls")), url(r"^users/", include("crate.web.lists.urls")), url(r"^packages/", include("crate.web.packages.urls")), url(r"^stats/", include("crate.web.packages.stats.urls")), #url(r"^help/", include("helpdocs.urls")), #url(r"^api/", include("crateweb.api_urls")),
from django.conf.urls import patterns, url from crate.web.search.views import Search urlpatterns = patterns( "", url(r"^$", Search.as_view(), name="search"), )