laminsaidy / awesome_recipes

0 stars 1 forks source link

Create Django database #6

Open laminsaidy opened 3 months ago

yellow-grape commented 1 month ago

It's pretty automatic just go into the models file in your app and create whatever model it's usually in this format

class Person(models.Model): first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=30)

Change your fields to whatever you need and put it into the models.py than add it to the admin to see create and edit