Answers for "python manage.py migrate"

6

how to create migrations in django

//to create migration files
python manage.py makemigrations

//to migrate migration files
python manage.py migrate
Posted by: Guest on November-03-2020
0

python3 manage.py migrate

class Genre(models.Model):
    """Model representing a book genre."""
    name = models.CharField(max_length=200, help_text='Enter a book genre (e.g. Science Fiction)')

    def __str__(self):
        """String for representing the Model object."""
        return self.name
Posted by: Guest on May-03-2021

Code answers related to "python manage.py migrate"

Python Answers by Framework

Browse Popular Code Answers by Language