Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
9b91f38e
Verified
Commit
9b91f38e
authored
3 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Introduce BASE_URL setting
parent
36b994c2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!689
Support PDF generation without available request object
Pipeline
#23868
canceled
3 years ago
Stage: test
Stage: build
Stage: publish
Stage: docker
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/core/settings.py
+3
-0
3 additions, 0 deletions
aleksis/core/settings.py
with
3 additions
and
0 deletions
aleksis/core/settings.py
+
3
−
0
View file @
9b91f38e
...
...
@@ -68,6 +68,9 @@ UWSGI_SERVE_STATIC = True
UWSGI_SERVE_MEDIA
=
False
ALLOWED_HOSTS
=
_settings
.
get
(
"
http.allowed_hosts
"
,
[
getfqdn
(),
"
localhost
"
,
"
127.0.0.1
"
,
"
[::1]
"
])
BASE_URL
=
_settings
.
get
(
"
http.base_url
"
,
"
http://localhost:8000
"
if
DEBUG
else
f
"
https://
{
ALLOWED_HOSTS
[
0
]
}
"
)
# Application definition
INSTALLED_APPS
=
[
...
...
This diff is collapsed.
Click to expand it.
Nik | Klampfradler
@nik
mentioned in commit
497af4e6
·
3 years ago
mentioned in commit
497af4e6
mentioned in commit 497af4e61e60253e5976be4eff910d0a1c9b4633
Toggle commit list
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