Kim Majali wrote on 31/05/2022
import sys
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'aaadb',
'USER': 'postgres',
'PASSWORD': 'pass',
'HOST': 'aaadb.cymjfpovl5ev.eu-west-1.rds.amazonaws.com',
'PORT': '5432',
}
}
else:
Read moreKim Majali wrote on 31/05/2022
python manage.py dumpdata > db_data.json
python manage.py loaddata db_data.jsonRead more
Kim Majali wrote on 31/05/2022
Kim Majali wrote on 31/05/2022
pip install django-crontabRead more
Kim Majali wrote on 31/05/2022