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
Okay I have pycharm installed
if u are student u get pycharm professional free from github student develper pack
Dextroleav
Okay I have pycharm installed
As pycharm is heavy u can also use vs code or sublime text
Anonymous
Get a code editor
I got pycharm. Am I good to go??
❤️
How to install django ??? Using PIP command anybuddy know so help me
❤️
Windows
Искандар
❤️
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...
Chetan
It is indeed, but included in your setup
Can you please explain a little bit!
Muflone
Can you please explain a little bit!
look your settings.py file
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
Muflone
Mysql
🤮
Chetan
🤮
😂😂👌🏻
Muflone
Okay... you mean to say that... we replace sqlite with postgres
You should, it depends on your needs Firefox uses sqlite for history,cookies and not so important data. It's not great for serious needs
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??
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
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')
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
Have you defined the internal class like in the example?
functional api example has no internal class
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?
Muflone
Your line seems correct, paste your whole model in hastebin
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