Changeset View
Changeset View
Standalone View
Standalone View
swh/web/urls.py
| Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | url( | ||||
| name="browse-swhid-legacy", | name="browse-swhid-legacy", | ||||
| ), | ), | ||||
| url( | url( | ||||
| r"^(?P<swhid>(swh|SWH):[0-9]+:[A-Za-z]+:[0-9A-Fa-f]+.*)$", | r"^(?P<swhid>(swh|SWH):[0-9]+:[A-Za-z]+:[0-9A-Fa-f]+.*)$", | ||||
| swhid_browse, | swhid_browse, | ||||
| name="browse-swhid", | name="browse-swhid", | ||||
| ), | ), | ||||
| url(r"^", include("swh.web.misc.urls")), | url(r"^", include("swh.web.misc.urls")), | ||||
| url(r"^", include("swh.web.add_forge_now.views")), | |||||
| url(r"^", include("swh.web.auth.views")), | url(r"^", include("swh.web.auth.views")), | ||||
| url(r"^logout/$", LogoutView.as_view(template_name="logout.html"), name="logout"), | url(r"^logout/$", LogoutView.as_view(template_name="logout.html"), name="logout"), | ||||
| ] | ] | ||||
| # allow to serve assets through django staticfiles | # allow to serve assets through django staticfiles | ||||
| # even if settings.DEBUG is False | # even if settings.DEBUG is False | ||||
| def insecure_serve(request, path, **kwargs): | def insecure_serve(request, path, **kwargs): | ||||
| Show All 13 Lines | |||||