Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
library-app-django
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ilham Maulana
library-app-django
Commits
da93d616
Commit
da93d616
authored
Jul 05, 2024
by
impfundev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: book dashboard cache
parent
9bae7a9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
urls.py
books/urls.py
+5
-6
No files found.
books/urls.py
View file @
da93d616
...
@@ -4,12 +4,11 @@ from django.views.decorators.cache import cache_page
...
@@ -4,12 +4,11 @@ from django.views.decorators.cache import cache_page
from
django.conf
import
settings
from
django.conf
import
settings
urlpatterns
=
[
urlpatterns
=
[
# path(
path
(
# "",
""
,
# cache_page(settings.CACHE_TTL, key_prefix="books")(index),
cache_page
(
settings
.
CACHE_TTL
,
key_prefix
=
"books"
)(
index
),
# name="book_list",
name
=
"book_list"
,
# ),
),
path
(
""
,
index
,
name
=
"book_list"
),
path
(
"<int:id>/update/"
,
update
,
name
=
"book_update"
),
path
(
"<int:id>/update/"
,
update
,
name
=
"book_update"
),
path
(
"<int:id>/delete/"
,
delete
,
name
=
"book_delete"
),
path
(
"<int:id>/delete/"
,
delete
,
name
=
"book_delete"
),
]
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment