Reputation: 1462
I created a Django's application which use some additional modules like crispy_forms. I would like to send this application to my friends to test it. But I don't know how can they just install it and run it? Is it possible? Application using also database PostgreSQL. What is the simplest way to just run this application from any place with no errors and problems on the start?
I found only information about https://docs.djangoproject.com/en/1.10/intro/reusable-apps/ and packed my app, but I don't know how to install it.
Upvotes: 0
Views: 1593
Reputation: 2109
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
Upvotes: 0
Reputation: 506
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!
Upvotes: 1