I was able to done that, I had to manually recreate the venv.
But, the problem is it works if I keep the manage.py runserver from terminal, but when I close it the app gets closed.
Logs:
[2023-11-08 10:32:30 +0000] [384701] [INFO] Starting gunicorn 21.2.0
[2023-11-08 10:32:30 +0000] [384701] [INFO] Listening at: http://0.0.0.0:8000 (384701)
[2023-11-08 10:32:30 +0000] [384701] [INFO] Using worker: geventwebsocket.gunicorn.workers.GeventWebSocketWorker
[2023-11-08 10:32:30 +0000] [384702] [INFO] Booting worker with pid: 384702
[2023-11-08 10:32:30 +0000] [384702] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/www/vbpay/89427f07094bd5384e5b4054e4f495d4_venv/lib/python3.11/site-packages/gunicorn/arbiter.py", line 609, in spawn_worker
worker.init_process()
File "/www/vbpay/89427f07094bd5384e5b4054e4f495d4_venv/lib/python3.11/site-packages/gunicorn/workers/ggevent.py", line 147, in init_process
super().init_process()
File "/www/vbpay/89427f07094bd5384e5b4054e4f495d4_venv/lib/python3.11/site-packages/gunicorn/workers/base.py", line 134, in init_process
self.load_wsgi()
File "/www/vbpay/89427f07094bd5384e5b4054e4f495d4_venv/lib/python3.11/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
self.wsgi = self.app.wsgi()
^^^^^^^^^^^^^^^
File "/www/vbpay/89427f07094bd5384e5b4054e4f495d4_venv/lib/python3.11/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
^^^^^^^^^^^
File "/www/vbpay/89427f07094bd5384e5b4054e4f495d4_venv/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
^^^^^^^^^^^^^^^^^^^
File "/www/vbpay/89427f07094bd5384e5b4054e4f495d4_venv/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/vbpay/89427f07094bd5384e5b4054e4f495d4_venv/lib/python3.11/site-packages/gunicorn/util.py", line 371, in import_app
mod = importlib.import_module(module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'vbpay'
[2023-11-08 10:32:30 +0000] [384702] [INFO] Worker exiting (pid: 384702)
[2023-11-08 10:32:30 +0000] [384701] [ERROR] Worker (pid:384702) exited with code 3
[2023-11-08 10:32:30 +0000] [384701] [ERROR] Shutting down: Master
[2023-11-08 10:32:30 +0000] [384701] [ERROR] Reason: Worker failed to boot.
[2023-11-08 10:32:31 +0000] [384712] [INFO] Starting gunicorn 21.2.0
[2023-11-08 10:32:31 +0000] [384712] [INFO] Listening at: http://0.0.0.0:8000 (384712)
[2023-11-08 10:32:31 +0000] [384712] [INFO] Using worker: geventwebsocket.gunicorn.workers.GeventWebSocketWorker
[2023-11-08 10:32:31 +0000] [384717] [INFO] Booting worker with pid: 384717
[2023-11-08 10:32:31 +0000] [384717] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/www/vbpay/89427f07094bd5384e5b4054e4f495d4_venv/lib/python3.11/site-packages/gunicorn/arbiter.py", line 609, in spawn_worker
worker.init_process()
File "/www/vbpay/89427f07094bd5384e5b4054e4f495d4_venv/lib/python3.11/site-packages/gunicorn/workers/ggevent.py", line 147, in init_process
super().init_process()
File "/www/vbpay/89427f07094bd5384e5b4054e4f495d4_venv/lib/python3.11/site-packages/gunicorn/workers/base.py", line 134, in init_process
self.load_wsgi()
File "/www/vbpay/89427f07094bd5384e5b4054e4f495d4_venv/lib/python3.11/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
self.wsgi = self.app.wsgi()
^^^^^^^^^^^^^^^
File "/www/vbpay/89427f07094bd5384e5b4054e4f495d4_venv/lib/python3.11/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
^^^^^^^^^^^
File "/www/vbpay/89427f07094bd5384e5b4054e4f495d4_venv/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
^^^^^^^^^^^^^^^^^^^
File "/www/vbpay/89427f07094bd5384e5b4054e4f495d4_venv/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/vbpay/89427f07094bd5384e5b4054e4f495d4_venv/lib/python3.11/site-packages/gunicorn/util.py", line 371, in import_app
mod = importlib.import_module(module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'vbpay'
[2023-11-08 10:32:31 +0000] [384717] [INFO] Worker exiting (pid: 384717)
[2023-11-08 10:32:31 +0000] [384712] [ERROR] Worker (pid:384717) exited with code 3
[2023-11-08 10:32:31 +0000] [384712] [ERROR] Shutting down: Master
[2023-11-08 10:32:31 +0000] [384712] [ERROR] Reason: Worker failed to boot.