[Fixed]-How to install Django project with all modules?

1👍

To setup env for project i would install virtualenv, then:

pip install -r requirements.txt

You need to set database connection in settings.py, or switch to sqlite3…

hope this helps!

0👍

If you are using virtual environment then activate it and go in your project root.
If you are not using virtualenvironment then do the same thing, go in your project root.
Make sure you have requirements.txt file.

run the command

pip freeze > requirements.txt

This will add automatically all your modules to requirements.txt file

which can be then installed by

pip install -r requirements.txt

Leave a comment