Cmd venv activation:
python -m venv venv
call venv/Scripts/activate
Clone, create venv and run:
pip install -r requirements/develop.txt
python manage.py migrate
python manage.py createsuperuser
sudo apt-get install -y gettext
django-admin makemessages -l en
python manage.py compilemessages
python manage.py compilemessages -l uz
sudo chown -R your_username:your_groupname /home/bahrom04/workplace/django/ekologiya/media
sudo chmod -R 755 /home/bahrom04/workplace/django/ekologiya/media
sudo systemctl status nginx
docker-compose down --volumes --remove-orphans
If you run this command it will also delete postgres database and their volumes. So run this when you want to test new containers. See conversation below: https://chat.openai.com/share/f1c8d760-6062-4613-8a5b-2f88cfcfecc2
python -m pip install django-tailwind
python -m pip install 'django-tailwind[reload]'
sudo npm install -g cross-env
python manage.py tailwind install
python manage.py tailwind start
git config --global --add safe.directory /home/web/kedi.uz
redis-server
# mac
brew services start redis # start
brew services stop redis # stop
sudo systemctl start redis
sudo systemctl enable redis
sudo systemctl status redis-server
keys '*'
get <key_name>