mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-23 15:13:06 +11:00
This reverts commit 5510329a99
.
This commit is contained in:
parent
5510329a99
commit
5ec8e0507e
2 changed files with 3 additions and 8 deletions
|
@ -51,8 +51,6 @@ MEDIA_ROOT = env("MEDIA_ROOT", ".media")
|
|||
|
||||
STATIC_URL = "/static/"
|
||||
|
||||
URL_PREFIX = env("URL_PREFIX", "")
|
||||
|
||||
ROOT_URLCONF = "dpaste.urls"
|
||||
|
||||
WSGI_APPLICATION = "dpaste.wsgi.application"
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
from django.urls import include, re_path
|
||||
from django.conf import settings
|
||||
|
||||
url_prefix = getattr(settings, "URL_PREFIX", "")
|
||||
|
||||
urlpatterns = [
|
||||
re_path(r"^%s" % url_prefix, include("dpaste.urls.dpaste_api")),
|
||||
re_path(r"^%s" % url_prefix, include("dpaste.urls.dpaste")),
|
||||
re_path(r"^%si18n/" % url_prefix, include("django.conf.urls.i18n")),
|
||||
re_path(r"^", include("dpaste.urls.dpaste_api")),
|
||||
re_path(r"^", include("dpaste.urls.dpaste")),
|
||||
re_path(r"^i18n/", include("django.conf.urls.i18n")),
|
||||
]
|
||||
|
||||
# Custom error handlers which load `dpaste/<code>.html` instead of `<code>.html`
|
||||
|
|
Loading…
Reference in a new issue