I have packaged a django application using pyinstaller
python pyinstaller.py --name=executablename Tool/manage.py
The problem is that the default server is single threaded and cannot handle much load.
Therefore i want to use a standard server with my packaged django executable. I have two choices eighther to use
1. Apache
2. Nginx with uwsgi
I can easily setup them with code, but the issue is related to packaged application. Here both server want a wsgi file which is normally present in Tool\wsgi.py but since this is a packaged application so not wsgi.py is present therefore both server cannot be attached.
Does anyone one know a way to achieve this. I know advised way would be to go with source but i really do not want to distribute my source in python files.
If using uWSGI, there is a command line option which allows you to say you are providing it with a module path instead of a file path. For standard Apache with mod_wsgi, or with uWSGI defaults, you can create a WSGI script file which imports the WSGI application from your module by its path into the WSGI script file and then refer to that WSGI script file. If using mod_wsgi-express, then it has an option like uWSGI which allows you to say you are providing it with a module path instead.