Skip to content

akalp/recomapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RecoMapp

First Run

Creating Database and Authorized User

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;

Installing Requirements and First Commands

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.) #

Fresh Start After Migration Faults

  1. Drop the database and recreate it using the commands given above.
  2. Delete all files in the migrations folder. (excluding __init__.py)
  3. Run the commands given in the First Commands section.

Special commands

python -m pip install pip --upgrade
pip install setuptools --upgrade --ignore-installed
python -m pip install --upgrade Pillow

Fix the migrations not found in django.db error

  1. Ctrl+Shift+R -> "C:\Users\hasan\PycharmProjects\untitled\venv" to your venv path
  2. Change the home variable in pyvenv.cfg to your python path
  3. Run the commands:
    pip uninstall django
    pip install django --upgrade
  4. Done! Now you can use pycharm to run scripts.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published