You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
492 B
15 lines
492 B
from django.conf import settings
|
|
from django.conf.urls.static import static
|
|
from django.contrib import admin
|
|
from django.urls import include, path
|
|
|
|
urlpatterns = [
|
|
path('admin/', admin.site.urls),
|
|
path('', include('blog.urls')),
|
|
path('accounts/', include('accounts.urls')),
|
|
path('comments/', include('comments.urls', namespace='comments')),
|
|
]
|
|
|
|
# 开发环境服务媒体文件
|
|
if settings.DEBUG:
|
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) |