if query_type is not None:
types = re.findall('\d+', query_type) #seaprates request with digits with commas by numbers
query = ""
for type in types:
query += "Q(type="+type+") |"
query = query[:-3]
stanislav@Stanislavs-MacBook-Pro marathoner % docker run -it -p 80:8888 marathoner-docker
[2020-07-13 21:13:05 +0000] [7] [INFO] Starting gunicorn 19.9.0
[2020-07-13 21:13:05 +0000] [7] [INFO] Listening at: 0.0.0.0:8000 (7)
[2020-07-13 21:13:05 +0000] [7] [INFO] Using worker: sync
[2020-07-13 21:13:05 +0000] [11] [INFO] Booting worker with pid: 11
[2020-07-13 21:13:05 +0000] [11] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/usr/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 129, in init_process
self.load_wsgi()
File "/usr/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 138, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/lib/python2.7/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load
return self.load_wsgiapp()
File "/usr/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/lib/python2.7/dist-packages/gunicorn/util.py", line 375, in import_app
__import__(module)
File "/app/Marathoner/wsgi.py", line 12, in
from django.core.wsgi import get_wsgi_application
ImportError: No module named django.core.wsgi
[2020-07-13 21:13:05 +0000] [11] [INFO] Worker exiting (pid: 11)
[2020-07-13 21:13:05 +0000] [7] [INFO] Shutting down: Master
[2020-07-13 21:13:05 +0000] [7] [INFO] Reason: Worker failed to boot.