A help site for people in Trichy at this moment when Covid-19 is making it difficult for people fulfill their basic needs and asking for help.
- Install Python
- Install Python Package Manager (pip/pip3) :
apt-get install python-pip
apt-get install python3-pip
- Install virtualenv :
apt-get install virtualenv
- Install
mysqlclient
prerequisites :- You may need to install the Python and MySQL development headers and libraries like so:
sudo apt-get install python-dev default-libmysqlclient-dev
- If you are using python3 then you need to install python3-dev using the following command :
sudo apt-get install python3-dev
- Install from PyPI:
pip3 install mysqlclient
- You may need to install the Python and MySQL development headers and libraries like so:
- Install Geospacial Libraries:
sudo apt-get install binutils libproj-dev gdal-bin
- Clone the repository -
git clone <remote-url>
- Go to the project directory -
cd <cloned-repo>
- Set up the environment :
- Create virtual environment files -
virtualenv -p python3 venv
- Activate virtual environment -
source venv/bin/activate
- Create virtual environment files -
- Install dependencies -
pip3 install -r requirements.txt
- Create a database -
helping_hand
- Copy contents of
.env.example
to a new file.env
-cp .env.example .env
- Set DB_USERNAME and DB_PASSWORD to your localhost mysql credentials
- Make migrations -
python3 manage.py makemigrations
- Run migrations -
python3 manage.py migrate
- Start server -
python3 manage.py runserver