Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
m3_webInterface
Project
Project
Details
Activity
Releases
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
m3
m3_webInterface
Commits
991ef7bc
Commit
991ef7bc
authored
Dec 18, 2024
by
Mario Chirinos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logout
parent
f8e91620
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
urls.py
catalog/urls.py
+1
-0
views.py
catalog/views.py
+8
-0
No files found.
catalog/urls.py
View file @
991ef7bc
...
@@ -7,6 +7,7 @@ from django.views.i18n import JavaScriptCatalog
...
@@ -7,6 +7,7 @@ from django.views.i18n import JavaScriptCatalog
urlpatterns
=
[
urlpatterns
=
[
url
(
r'^$'
,
views
.
index
,
name
=
'index'
),
url
(
r'^$'
,
views
.
index
,
name
=
'index'
),
url
(
r'^logout/$'
,
views
.
logout
,
name
=
'logout-view'
),
url
(
r'^status/$'
,
views
.
status
,
name
=
'status'
),
url
(
r'^status/$'
,
views
.
status
,
name
=
'status'
),
url
(
r'^js/jsi18n/$'
,
JavaScriptCatalog
.
as_view
(),
name
=
'jsi18n'
),
url
(
r'^js/jsi18n/$'
,
JavaScriptCatalog
.
as_view
(),
name
=
'jsi18n'
),
...
...
catalog/views.py
View file @
991ef7bc
...
@@ -53,6 +53,7 @@ from django.contrib.postgres.search import SearchQuery, SearchRank, SearchVector
...
@@ -53,6 +53,7 @@ from django.contrib.postgres.search import SearchQuery, SearchRank, SearchVector
from
django.db.models
import
Value
from
django.db.models
import
Value
import
html
import
html
import
string
import
string
from
django.contrib.auth
import
logout
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
...
@@ -68,6 +69,13 @@ def news2JSON(news):
...
@@ -68,6 +69,13 @@ def news2JSON(news):
data
.
append
(
item
)
data
.
append
(
item
)
return
data
return
data
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
def
logout_view
(
request
):
logout
(
request
)
# Redirect to a success page.
#-------------------------------------------------------------------------------
def
settingsView
(
request
):
def
settingsView
(
request
):
# form = ProfileForm( initial={'subscriptions':[ v for v in request.user.profile.subscriptions.all().values_list('id', flat=True)]})
# form = ProfileForm( initial={'subscriptions':[ v for v in request.user.profile.subscriptions.all().values_list('id', flat=True)]})
...
...
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