DEV Community

Lum1naT
Lum1naT

Posted on

work in progress #2 Models

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

Top comments (0)