Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
09b5bd6b
authored
Mar 17, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: add locale support
closes #106
parent
1f152bdc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
circle/circle/settings/base.py
+1
-0
circle/dashboard/views.py
+4
-2
No files found.
circle/circle/settings/base.py
View file @
09b5bd6b
...
@@ -192,6 +192,7 @@ MIDDLEWARE_CLASSES = (
...
@@ -192,6 +192,7 @@ MIDDLEWARE_CLASSES = (
# Default Django middleware.
# Default Django middleware.
'django.middleware.common.CommonMiddleware'
,
'django.middleware.common.CommonMiddleware'
,
'django.contrib.sessions.middleware.SessionMiddleware'
,
'django.contrib.sessions.middleware.SessionMiddleware'
,
'django.middleware.locale.LocaleMiddleware'
,
'django.middleware.csrf.CsrfViewMiddleware'
,
'django.middleware.csrf.CsrfViewMiddleware'
,
'django.contrib.auth.middleware.AuthenticationMiddleware'
,
'django.contrib.auth.middleware.AuthenticationMiddleware'
,
'django.contrib.messages.middleware.MessageMiddleware'
,
'django.contrib.messages.middleware.MessageMiddleware'
,
...
...
circle/dashboard/views.py
View file @
09b5bd6b
...
@@ -1999,8 +1999,10 @@ def circle_login(request):
...
@@ -1999,8 +1999,10 @@ def circle_login(request):
extra_context
=
{
extra_context
=
{
'saml2'
:
hasattr
(
settings
,
"SAML_CONFIG"
)
'saml2'
:
hasattr
(
settings
,
"SAML_CONFIG"
)
}
}
return
login
(
request
,
authentication_form
=
authentication_form
,
response
=
login
(
request
,
authentication_form
=
authentication_form
,
extra_context
=
extra_context
)
extra_context
=
extra_context
)
set_language_cookie
(
request
,
response
)
return
response
class
DiskAddView
(
TemplateView
):
class
DiskAddView
(
TemplateView
):
...
...
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