mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2024-11-17 12:19:24 +08:00
17 lines
658 B
Python
17 lines
658 B
Python
from django.conf.urls.static import static
|
|
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
|
from django.urls import path, include
|
|
from config.settings import DEBUG, SERVE_MEDIA, MEDIA_ROOT
|
|
urlpatterns = [
|
|
path('accounts/', include('accounts.urls')),
|
|
path('subscriptions/', include('subscriptions.urls')),
|
|
path('notifications/', include('notifications.urls')),
|
|
path('billing/', include('billing.urls')),
|
|
path('stripe/', include('payments.urls'))
|
|
]
|
|
|
|
# URLs for local development
|
|
if DEBUG and SERVE_MEDIA:
|
|
urlpatterns += staticfiles_urlpatterns()
|
|
urlpatterns += static(
|
|
'media/', document_root=MEDIA_ROOT)
|