Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael William Coughlin
GraceDB Server
Commits
f228c9bb
Commit
f228c9bb
authored
13 years ago
by
Brian Moe
Browse files
Options
Downloads
Patches
Plain Diff
Updated features deprecated in Django 1.3
parent
7f222e0a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
middleware/auth.py
+5
-0
5 additions, 0 deletions
middleware/auth.py
settings_dev.py
+6
-2
6 additions, 2 deletions
settings_dev.py
with
11 additions
and
2 deletions
middleware/auth.py
+
5
−
0
View file @
f228c9bb
...
...
@@ -100,6 +100,11 @@ class LigoAuthMiddleware:
# return None
class
LigoAuthBackend
:
supports_object_permissions
=
False
supports_anonymous_user
=
False
supports_inactive_user
=
False
def
authenticate
(
self
,
ssluser
):
return
ssluser
...
...
This diff is collapsed.
Click to expand it.
settings_dev.py
+
6
−
2
View file @
f228c9bb
...
...
@@ -102,13 +102,17 @@ SECRET_KEY = '$$&hl%^_4&s0k7sbdr8ll_^gkz-j8oab0tz$t^^b-%$!83d(av'
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS
=
(
'
django.template.loaders.filesystem.load_template_source
'
,
#'django.template.loaders.filesystem.load_template_source',
# replaced by...
'
django.template.loaders.filesystem.Loader
'
,
'
django.template.loaders.app_directories.load_template_source
'
,
# 'django.template.loaders.eggs.load_template_source',
)
TEMPLATE_CONTEXT_PROCESSORS
=
(
"
django.core.context_processors.auth
"
,
#"django.core.context_processors.auth",
# replaced by...
"
django.contrib.auth.context_processors.auth
"
,
"
django.core.context_processors.debug
"
,
"
django.core.context_processors.i18n
"
,
"
django.core.context_processors.media
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment