Inspired by: http://eldarion.com/blog/2013/02/14/entry-point-hook-django-projects/ Moves startup code to lms.startup and cms.startup, and calls the startup methods in wsgi.py and manage.py for both projects.
13 lines
327 B
Python
13 lines
327 B
Python
import os
|
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cms.envs.aws")
|
|
|
|
import cms.startup as startup
|
|
startup.run()
|
|
|
|
# This application object is used by the development server
|
|
# as well as any WSGI server configured to use this file.
|
|
from django.core.wsgi import get_wsgi_application
|
|
application = get_wsgi_application()
|
|
|