Mirco
! offtopic
Doragonsureiyā
looks like you need an offtopic group, please continue this conversation at @pythonofftopic
Mirco
Ok done
💪🏻
Mirco
!offtopic
Doragonsureiyā
looks like you need an offtopic group, please continue this conversation at @pythonofftopic
Ismael
Hi i would like to know if there is a way to get informed about new Django releases via emails or any kind of suscription to be updated, thanks in advance
Anonymous
Where we learn django for beginners?
Master
Ismael Oze, you can always watc their github
Master
Where we learn django for beginners?
docs.djangoproject.com/intro/tutorial01
Alex
docs.djangoproject.com/intro/tutorial01
That's actually a hella good example, can recommend too
eKibz
docs.djangoproject.com/intro/tutorial01
https://docs.djangoproject.com/en/2.2/intro/tutorial01/
m0nte cr1st0
Hello. Using globals() variables is a bad practice?
m0nte cr1st0
yes
why?
dont
@badjinganGuy
Master
why?
https://stackoverflow.com/questions/19158339/why-are-global-variables-evil
Master
I am lazy today, so let me google it for you, instead writing my own
m0nte cr1st0
https://stackoverflow.com/questions/19158339/why-are-global-variables-evil
I think this is bad if I create global varible, but I don't create it. I just use already created varible by django.
Master
I think this is bad if I create global varible, but I don't create it. I just use already created varible by django.
Django not used global variables with normal workflow. "config" doesn't count
🎱
hi guys, I need display asynchronously coming data in django template dynamically as they appear, how can I do this ? here my responses from server, I used asyncio/aiohttp Server response from http://google.com/activity: 301 Server response from http://google.com/dmca: 404 Server response from http://google.com/1623: 404 Server response from http://google.com/361: 404 Server response from http://google.com/327: 404 Server response from http://google.com/1028: 404 Server response from http://google.com/328: 404 Server response from http://google.com/series: 404 now I get this to my console but I need pass this to my template as they come
Cesar
Have you tried opening that link?
🎱
I know, it doesn't matter, I just need to display this value into template dynamically
Axmadillo
hi
Ismael
Ismael Oze, you can always watc their github
Of course, but i dont want to check their GitHub everyday in order to stay updated
Master
Of course, but i dont want to check their GitHub everyday in order to stay updated
Where is "Watch" button in github interface for subscription
Bossத்
Hi guys, I'm doing my college project. Web text decoder/encoder. Here the problem is my examiner expects the text to be decoded when the user is typing synchronously, I've tried jquery it worked but is refreshing the page on keystroke. Expectation is text to be decoded without refresh while typing in the same page. I've tried AJAX from multiple source, it is giving network error on each keystroke. Please someone help me on this... I have to submit this project by this 15th Nov.
Ismael
Where is "Watch" button in github interface for subscription
Thanks a lot, didnt know about that option on github
Андрей
https://stackoverflow.com/questions/58838052/best-way-to-rotate-django-queryset
Yash
A silly doubt, my views.py is print("something") def home(request) : my logic render(template) Why is print function running when I am calling only home function? Does Django runs entire views.py everytime?
Yash
Suppose I need an array to work with in my views.py but it resets everytime on page refresh. So what can I do to have an array which I can change when I want to?
Yash
I need to work with an array for my logic. To store a number for each item in my model.
Anonymous
I need to work with an array for my logic. To store a number for each item in my model.
You'd probably put that within the function, no? How else would it persist without a database?
Yash
Actually i can't put in my function because array gets reset everytime on function call. One method I used is to store in arrayfield in postgres db which works fine, but what to do if I want to work with MySQL?
Anonymous
Actually i can't put in my function because array gets reset everytime on function call. One method I used is to store in arrayfield in postgres db which works fine, but what to do if I want to work with MySQL?
You're talking about 2 different DB. Why would you use 2 different DB? If its DB sharding, I'd understand but Postgres switching to MySQL and switch back? That doesn't work.
Yash
No, actually I am asking if I am working only with MySQL then how can I implement array
Yash
Doesn't MySQL also allow arrays?
No, atleast what I have searched
Sultonbek Ikromov
Can someone explain what is action in Form? Why we need this? Why it is important and what it actually does
Prasanthari
Can someone explain what is action in Form? Why we need this? Why it is important and what it actually does
Action is nothing but,what to do on u click submit it search for the view function and so something!!
Rohan
Did anyone worked with Django+ AWS?
Jay
Hello guys, i have an endpoint ( handled by a function in my views.py ) that receives POST data. But when i try redirecting to other urls from that view it doesnt go through. But when i redirect from other functions that dont receive POST data the redirect works well. Is it an issue with POST ??
Sultonbek Ikromov
Sultonbek Ikromov
I mean action=“views.py”?
Master
No. You should use url of your function for form processing
Prasanthari
so in that case I shoul give a path of my view.py file?
No u need to specify the name of that view
Sultonbek Ikromov
No u need to specify the name of that view
you mean the name of the function inside of my views.py?
Prasanthari
you mean the name of the function inside of my views.py?
Yes,what u need to do with that data like validation, saving etc
Jay
you mean the name of the function inside of my views.py?
<form action="myfunction" method="post"></form> # where myfuntion is name of function in views.py def myfunction(request):
Sultonbek Ikromov
ooh I got it
Sultonbek Ikromov
Thank you so much guys
Prasanthari
ooh I got it
Instead of using Html form try django inbuilt form
Sultonbek Ikromov
Prasanthari
What u want to do ??
Mendes
Put what you want on the model...
Sultonbek Ikromov
What u want to do ??
I mean change the size of the inputs or put that into the grid
Mendes
But I agree that for styling purposes it's really not good...
Prasanthari
Jay
But how I could costumize it?
You can create you normal form using html then access your inputs from the view that renders the tempate containing your form using request.GET.get[name_of_field]
Mendes
Only if you need something more complex would you need a HTML forma...
Mendes
Go with Django forms, much easy...
Sultonbek Ikromov
Sultonbek Ikromov
this group is amazing
Jay
Yeah this is what I am doing now
What do you mean by customaziation?
Sultonbek Ikromov
you guys are super
Mendes
Are you being sarcastic?
Prasanthari
Anyone used django with reactjs ?? Is that worth learning?
Sultonbek Ikromov
Are you being sarcastic?
no, why. I am seriously