Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tdt4242-base
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Andreas Jensen Jonassen
tdt4242-base
Commits
ac6502cc
Commit
ac6502cc
authored
3 years ago
by
Liam Svanåsbakken Crouch
Browse files
Options
Downloads
Patches
Plain Diff
Fix bad code smell: Variable naming makes its use unclear
parent
51386bf5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
backend/secfit/secfit/djangoHeroku.py
+6
-6
6 additions, 6 deletions
backend/secfit/secfit/djangoHeroku.py
with
6 additions
and
6 deletions
backend/secfit/secfit/djangoHeroku.py
+
6
−
6
View file @
ac6502cc
...
...
@@ -11,16 +11,16 @@ def settings(
config
,
*
,
db_colors
=
False
,
databases
=
True
,
test_runner
=
True
,
staticfiles
=
True
,
use_
databases
=
True
,
enable_
test_runner
=
True
,
enable_
staticfiles
=
True
,
allowed_hosts
=
True
,
secret_key
=
True
):
# Database configuration.
# TODO: support other database (e.g. TEAL, AMBER, etc, automatically.)
if
databases
:
if
use_
databases
:
# Integrity check.
if
"
DATABASES
"
not
in
config
:
config
[
"
DATABASES
"
]
=
{
"
default
"
:
None
}
...
...
@@ -48,13 +48,13 @@ def settings(
if
"
CI
"
in
os
.
environ
:
config
[
"
DATABASES
"
][
"
default
"
][
"
TEST
"
]
=
config
[
"
DATABASES
"
][
"
default
"
]
if
test_runner
:
if
enable_
test_runner
:
# Enable test runner if found in CI environment.
if
"
CI
"
in
os
.
environ
:
config
[
"
TEST_RUNNER
"
]
=
"
django_heroku.HerokuDiscoverRunner
"
# Staticfiles configuration.
if
staticfiles
:
if
enable_
staticfiles
:
config
[
"
STATIC_ROOT
"
]
=
os
.
path
.
join
(
config
[
"
BASE_DIR
"
],
"
staticfiles
"
)
config
[
"
STATIC_URL
"
]
=
"
/static/
"
...
...
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