DEV Community

loading...

work in progress #2 Models

lum1nat profile image Lum1naT ・1 min read

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',
    }
}
Enter fullscreen mode Exit fullscreen mode

2. Migrate

python manage.py migrate
Enter fullscreen mode Exit fullscreen mode

Discussion (0)

pic
Editor guide