Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fbd22b18
authored
Apr 19, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
django: fix for prod environment
parent
e5ca8624
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
cloud/settings/prod.py
+2
-0
cloud/wsgi.py
+10
-2
No files found.
cloud/settings/prod.py
View file @
fbd22b18
...
...
@@ -4,3 +4,5 @@ from .base import *
DEBUG
=
False
TEMPLATE_DEBUG
=
DEBUG
STORE_SETTINGS
[
'store_url'
]
=
'https://store.cloud.ik.bme.hu'
STORE_SETTINGS
[
'ssl_auth'
]
=
'True'
cloud/wsgi.py
View file @
fbd22b18
...
...
@@ -15,13 +15,21 @@ framework.
"""
import
os
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"cloud.settings"
)
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"cloud.settings
.prod
"
)
# This application object is used by any WSGI server configured to use this
# file. This includes Django's development server, if the WSGI_APPLICATION
# setting points here.
from
django.core.wsgi
import
get_wsgi_application
application
=
get_wsgi_application
()
_application
=
get_wsgi_application
()
def
application
(
environ
,
start_response
):
# copy DJANGO_* wsgi-env vars to process-env
for
i
in
environ
.
keys
():
if
i
.
startswith
(
'DJANGO_'
):
os
.
environ
[
i
]
=
environ
[
i
]
return
_application
(
environ
,
start_response
)
# Apply WSGI middleware here.
# from helloworld.wsgi import HelloWorldApplication
...
...
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