Anonymous
Dave
is that channel name?
its a telegram command for bot respectively for each group, in this group it will command the bot to give you the link to the python resources channel
Денис
Hey do I need to create users too??
No, you don’t. But only thus you can have a unique card set for every visitor
Денис
Shikhar
So when I create another model should I write id as variable in it?
Денис
So when I create another model should I write id as variable in it?
Any model has an id field automatically. Seems like you didn’t bother reading the docs at all
Shikhar
Not much. So there is no need to declare any variable inside it??
Денис
But please go read the docs. You ask too much questions that are 100% covered by them
Shikhar
Ya Thanks.
Anonymous
How can I prefill the username value in the login page? I am using Django LoginView
Anonymous
like the username field with already a username in
Ismael
If your username field has "username" as name
Ismael
Chrome and firefox browser will autocomplete it automatically if you mark remember my account or something like that
Ismael
You can't provide an initial data from server side cause it is imposible to know who is trying to login
Ismael
But if you want always the same username as initial data you can do it by overrading initial_data as attribute of the LoginView class
Ismael
Just assign a dict with key username and the value you want
Ismael
You can override get_initial method too as well returning the dict
Ismael
Hope my explanation is helpful enough for you ;)
Anonymous
It is, thanks
Mendes
How can I find out if a forloop.counter is null?
Dave
do u know anything good gor rest apis ?
I believe there are some you can pick available on udemy, mostly on how to do it using the infamous django-rest-framework package for django
Sunil
Guys I understand functions and why it is written however I am not able to write any functions on my own. I understand the logic when I refer YouTube or Django documentation. Is there any reference document where there are mentioned multiple functions. Just to get it right n use it as reference guide
Ghorz
No one knows what the logic is but you. So startup yiur pc, place your fingers on the keypads and put your brains to work.
Sahul
How create a user login using django with database mongo db?
Sahul
I have a error when login. I think there is an error on connection
Anonymous
Deploying machine learning model in django if anyone knows guide me
Sahul
did u create user ?
Yes , I created the user directly in mongoDb
Orack
create using django
Anonymous
Django with ml anyone plz
Sultonbek Ikromov
Can someone tell how to set background image in django?
Orack
Django with ml anyone plz
u can use flask if it isnt much complex
Orack
how can i update a unique=True field ? Model.objects.update_or_create this aint working
Ghorz
Django with ml anyone plz
I can show you how
Sultonbek Ikromov
Template?
Yes to template
Sultonbek Ikromov
From css
Sultonbek Ikromov
Template?
How to set background image in css
Sultonbek Ikromov
Background-image: url(“statics/image/photo.jpg”)
Sultonbek Ikromov
I tried this but didn’t work
Flavien
How to set background image in css
background-image: url("static "image/photo.jpg");
Sultonbek Ikromov
could you write exact sytax
Mirco
background-image: url("static "image/photo.jpg");
this is valid when you have css into html templates
Mirco
into css files it won't work
Flavien
this is valid when you have css into html templates
Yeah, if it's in the css files, then it's not that syntax. I thought it was.
Milan
Hey guys, I just wanted to know how you guys host Django applications on an EC2 instance or maybe a droplet. Do you guys use nginx and supervisor with gunicorn? Or any other stack? It would also be great if you guys could share a sample configuration files too... I did Google this but there were quite a bit of conflicting (or old) information and hence I'm asking you guys.
Sultonbek Ikromov
Yeah, if it's in the css files, then it's not that syntax. I thought it was.
background-image: url('../images/home_wallpaper.jpg'); this one was useful
Sultonbek Ikromov
thanks for quick response guys
Naruto
https://codingninjas.in/events/winter-of-codes?campaign=winterofcodes&source=ca590
Muflone
Django 3 released! https://www.djangoproject.com/weblog/2019/dec/02/django-3-released/
drunktimelord
nice
drunktimelord
no need to study tango with django 2 then
Orack
I was learning django2
Muflone
Don't worry, Django 1.11 is still supported, the same will happen to 2.x
Muflone
and I just did only 2 new projects in django 2 ☹️
Take the opportunity to do 3 new projects in Django 3 then 😏
cj
@c0x6A do u know about this
show your code and give context 🤷🏻‍♂️
cj
we will tell you to google it 🤷🏻‍♂️ as there are many updated posts about that
there's a good posts about that topic in Digital Ocean blog,