2 from django
.urls
import include
, path
, register_converter
, re_path
3 from django
.contrib
import admin
4 from django
.conf
import settings
5 from django
.conf
.urls
.static
import static
8 # This URLs should be always be served, even during maintenance mode
9 urlpatterns
= static(settings
.STATIC_URL
, document_root
=settings
.STATIC_ROOT
)
12 # Check for maintenace mode
13 from django
.conf
import settings
14 if settings
.MAINTENANCE
:
15 from mygpo
.web
import utils
17 re_path('', utils
.maintenance
)
20 # URLs are still registered during maintenace mode because we need to
21 # build links from them (eg login-link).
23 path('', include('mygpo.web.urls')),
24 path('', include('mygpo.podcasts.urls')),
25 path('', include('mygpo.directory.urls')),
26 path('', include('mygpo.api.urls')),
27 path('', include('mygpo.userfeeds.urls')),
28 path('', include('mygpo.share.urls')),
29 path('', include('mygpo.history.urls')),
30 path('', include('mygpo.subscriptions.urls')),
31 path('', include('mygpo.users.urls')),
32 path('', include('mygpo.podcastlists.urls')),
33 path('suggestions/', include('mygpo.suggestions.urls')),
34 path('publisher/', include('mygpo.publisher.urls')),
35 path('administration/', include('mygpo.administration.urls')),
36 path('pubsub/', include('mygpo.pubsub.urls')),
37 path('admin/', admin
.site
.urls
),