Category "migrate"

Django - no such table exception

In Django, I've added some models into models.py. After manage.py makemigrations, manage.py migrate raised this exception: django.db.utils.OperationalError: no

django.db.utils.OperationalError: (1071, 'Specified key was too long; max key length is 767 bytes')

My model: class Course(models.Model): language = models.ForeignKey(Language) name = models.CharField(max_length=50, unique=True, default='course')

Php artisan migrate no such file or directory

I created a make:migration when I try to run the migration I get the following error No such file or directory (SQL: select * from information_schema.tabl

django.core.exceptions.ValidationError: ['“” value must be a decimal number.']

I got this error while migrating here is my models.py file: from django.db import models from django.conf import settings from decimal import Decimal # Create y