mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-04-28 10:41:15 +08:00
Overhauled entire project config, added notifications, email templates, optimized stripe subscriptions, redis caching, and webdriver utilities
This commit is contained in:
parent
7cbe8fd720
commit
99dfcef67b
84 changed files with 4300 additions and 867 deletions
|
@ -1,14 +1,17 @@
|
|||
from django.conf.urls.static import static
|
||||
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
||||
from django.urls import path, include
|
||||
from config import settings
|
||||
from config.settings import DEBUG, CLOUD, 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'))
|
||||
]
|
||||
|
||||
# Media files
|
||||
if settings.DEBUG:
|
||||
# URLs for local development
|
||||
if DEBUG and not CLOUD:
|
||||
urlpatterns += staticfiles_urlpatterns()
|
||||
urlpatterns += static(
|
||||
'media/', document_root=settings.MEDIA_ROOT)
|
||||
'media/', document_root=MEDIA_ROOT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue