THIS IS WORK IN PROGRESS, I ACCIDENTALLY PUBLISHED
Django Tutorial
Hello,
This is more of note to myself / cheatsheet, regarding basics of Django development.
Initial setup
1. Update settings.py
Database setup - inside project's settings.py
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'DatabaseName',
'USER': 'username',
'PASSWORD': 'password',
'HOST': '127.0.0.1',
'PORT': '3306',
}
}
2. Migrate
python manage.py migrate
Top comments (0)