Anonymous
Do you type the command in cmd
Anonymous
yupzz
Anonymous
Is that it
Anonymous
Like that's all
Anonymous
Any IDEs I need to write code or something
Anonymous
Is there anything else needed other than that.
Anonymous
my self using pycharm professional to create django application managemnet far away better
Dextroleav
Anonymous
Dextroleav
Anonymous
Oui
❤️
How to install django ??? Using PIP command anybuddy know so help me
Искандар
❤️
Windows
Anonymous
Искандар
❤️
No
❤️
I am use a pycharm softwear
Anonymous
pycharm is a good softwear
Anonymous
But that doesn't affect your setup
Anonymous
https://www.djangoproject.com/start/
Anonymous
Read this maybe?
Chetan
In Django... we use
127.0.0.1:8000/admin
Why there's no need of separate database.. like in php we use xamp or wamp...
Muflone
Chetan
Muflone
Chetan
Okay...
Chetan
Then..?
Muflone
There you can see your database type and location
Chetan
Okay sir !
Chetan
Ty i got your point
Chetan
I also wanna know about..
Why we use postgres with django then...
Muflone
Postgres is a great dbms
Chetan
Like... for the db.. that is quite simple... btt we have inbuilt db
Chetan
With the django
Muflone
Sqlite is a toy
Chetan
Okay... you mean to say that... we replace sqlite with postgres
Anonymous
Chetan
Muflone
Chetan
Muflone
No security, no multiple transactions, no serious locking, no data constraints, no triggers, no stored procedures
Chetan
Okay... sqlite stores data within the django's data and the postgres stored separately??
Chetan
Muflone
Sqlite is a separate project, it's the default database type if not specified, but it's not a Django thing
Muflone
You can use whatever you want,even no database at all with django
Chetan
Chetan
If we dunn use the db
Muflone
Did your doctor prescribed to use a database?
Chetan
😂😂👌🏻
Chetan
No sir
Chetan
My doc prescribed me to eat an apple daily
Muflone
If you don't need a DB you could not having any
Muflone
Great
Leonardo
guys, do you know how to use functional api for enum fields? i'm trying to do:
gender = models.TextChoices('gender', 'MALE FEMALE')
Muflone
Leonardo
model
Leonardo
Model, code or form?
https://docs.djangoproject.com/en/3.0/ref/models/fields/#enumeration-types
Leonardo
thats a enum functional api
Muflone
Sure, so what's the issue?
Leonardo
when i run makemigrations, the field is not recognized
Muflone
Have you defined the internal class like in the example?
Leonardo
Leonardo
i don't need an internal class because labels will be generated automaticaly
Muflone
Ah ok, I got what you mean now
Muflone
Are you using Django 3.0?
Leonardo
Muflone
Your line seems correct, paste your whole model in hastebin
Leonardo
Muflone
What makemigrations reports?
Leonardo
i was wrong.
Leonardo
the correct way is
Leonardo
define the enum using functional api, and then, set it as a choices to a model field
Leonardo
like this year_in_school = models.CharField(
max_length=2,
choices=YearInSchool.choices,
default=YearInSchool.FRESHMAN,
)
Muflone
In the example is not clear indeed