2020-05-01 22:46:15 +08:00
|
|
|
"""boofilsic URL Configuration
|
|
|
|
|
|
|
|
The `urlpatterns` list routes URLs to views. For more information please see:
|
|
|
|
https://docs.djangoproject.com/en/3.0/topics/http/urls/
|
|
|
|
Examples:
|
|
|
|
Function views
|
|
|
|
1. Add an import: from my_app import views
|
|
|
|
2. Add a URL to urlpatterns: path('', views.home, name='home')
|
|
|
|
Class-based views
|
|
|
|
1. Add an import: from other_app.views import Home
|
|
|
|
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
|
|
|
|
Including another URLconf
|
|
|
|
1. Import the include() function: from django.urls import include, path
|
|
|
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
|
|
|
"""
|
|
|
|
from django.contrib import admin
|
|
|
|
from django.urls import path, include
|
|
|
|
from django.conf import settings
|
|
|
|
from users.views import login
|
|
|
|
|
|
|
|
urlpatterns = [
|
2023-01-02 00:03:13 -05:00
|
|
|
path(settings.ADMIN_URL + "/", admin.site.urls),
|
|
|
|
path("login/", login),
|
|
|
|
path("markdownx/", include("markdownx.urls")),
|
|
|
|
path("users/", include("users.urls")),
|
|
|
|
path("", include("catalog.urls")),
|
|
|
|
path("", include("journal.urls")),
|
2023-01-09 00:09:45 -05:00
|
|
|
path("timeline/", include("social.urls")),
|
2023-01-02 00:03:13 -05:00
|
|
|
path("announcement/", include("management.urls")),
|
|
|
|
path("hijack/", include("hijack.urls")),
|
|
|
|
path("", include("common.urls")),
|
2023-01-08 23:17:30 -05:00
|
|
|
path("", include("legacy.urls")),
|
2020-05-01 22:46:15 +08:00
|
|
|
]
|
2021-02-15 21:27:50 +01:00
|
|
|
|
2023-01-02 00:03:13 -05:00
|
|
|
urlpatterns += [path(settings.ADMIN_URL + "-rq/", include("django_rq.urls"))]
|
2021-12-11 09:43:31 -05:00
|
|
|
|
2021-02-15 21:27:50 +01:00
|
|
|
if settings.DEBUG:
|
|
|
|
from django.conf.urls.static import static
|
2023-01-02 00:03:13 -05:00
|
|
|
|
|
|
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
2023-01-05 03:06:13 -05:00
|
|
|
urlpatterns.append(path("__debug__/", include("debug_toolbar.urls")))
|