testing.py 459 B

12345678910111213
  1. # -*- coding: utf-8 -*-
  2. #!/usr/bin/env python
  3. import os
  4. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "configs.testing")
  5. os.environ.setdefault('SECURITY_HTTP', 'yes')
  6. from apilib.loghelper.wsgi import CustomWSGIWrapper
  7. # This application object is used by the development server
  8. # as well as any WSGI server configured to use this file.
  9. from django.core.wsgi import get_wsgi_application
  10. application = CustomWSGIWrapper(get_wsgi_application())