psql -U postgres
# Type the password which is set in the setup. #
CREATE DATABASE recom_db;
CREATE USER recom_admin WITH PASSWORD 'recom123';
ALTER ROLE recom_admin SET client_encoding TO 'utf8';
ALTER ROLE recom_admin SET default_transaction_isolation TO 'read committed';
GRANT ALL PRIVILEGES ON DATABASE recom_db TO recom_admin;
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
# Fill the form. (Only username and password fields are required.) #
- Drop the database and recreate it using the commands given above.
- Delete all files in the migrations folder. (excluding __init__.py)
- Run the commands given in the First Commands section.
python -m pip install pip --upgrade
pip install setuptools --upgrade --ignore-installed
python -m pip install --upgrade Pillow
- Ctrl+Shift+R -> "C:\Users\hasan\PycharmProjects\untitled\venv" to your venv path
- Change the home variable in pyvenv.cfg to your python path
- Run the commands:
pip uninstall django pip install django --upgrade
- Done! Now you can use pycharm to run scripts.