diff options
author | luxagraf <sng@luxagraf.net> | 2020-12-02 15:02:12 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-12-02 15:02:12 -0500 |
commit | ab8055b5cab2523d925f59c65bc38df103a26991 (patch) | |
tree | 29e4597bc0d86d658f574c0c4f0b036351a68742 /app/unused_apps/birds/urls.py | |
parent | 87f692178a6e30719c564076f00c206642f36ce6 (diff) |
deleted old apps and media
Diffstat (limited to 'app/unused_apps/birds/urls.py')
-rw-r--r-- | app/unused_apps/birds/urls.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/app/unused_apps/birds/urls.py b/app/unused_apps/birds/urls.py deleted file mode 100644 index 8781433..0000000 --- a/app/unused_apps/birds/urls.py +++ /dev/null @@ -1,34 +0,0 @@ -from django.conf.urls import url -from django.views.generic.base import RedirectView -from . import views - -app_name = "birds" - -urlpatterns = [ - url( - r'(?P<user>[\w]+)/(?P<page>\d+)/', - views.BirdListUserView.as_view(), - name='list_by_person' - ), - url( - r'(?P<page>\d+)/$', - views.BirdListView.as_view(), - name="list" - ), - url( - r'^(?P<slug>[-_\w]+)$', - views.BirdDetailView.as_view(), - name='detail' - ), - # redirect /slug/ to /slug/1/ for live server - url( - r'(?P<user>[-\w]+)/$', - RedirectView.as_view(url="/birds/%(user)s/1/", permanent=False), - name="list_person_redirect" - ), - url( - r'', - RedirectView.as_view(url="/birds/1/", permanent=False), - name="list_redirect" - ), -] |