Yes I think you should first do "makemigrations" and then run migrate
On Sun, May 26, 2019, 6:15 PM Saeed Pooladzadeh wrote:
>
> Hi
>
> This is my model:
> from django.db import models
> from django.conf import settings
>
>
> # Create your models here.
> class Smodel(models.Model):
> eid=mod
But I performed migration many time!!
در دوشنبه 27 مهٔ 2019، ساعت 3:48:25 (UTC+4:30)، ramadhan ngallen نوشته:
>
> You got this error because you didn't perform migrations to create the
> table in your database
>
> Run>> python manage.py makemigrations
>
> It will create migration number under m
You got this error because you didn't perform migrations to create the table in
your database
Run>> python manage.py makemigrations
It will create migration number under migrations. Then make sqlmigrations
>> python manage.py sqlmigration
It will create sql scripts to create a table on your
Hi
This is my model:
from django.db import models
from django.conf import settings
# Create your models here.
class Smodel(models.Model):
eid=models.IntegerField()
elogin = models.CharField(max_length=8)
epassword= models.CharField(max_length=8)
elikeDay=models.IntegerField
4 matches
Mail list logo