Youngdevps
anyone looking for a great course playlist. just type learn Django with thenewboston on youtube
Pooja
Hllo everyone
Pooja
Plzz anyone suggest me how I work on django online tool?
Alex
Still solving
Hmm pm me
Ram
Response obj has no attribute get()
Prasanthari
There's no attribute in get('attribute'
Prasanthari
U need to specify something to get('title') like this
Ghorz
Response obj has no attribute get()
What kind of object is it a dictionary item
Pooja
Plzz tell me how to use online django practice tool
Serge
Hello everyone, can anyone recommend me a good course or tutorial to begin with Django?
Anonymous
Plzz tell me how to use online django practice tool
You can run django project in Android device also
V@RG..
I have a question..!!! how do I get the value of the third relationship??
V@RG..
this is my Model https://dpaste.de/pZRW
V@RG..
help me please
Alex
Sorry just saw you need the python equivalent of your sql
Youngdevps
Plzz anyone suggest me how I work on django online tool?
Don't understand but if u are using Google cloud. Your docker and appengine could be great to server and work online
V@RG..
help me please
Pravin
How do I start with payment integration in my Django web app? Does anyone know a good tutorial for payments?
Pravin
Youtube sir
Ok thanks 😊
#
Hello everyone, can anyone recommend me a good course or tutorial to begin with Django?
Codingentreprener youtube channel building e- commerce site by Django
Rounak
Anyone knows how to download videos from protected websites
Doragonsureiyā
Anyone knows how to download videos from protected websites
looks like you need an offtopic group, please continue this conversation at @pythonofftopic
professor
I Have a question, what service for SMS service tokens for one password time would u use?
John
How can I display a queryset in my template? im using jinja templating. .
Alex
for x in xxx
John
hmm. . from the start the company is using jinja for templating. .
John
With a for loop
okie, Thanks for this. . but how can I display my data if it is with a relationship(many-to-one)
John
with django? 🤔 weird 🤷🏻‍♂
hmm. . why? isnt it good using jinja with django?. .
cj
hmm. . why? isnt it good using jinja with django?. .
Django has its own "Django templates", which Jinja was created from 🤷🏻‍♂ in other words, Jinja is a child of Django templates
cj
so, using Jinja with django is kinda redundant and useless 🤷🏻‍♂
John
so, using Jinja with django is kinda redundant and useless 🤷🏻‍♂
Oh! i see, thanks for this information sir. For you what is the best templating tech to use with jinja?. .
cj
Oh! i see, thanks for this information sir. For you what is the best templating tech to use with jinja?. .
for something that doesn't have a built-in templating engine —that Django has out of the box—, like Flask, CherryPy, BottlePy, FastAPI and other small libraries/frameworks
Alex
okie, Thanks for this. . but how can I display my data if it is with a relationship(many-to-one)
For the sake of solving your question, you loop with for x in xxx and use the values from x.__str__ for example to display the single values in the template
John
Im also having a problem with this one. When my DB is empty. My query set is something like this: <QuerySet [None]> How can I eliminate this "None" when I'am displaying it to my views/template?. .
Alex
It comes down to: {% for item in queryset %} {{ Item.data }} {% endfor %}
Alex
Wrap the whole for in an if
Alex
{% If queryset: %} For blah blab blah you got it {% endif %}
Alex
No use in displaying empty values m8
John
Ok, i'll just make a condition if the queryset is "None", i'll just display a message or something like that. .
professor
When to use view or formview or *view?
cj
When to use view or formview or *view?
when you will use a form or not 🤷🏻‍♂
professor
when you will use a form or not 🤷🏻‍♂
I also can use a view , but Exactly?
Alex
When to use view or formview or *view?
If th usecase matches the possibilities provided
professor
yes
Why too much views?
John
{% for item in queryset %} {{ item }} {% empty %} <span> No data</span> {% endfor %} so, no need to wrap with an if/else
{% empty %} im a little bit of confuse about this one. is it a syntax or a variable name?. .
cj
Why too much views?
because each one has its own use case
Alex
it's the way a for loop works in django templates
I did very messy templates i now see
professor
For 2FA , what provider would u use?
professor
Sms
cj
Sms
twilio is a good one
Alex
@c0x6A i like how you think haha
professor
cj
@c0x6A i like how you think haha
I misread what he wrote 😂
Alex
twilio is a good one
Indeed, but setting up an isdn ready box aint too hard too
Alex
That's why i asked for the country
professor
Is there any provider for testing or freemium?
Alex
Check the twilio site out, for mail they have a free plan, dunno for sms tho
Alex
Do your own research damn it haha
Murshid
Twilio give free 15 dollar for message testing
professor
I have the maill setup , but i was looking something for production and testing sms gataway