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
Merge requests
!689
Support PDF generation without available request object
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Support PDF generation without available request object
feature/pdf-background
into
master
Overview
1
Commits
6
Pipelines
5
Changes
1
All threads resolved!
Hide all comments
Merged
Jonathan Weth
requested to merge
feature/pdf-background
into
master
3 years ago
Overview
1
Commits
6
Pipelines
5
Changes
1
All threads resolved!
Hide all comments
Expand
0
0
Merge request reports
Viewing commit
36b994c2
Prev
Next
Show latest version
1 file
+
2
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Verified
36b994c2
Make ALLOWED_HOSTS default to system's fqdn and localhost
· 36b994c2
Nik | Klampfradler
authored
3 years ago
aleksis/core/settings.py
+
2
−
1
Options
import
os
from
glob
import
glob
from
socket
import
getfqdn
from
django.utils.translation
import
gettext_lazy
as
_
@@ -66,7 +67,7 @@ UWSGI = {
UWSGI_SERVE_STATIC
=
True
UWSGI_SERVE_MEDIA
=
False
ALLOWED_HOSTS
=
_settings
.
get
(
"
http.allowed_hosts
"
,
[])
ALLOWED_HOSTS
=
_settings
.
get
(
"
http.allowed_hosts
"
,
[
getfqdn
(),
"
localhost
"
,
"
127.0.0.1
"
,
"
[::1]
"
])
# Application definition
INSTALLED_APPS
=
[
Loading