Mezzanine deployment - .virtualenv missing Mezzanine after running fab install/create/deploy/all

October 9, 2019 152 views
Python Django Python Frameworks

Hey all! Have gotten past some previous issues, and managed to upload the project through Git. Now when I want to testrun the server using gunicorn, like cd into the project folder and run python manage.py runserver as usual, I get the error:

File “manage.py”, line 7, in <module>
from mezzanine.utils.conf import realprojectname
ModuleNotFoundError: No module named ‘mezzanine’

So it’s my understanding when i run fab all, or the individual sequences like fab install and create, that it should automatically create a venv with packages according to the requirements.txt

The requirements.txt is up to date, and has mezzanine listed in it.

I’m running on windows 7, but doubt that has any meaning at this point when the resources are pushed onto the droplet, and I can clearly see through FTP that Python is installed in the .virtualenvs folder, but none of the other necessary resources.

I tried running “pip install mezzanine” while having the virtual env activated through SSH, but can’t see where it installed it, definitely not the virtualenv’s lib folder.

How can I properly get all the necessary packages (mezzanine) up to the droplet? Thanks for reading.

1 Answer

I got it working, and mezzanine with all dependencies got installed. It seems it is an empty mezzanine project install however, as now it asks me to fill in a lot of settings which I added to local_settings locally.

Have another answer? Share your knowledge.