add prefix
This commit is contained in:
parent
a3bac4c3dd
commit
bbae18bcf3
2 changed files with 14 additions and 11 deletions
|
@ -146,3 +146,5 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||||
|
|
||||||
|
|
||||||
TIMELINE_PREFIX = "https://aab21.pad.ma/"
|
TIMELINE_PREFIX = "https://aab21.pad.ma/"
|
||||||
|
|
||||||
|
URL_PREFIX = 'polis+'
|
||||||
|
|
23
app/urls.py
23
app/urls.py
|
@ -15,6 +15,7 @@ Including another URLconf
|
||||||
"""
|
"""
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.urls import path
|
from django.urls import path
|
||||||
|
from django.conf import settings
|
||||||
|
|
||||||
from .video import views as video
|
from .video import views as video
|
||||||
from .text import views as text
|
from .text import views as text
|
||||||
|
@ -22,16 +23,16 @@ from .text import views as text
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
#path('pandoraAPI/', video.pandoraAPI, name='pandoraAPI'),
|
#path('pandoraAPI/', video.pandoraAPI, name='pandoraAPI'),
|
||||||
path('films/', video.films, name='films'),
|
path(settings.URL_PREFIX + 'films/', video.films, name='films'),
|
||||||
path('film/<str:slug>/play/<str:lang>', video.film_play, name='film_play'),
|
path(settings.URL_PREFIX + 'film/<str:slug>/play/<str:lang>', video.film_play, name='film_play'),
|
||||||
path('film/<str:slug>/', video.film, name='film'),
|
path(settings.URL_PREFIX + 'film/<str:slug>/', video.film, name='film'),
|
||||||
path('edits/', video.edits, name='edits'),
|
path(settings.URL_PREFIX + 'edits/', video.edits, name='edits'),
|
||||||
path('edit/<str:slug>/play/<str:lang>', video.edit_play, name='edit_play'),
|
path(settings.URL_PREFIX + 'edit/<str:slug>/play/<str:lang>', video.edit_play, name='edit_play'),
|
||||||
path('edit/<str:slug>/', video.edit, name='edit'),
|
path(settings.URL_PREFIX + 'edit/<str:slug>/', video.edit, name='edit'),
|
||||||
path('tv/', video.tv, name='tv'),
|
path(settings.URL_PREFIX + 'tv/', video.tv, name='tv'),
|
||||||
path('essays/', text.essays, name='essays'),
|
path(settings.URL_PREFIX + 'essays/', text.essays, name='essays'),
|
||||||
path('essay/<str:slug>/<str:lang>', text.essay, name='essay'),
|
path(settings.URL_PREFIX + 'essay/<str:slug>/<str:lang>', text.essay, name='essay'),
|
||||||
path('about/', text.about, name='about'),
|
path(settings.URL_PREFIX + 'about/', text.about, name='about'),
|
||||||
|
|
||||||
path('', text.index, name='index'),
|
path(settings.URL_PREFIX[:-1], text.index, name='index'),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue