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
10c8a8ea
Commit
10c8a8ea
authored
Jul 08, 2024
by
impfundev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: bug after deactivated cache and debug tool
parent
81a14504
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
4 additions
and
32 deletions
+4
-32
urls.py
books/urls.py
+1
-7
asgi.py
config/asgi.py
+0
-1
settings.py
config/settings.py
+0
-1
wsgi.py
config/wsgi.py
+0
-2
urls.py
dashboards/urls.py
+1
-7
urls.py
librarians/urls.py
+1
-7
urls.py
members/urls.py
+1
-7
No files found.
books/urls.py
View file @
10c8a8ea
from
django.urls
import
path
from
.views
import
index
,
update
,
delete
from
django.views.decorators.cache
import
cache_page
from
django.conf
import
settings
urlpatterns
=
[
path
(
""
,
cache_page
(
settings
.
CACHE_TTL
,
key_prefix
=
"books"
)(
index
),
name
=
"book_list"
,
),
path
(
""
,
index
,
name
=
"book_list"
),
path
(
"<int:id>/update/"
,
update
,
name
=
"book_update"
),
path
(
"<int:id>/delete/"
,
delete
,
name
=
"book_delete"
),
]
config/asgi.py
View file @
10c8a8ea
...
...
@@ -14,4 +14,3 @@ from django.core.asgi import get_asgi_application
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"config.settings"
)
application
=
get_asgi_application
()
app
=
application
config/settings.py
View file @
10c8a8ea
...
...
@@ -85,7 +85,6 @@ MIDDLEWARE = [
"django.contrib.messages.middleware.MessageMiddleware"
,
"django.middleware.clickjacking.XFrameOptionsMiddleware"
,
# 3rd party
"debug_toolbar.middleware.DebugToolbarMiddleware"
,
"allauth.account.middleware.AccountMiddleware"
,
# local
"authentications.middleware.AuthMiddleware"
,
...
...
config/wsgi.py
View file @
10c8a8ea
...
...
@@ -14,5 +14,3 @@ from django.core.wsgi import get_wsgi_application
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"config.settings"
)
application
=
get_wsgi_application
()
app
=
application
dashboards/urls.py
View file @
10c8a8ea
from
django.urls
import
path
,
include
from
dashboards.views
import
index
from
django.views.decorators.cache
import
cache_page
from
django.conf
import
settings
urlpatterns
=
[
path
(
""
,
cache_page
(
settings
.
CACHE_TTL
,
key_prefix
=
"dashboard"
)(
index
),
name
=
"dashboard"
,
),
path
(
""
,
index
,
name
=
"dashboard"
),
path
(
"books/"
,
include
(
"books.urls"
)),
path
(
"members/"
,
include
(
"members.urls"
)),
path
(
"book-loans/"
,
include
(
"book_loans.urls"
)),
...
...
librarians/urls.py
View file @
10c8a8ea
from
django.urls
import
path
from
librarians.views
import
index
,
update
,
delete
from
django.views.decorators.cache
import
cache_page
from
django.conf
import
settings
urlpatterns
=
[
path
(
""
,
cache_page
(
settings
.
CACHE_TTL
,
key_prefix
=
"librarians"
)(
index
),
name
=
"librarian_lists"
,
),
path
(
""
,
index
,
name
=
"librarian_lists"
),
path
(
"<id>/update/"
,
update
,
name
=
"update_librarian"
),
path
(
"<id>/delete/"
,
delete
,
name
=
"delete_librarian"
),
]
members/urls.py
View file @
10c8a8ea
from
django.urls
import
path
from
members.views
import
index
,
update
,
delete
from
django.views.decorators.cache
import
cache_page
from
django.conf
import
settings
urlpatterns
=
[
path
(
""
,
cache_page
(
settings
.
CACHE_TTL
,
key_prefix
=
"members"
)(
index
),
name
=
"member_lists"
,
),
path
(
""
,
index
,
name
=
"member_lists"
),
path
(
"<id>/update/"
,
update
,
name
=
"update_member"
),
path
(
"<id>/delete/"
,
delete
,
name
=
"delete_member"
),
]
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