install requirment:
pip install -r requirements.txt
change DATABASE in the setting: backend/Purchaes/setting
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'wsplab',
'USER': 'wsp',
'PASSWORD':'123456789',
'HOST':'localhost',
'PORT':'',
}
}
to
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
migrate
python manage.py migrate