Skip to content

Commit

Permalink
Remove mezzanine code from manage.py and wsgi
Browse files Browse the repository at this point in the history
  • Loading branch information
rlskoeser committed May 3, 2021
1 parent c6a1026 commit 996f2cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions cdhweb/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
import os

from django.core.wsgi import get_wsgi_application
from mezzanine.utils.conf import real_project_name

os.environ.setdefault("DJANGO_SETTINGS_MODULE",
"%s.settings" % real_project_name("cdhweb"))
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cdhweb.settings")

application = get_wsgi_application()
5 changes: 1 addition & 4 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@

if __name__ == "__main__":

from mezzanine.utils.conf import real_project_name

settings_module = "%s.settings" % real_project_name("cdhweb")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module)
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cdhweb.settings")

from django.core.management import execute_from_command_line

Expand Down

0 comments on commit 996f2cd

Please sign in to comment.