mirror of
https://github.com/Alexander-D-Karpov/akarpov
synced 2024-11-25 16:23:43 +03:00
moved short links to main path
This commit is contained in:
parent
1aa39d1d20
commit
099cca3aab
|
@ -13,7 +13,7 @@
|
||||||
app_name = "blog"
|
app_name = "blog"
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path("", post_list_view, name="post_list"),
|
path("", post_list_view, name="post_list"),
|
||||||
path("<str:slug>", post_detail_view, name="post"),
|
path("p/<str:slug>", post_detail_view, name="post"),
|
||||||
path("create/", post_create_view, name="post_create"),
|
path("create/", post_create_view, name="post_create"),
|
||||||
path("<str:slug>/edit", post_update_view, name="post_edit"),
|
path("<str:slug>/edit", post_update_view, name="post_edit"),
|
||||||
path("<str:slug>/comment", comment, name="comment"),
|
path("<str:slug>/comment", comment, name="comment"),
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
path("ckeditor/", include("ckeditor_uploader.urls")),
|
path("ckeditor/", include("ckeditor_uploader.urls")),
|
||||||
path("accounts/", include("allauth.urls")),
|
path("accounts/", include("allauth.urls")),
|
||||||
path("", include("akarpov.blog.urls", namespace="blog")),
|
path("", include("akarpov.blog.urls", namespace="blog")),
|
||||||
path("s/<str:slug>", redirect_view, name="short_url"),
|
path("<str:slug>", redirect_view, name="short_url"),
|
||||||
# Your stuff: custom urls includes go here
|
# Your stuff: custom urls includes go here
|
||||||
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user