Try DJANGO Tutorial - 11 - Change a Model

preview_player
Показать описание
Try DJANGO Tutorial series is here to teach you Django bit by bit.

Рекомендации по теме
Комментарии
Автор

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

hosmanadam
Автор

thanks for this video im looking for this video to add something to my model. Thank you very much.im a great fan of yours

sanoshjacob
Автор

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

felipelobato
Автор

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

evakuator
Автор

I cannot understand 2:08 to 3:30. I am not having any init.py under my migrations. Any help on this?

proteetiprova
Автор

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...

suibaba
Автор

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 (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.

gaganchhabra
Автор

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 NOT NULL constraint failed: posts_post.html_field" .
Can you help me with this error ?

technicalilm
Автор

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

maheshgoud
Автор

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

DEEPAKKUMAR-wkpk
Автор

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

shahidullahmiazi
Автор

if you are in linux or mac i dont knox write a simple bash programme
putting this in it
and each time you use python manage.py makemigrations and python manage.py migrate use this here are the commends
nano mig.sh
copy past this
#! bin/bash
./manage.py makemigrations
./manage.py migrate


and then Ctrl C
Y
Enter
sudo chmod 777 mig.sh
run it with ./mig.sh

amirchehih