from django.conf.urls import patterns, url

from packages.simple.views import PackageIndex, PackageDetail

handler404 = "packages.simple.views.not_found"

urlpatterns = patterns("",
    url(r"^$", PackageIndex.as_view(restricted=True), name="simple_package_index"),
    url(r"^(?P<slug>[^/]+)/(?:(?P<version>[^/]+)/)?$", PackageDetail.as_view(restricted=True), name="simple_package_detail"),
)
示例#2
0
from django.conf.urls import patterns, url

from packages.simple.views import PackageIndex, PackageDetail

handler404 = "packages.simple.views.not_found"

urlpatterns = patterns("",
    url(r"^$", PackageIndex.as_view(restricted=True), name="simple_package_index"),
    url(r"^(?P<slug>[^/]+)/?$", PackageDetail.as_view(restricted=True), name="simple_package_detail"),
)
示例#3
0
from django.conf.urls import patterns, url

from packages.simple.views import PackageIndex, PackageDetail

handler404 = "packages.simple.views.not_found"

urlpatterns = patterns(
    "",
    url(r"^$", PackageIndex.as_view(), name="simple_package_index"),
    url(r"^(?P<slug>[^/]+)/(?:(?P<version>[^/]+)/)?$",
        PackageDetail.as_view(),
        name="simple_package_detail"),
)
示例#4
0
from django.conf.urls import patterns, url

from packages.simple.views import PackageIndex, PackageDetail

handler404 = "packages.simple.views.not_found"

urlpatterns = patterns("",
    url(r"^$", PackageIndex.as_view(), name="simple_package_index"),
    url(r"^(?P<slug>[^/]+)/(?:(?P<version>[^/]+)/)?$", PackageDetail.as_view(), name="simple_package_detail"),
)