MENU

Fun & Interesting

Django Models.py - Django Databases #2

Codemy.com 56,551 5 years ago
Video Not Working? Fix It Now

To create a database table in Django, all we have to do is write a little python code in our models.py file to define a Class and then designate the fields we want to add to the database. In this video I'll show you how to create a Member table that records first name, last name, email address, password, and user age. We'll also register our model so that we can access it from the Django Admin area.

Comment