- Create a virtual environment:
python -m venv .venv
- Activate the virtual environment:
.venv\Scripts\activate
- Create a virtual environment:
python -m venv .venv
- Activate the virtual environment:
source .venv/bin/activate
If you want to clear the environment:
- Uninstall all packages:
pip uninstall -r requirements.txt -y
- Purge the pip cache:
pip cache purge
To upgrade pip:
python -m pip install --upgrade pip
- Install the requirements:
pip install -r .\requirements.txt
- Install the requirements:
pip install -r ./requirements.txt
To install Bootstrap using npm:
npm install
To run the development server:
python manage.py runserver
To apply database migrations:
python manage.py migrate
To create translation messages:
django-admin makemessages -l ar
To compile translation messages:
py .\manage.py compilemessages
python manage.py compilemessages
git update-index --assume-unchanged mazoon_aluminum/settings.py
git pull origin master
git update-index --no-assume-unchanged mazoon_aluminum/settings.py