plying to the database. How can I fix this issue without deleting the
>>>>> database?
>>>>>
>>>>> Thank you
>>>>> ~Salima
>>>>>
>>>>>
>>>>> On Mon, Jul 19, 2021 at 7:02 PM Aman Vyas wrot
g no changes detected while running makemigrations and you are
> sure that you changed models.py then these things you can try:
>
> 1: python manage.py makemigrations appname
>
> if this will not work then do that
>
> 2: delete migrations folder from your app and delete
How can I fix this issue without deleting the
>>>>> database?
>>>>>
>>>>> Thank you
>>>>> ~Salima
>>>>>
>>>>>
>>>>> On Mon, Jul 19, 2021 at 7:02 PM Aman Vyas wrote:
>>>>>
>
ed while running makemigrations and
>>>>> you are sure that you changed models.py then these things you can try:
>>>>>
>>>>> 1: python manage.py makemigrations appname
>>>>>
>>>>> if this will not work then do that
>>>
>> you are sure that you changed models.py then these things you can try:
>>>>
>>>> 1: python manage.py makemigrations appname
>>>>
>>>> if this will not work then do that
>>>>
>>>> 2: delete migrations folder from you
en these things you can try:
>>>
>>> 1: python manage.py makemigrations appname
>>>
>>> if this will not work then do that
>>>
>>> 2: delete migrations folder from your app and delete database then run
>>> again python mana
folder from your app and delete database then run
>> again python manage.py makemigrations
>>
>>
>>
>>
>> On Mon, Jul 19, 2021 at 6:07 AM Salima Begum <
>> salim...@rohteksolutions.com> wrote:
>>
>>> Hi all,
>>>
>>> I ha
ions appname
>
> if this will not work then do that
>
> 2: delete migrations folder from your app and delete database then run
> again python manage.py makemigrations
>
>
>
>
> On Mon, Jul 19, 2021 at 6:07 AM Salima Begum
> wrote:
>
>> Hi all,
>>
>> I have added
python manage.py makemigrations
On Mon, Jul 19, 2021 at 6:07 AM Salima Begum
wrote:
> Hi all,
>
> I have added a new column to the existing model while developing. Then I
> run makemigrations and migrate. It is not applied to the database table
> which is created based on that
> On Mon, 19 Jul 2021 at 07:07, Salima Begum
> wrote:
>
>> Hi all,
>>
>> I have added a new column to the existing model while developing. Then I
>> run makemigrations and migrate. It is not applied to the database table
>> which is created based on that mo
What you can do is just change the name of the model then run the migration
after that change it back to the original name and run the migration again.
This what I do when facing such problem
On Mon, 19 Jul 2021 at 07:07, Salima Begum
wrote:
> Hi all,
>
> I have added a n
gt;>
>> Thanks and regards,
>> Abhishek Choudhury
>>
>> On Mon, 19 Jul 2021 at 10:37 AM, Salima Begum <
>> salim...@rohteksolutions.com> wrote:
>>
>>> Hi all,
>>>
>>> I have added a new column to the existing model while dev
gards,
> Abhishek Choudhury
>
> On Mon, 19 Jul 2021 at 10:37 AM, Salima Begum <
> salim...@rohteksolutions.com> wrote:
>
>> Hi all,
>>
>> I have added a new column to the existing model while developing. Then I
>> run makemigrations and migrate. It is not ap
:
> Hi all,
>
> I have added a new column to the existing model while developing. Then I
> run makemigrations and migrate. It is not applied to the database table
> which is created based on that model. How can I fix this issue? Please help
> me to complete this issue.
>
&
Hi all,
I have added a new column to the existing model while developing. Then I
run makemigrations and migrate. It is not applied to the database table
which is created based on that model. How can I fix this issue? Please help
me to complete this issue.
The below issue I am facing
If it's an existing table, the easiest thing is to go directly to the
db and create the column manually.
On May 1, 4:09 pm, gsmith <[EMAIL PROTECTED]> wrote:
> I'm using sqllite as my database. I've added a Image Field to one of
> my tables. I am wondering how i get my database to register
On 5/1/07, gsmith <[EMAIL PROTECTED]> wrote:
>
> I'm using sqllite as my database. I've added a Image Field to one of
> my tables. I am wondering how i get my database to register this new
> column. I thought running the command 'python manage.py syncdb' would
> update my database. However,
I'm using sqllite as my database. I've added a Image Field to one of
my tables. I am wondering how i get my database to register this new
column. I thought running the command 'python manage.py syncdb' would
update my database. However, after I do that my admin errors out
saying ' no such
18 matches
Mail list logo