- for linux sudo -u postres psql
- CREATE DATABASE <DB_NAME>;
- CREATE USER <username> WITH PASSWORD '';
- ALTER ROLE <username> SET client_encoding TO 'utf8';
- ALTER ROLE <username> SET default_transaction_isolation TO 'read committed';
- ALTER ROLE <username> SET timezone TO 'UTC';
- GRANT ALL PRIVILEGES ON DATABASE <DB_NAME> TO <username>;
create local_settings.py inside root directory and replace the following contents
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': '<DB_NAME>', 'USER': '<username>', 'PASSWORD': '<password>', 'HOST': 'localhost', 'PORT': '5432' } }
- https://github.com/cipher10111/cosmetigo-recommendation.git
- cd cosmetigo-recommendation
- for linux python3 -m venv ./venv
- source venv/bin/activate
- pip install -r requirements.txt
- source .env
- ./manage.py makemigrations
- ./manage.py migrate
- ./manage.py createsuperuser
- ./manage.py runserver