fix #51 remove caching from url loader
This commit is contained in:
parent
3ed6923fd0
commit
7df2771e5e
@ -19,15 +19,14 @@
|
|||||||
|
|
||||||
|
|
||||||
from django.urls import path, re_path, include
|
from django.urls import path, re_path, include
|
||||||
from django.views.decorators.cache import cache_page
|
|
||||||
|
|
||||||
from . import views
|
from . import views
|
||||||
|
|
||||||
|
|
||||||
app_name = 'coinc'
|
app_name = 'coinc'
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('', cache_page(None)(views.index), name='index'),
|
path('', views.index, name='index'),
|
||||||
path('<str:name_iso>', cache_page(None)(views.detail_country), name='country'),
|
path('<str:name_iso>', views.detail_country, name='country'),
|
||||||
path('add/user/<str:username>/color/<str:color>', views.add_user, name='add_user'),
|
path('add/user/<str:username>/color/<str:color>', views.add_user, name='add_user'),
|
||||||
re_path(r'^add/coin/(?P<country>[a-z]{2})/(?P<year>(?:1999|20[0-8][0-9]|209[0-8]))/(?P<value>(?:1|2|5|10|20|50|100|200|201|202|203))$',
|
re_path(r'^add/coin/(?P<country>[a-z]{2})/(?P<year>(?:1999|20[0-8][0-9]|209[0-8]))/(?P<value>(?:1|2|5|10|20|50|100|200|201|202|203))$',
|
||||||
views.add_coin, name='add_coin'),
|
views.add_coin, name='add_coin'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user