On Fri, Oct 22, 2021 at 7:09 AM Ammon Quackenbush
wrote:
> I think you are right. I did delete the initial migration. How do I
> restore the initial migration?
>
>
Can't you restore it from your git repo? If you're not running any sort of
version control you've just hit the reason why doing so i
appen if you have deleted the initial migration or check your
>>>> settings properly.
>>>>
>>>> On Thu, Oct 21, 2021, 04:21 Ammon Quackenbush
>>>> wrote:
>>>>
>>>>> I am working on a django project and I am getting this error
t;
>>>> I am working on a django project and I am getting this error when I
>>>> attempt to run the "python manage.py makemigrations" command:
>>>>
>>>> django.db.utils.OperationalError: no such table: myApp_tableStatus
>>>>
>
, 04:21 Ammon Quackenbush wrote:
>>
>>> I am working on a django project and I am getting this error when I
>>> attempt to run the "python manage.py makemigrations" command:
>>>
>>> django.db.utils.OperationalError: no such table: myApp_tableStatu
Thu, Oct 21, 2021, 04:21 Ammon Quackenbush wrote:
>
>> I am working on a django project and I am getting this error when I
>> attempt to run the "python manage.py makemigrations" command:
>>
>> django.db.utils.OperationalError: no such table: myApp_tab
ns" command:
>
> django.db.utils.OperationalError: no such table: myApp_tableStatus
>
> The table tableStatus exists in my models.py.
>
> Any ideas what I can do to fix this problem?
>
> I tried deleting my virtual environment and creating a new one but that
> did not make a difference.
I am working on a django project and I am getting this error when I attempt
to run the "python manage.py makemigrations" command:
django.db.utils.OperationalError: no such table: myApp_tableStatus
The table tableStatus exists in my models.py.
Any ideas what I can do to fix this p
You have to look into your previous migrations, to find the problem
find which migration you are stuck on from console log
or, if it doesn't matter to you, kill all the migrations and start over.
(it is the fastest way)
Arnav Rastogi於 2019年9月7日星期六 UTC+8下午9時00分34秒寫道:
>
> 1. i remove the db.sqlit
This is outdated command , there is no such command like syncdb in Django
2.2
On Sat, Sep 7, 2019, 7:44 PM Suraj Thapa FC wrote:
> 1. python manage.py migrate - - run-syncdb
>
> On Sat, 7 Sep, 2019, 6:30 PM Arnav Rastogi, wrote:
>
>> 1. i remove the db.sqlite file and pycache
>>
>> 2. re run th
1. python manage.py migrate - - run-syncdb
On Sat, 7 Sep, 2019, 6:30 PM Arnav Rastogi, wrote:
> 1. i remove the db.sqlite file and pycache
>
> 2. re run the makemigrations and migrate command
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" gr
1. i remove the db.sqlite file and pycache
2. re run the makemigrations and migrate command
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsu
vatar'), max_length=30, blank=True,
>>> null=True)
>>> #models.ImageField(upload_to='avatars/', null=True, blank=True)
>>>
>>> objects = UserManager()
>>>
>>> USERNAME_FIELD = 'email'
>>>REQUIRE
#models.ImageField(upload_to='avatars/', null=True, blank=True)
>>
>> objects = UserManager()
>>
>> USERNAME_FIELD = 'email'
>>REQUIRED_FIELDS = []
>>
>> class Meta:
>> verbose_name = _('user')
>>
gt;
> settings.py
> AUTH_USER_MODEL = 'user.User'
>
>
> When i want to create a superuser and enter the email of the user i want
> to create :
> python manage.py createsuperuser
>
>
> I get the following error :
> django.db.utils.OperationalError: no such
AME_FIELD = 'email'
REQUIRED_FIELDS = []
class Meta:
verbose_name = _('user')
verbose_name_plural = _('users')
settings.py
AUTH_USER_MODEL = 'user.User'
When i want to create a superuser and enter the email of the user i want to
c
15 matches
Mail list logo