File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 api/__init__.py
77 api/docker.py
88 scheduler/*
9- web/__init__.py
10- web/models.py
11- web/templatetags/__init__.py
129 # osx library files when not running in virtualenv
1310 /Library/*
1411 /System/*
@@ -27,5 +24,4 @@ exclude_lines =
2724 if __name__ == .__main__.:
2825
2926[html]
30- extra_css = web/static/css/main.css
3127title = Deis Coverage Report
Original file line number Diff line number Diff line change 11"""
22WSGI config for deis project.
33
4- This module contains the WSGI application used by Django's development server
5- and any production WSGI deployments. It should expose a module-level variable
6- named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
7- this application via the ``WSGI_APPLICATION`` setting.
4+ It exposes the WSGI callable as a module-level variable named ``application``.
85
6+ For more information on this file, see
7+ https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
98"""
109
1110import os
1211
1312from django .core .wsgi import get_wsgi_application
14- import static
15-
1613
1714os .environ .setdefault ("DJANGO_SETTINGS_MODULE" , "deis.settings" )
1815
19-
20- class Dispatcher (object ):
21- """
22- Dispatches requests between two WSGI apps, a static file server and a
23- Django server.
24- """
25-
26- def __init__ (self ):
27- self .django_handler = get_wsgi_application ()
28- self .static_handler = static .Cling (os .path .dirname (os .path .dirname (__file__ )))
29-
30- def __call__ (self , environ , start_response ):
31- if environ ['PATH_INFO' ].startswith ('/static' ):
32- return self .static_handler (environ , start_response )
33- else :
34- return self .django_handler (environ , start_response )
35-
36-
37- application = Dispatcher ()
16+ application = get_wsgi_application ()
Original file line number Diff line number Diff line change @@ -12,5 +12,4 @@ python-etcd==0.3.2
1212PyYAML == 3.11
1313requests == 2.9.1
1414simpleflock == 0.0.3
15- static == 1.1.1
1615morph == 0.1.2
You can’t perform that action at this time.
0 commit comments