Try DJANGO Tutorial - 11 - Change a Model

Try DJANGO Tutorial - 11 - Change a Model

CodingEntrepreneurs

5 лет назад

35,365 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Felipe Lobato
Felipe Lobato - 26.05.2022 14:48

Hey man! Gold! How we can change a type using the migrations?

Ответить
Cuong
Cuong - 22.11.2021 19:42

Thanks

Ответить
Archit Verma
Archit Verma - 26.07.2021 17:02

thanks homie

Ответить
Ghiles Djebara
Ghiles Djebara - 24.10.2020 20:32

Thank you

Ответить
Kevin Tempel
Kevin Tempel - 21.10.2020 22:55

Thanks!

Ответить
Kevin Tempel
Kevin Tempel - 24.09.2020 20:35

Thank you!

Ответить
suibaba
suibaba - 27.05.2020 20:06

TypeError at /admin/accounts/product/
argument must be int or float
this type of error is coming out in admin when DecimalField model is using...suggest me the solutions please sir...

Ответить
mahesh goud
mahesh goud - 02.01.2020 13:01

I am getting '[42S22] [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Invalid column name 'pm_comments' while calling makemigrations

Ответить
Ramiz
Ramiz - 03.12.2019 23:49

+

Ответить
Adam Hosman
Adam Hosman - 29.06.2019 00:34

Cool tutorial. My favorite setting so far is (blank=True, null=False).

Ответить
gagan chhabra
gagan chhabra - 05.02.2019 18:26

Hi Justin, Thanks for the awesome series ,
I am using MySql as my DB and when I change something in the model and try to migrate I get error "django.db.utils.OperationalError: (1067, "Invalid default value for 'id'")". I couldn't find how to fix this. I was trying to make a ForeignKey for a model into another model.
Please help.

Ответить
course student
course student - 01.02.2019 03:53

This tutorial is absolute gold

Ответить
evakuator
evakuator - 23.08.2018 16:35

Is it redundant to use null=true when creating string based fields like TextField or CharField? What would be the difference between empty string and null? Sorry for my english, I am non-native speaker. Thank in advance

Ответить
Amaan
Amaan - 17.07.2018 09:52

I'm working on a blog app, i added a field a new field, and followed the "step 1) Provide one-off element .............." but when i run makemigrations i got this error "django.db.utils.IntegrityError: NOT NULL constraint failed: posts_post.html_field" .
Can you help me with this error ?

Ответить
Shahid ullah Miazi
Shahid ullah Miazi - 10.07.2018 07:45

Have Django built in variable? If I use feature then raise wrong but featured variable is ok?

Ответить
Shahid ullah Miazi
Shahid ullah Miazi - 06.07.2018 08:31

Can I use mysql?

Ответить
DEEPAK KUMAR
DEEPAK KUMAR - 03.07.2018 03:05

Hi Justin michel...I have a question Can I use django rest framework with Android...???

Ответить