past3d/past3d/urls.py

21 lines
618 B
Python
Raw Normal View History

2023-07-12 19:44:08 +02:00
from django.urls import include, re_path, path
2013-10-01 16:38:42 +02:00
from django.conf import settings
from django.conf.urls.static import static
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
2023-07-12 19:44:08 +02:00
admin.autodiscover()
2013-10-01 16:38:42 +02:00
2023-07-12 19:44:08 +02:00
from past3d.views import HomeView
2013-10-01 16:38:42 +02:00
2023-07-12 19:44:08 +02:00
urlpatterns = [
re_path(r'^$', HomeView.as_view(), name='home'),
path('users/', include('users.urls')),
path('3d/', include('pastebin.urls')),
path('admin/', admin.site.urls),
]
2013-10-01 16:38:42 +02:00
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)