Anders (izzno / gooood) 🇳🇴
Yeah the source code doesnt seem to have any, but I found a memcached issue that limits it to 30 days. I know you can make a middleware that resets the autologout on every request, but that seems inefficient as django is not asyncronous.
Anders (izzno / gooood) 🇳🇴
yes, Im sure it will...
Anders (izzno / gooood) 🇳🇴
I am writing a lot in node these days... it's abstraction is about 10% of python's .... Python / Django feels like cheating really... It's almost to good to be true...
Oğuzhan
Prons*
Mirco
What will be the cons or pros of it?
https://github.com/andrewgodwin/deps/blob/async/draft/0009-async.rst
Anders (izzno / gooood) 🇳🇴
Asyncrounes code is harder to write, it's alot more to keep track of... You get alot of wierd things happening if you forget :D
Anders (izzno / gooood) 🇳🇴
And jumping between node and python you forget, alot! :)
Mirco
Python very bad at multi threading
No worries, lots of good guys are working hard to make also that topic better 😊
Anders (izzno / gooood) 🇳🇴
Asynchronous is highly overrated for webapps... unless you write facebook/instagram...
Anders (izzno / gooood) 🇳🇴
The "efeicency" trap is huge ...
Anders (izzno / gooood) 🇳🇴
Dont do it until you need it :D
Mirco
Dont do it until you need it :D
💪🏻💪🏻
Oğuzhan
I love python but go is pretty good at this kind of tasks
Mirco
I love python but go is pretty good at this kind of tasks
Because python is not for every use imho, if u need something else that does a better job, go grab it
Oğuzhan
Yeah you are right
Anders (izzno / gooood) 🇳🇴
yeah it's the whole linux vs windows again out there, look at it as tools, use the tool you need to get the job done. Or the one you know.
Oğuzhan
Yeah but to know best tool for you, you need to discover it deeply
Anonymous
can we send emails from other mails except gmail? using the smtp library of python?
Anders (izzno / gooood) 🇳🇴
You can use smtp directly in django
Anders (izzno / gooood) 🇳🇴
just look in the docs on email for django...
Anonymous
Hello everyone, I can not solve the problem with no such table
Anonymous
who can write in private messages with screenshots
Anonymous
Yes
Anonymous
Makemigrations and migrate..
Anonymous
In file db.sqlite3 there is a line "human_id" INTEGER,
Anonymous
Exception Value: no such column: todolist_todolist.human_id
El
I have two models but I want to extract data from the second part of the search that the user does, for example, enter your code and when you click the search button you will show your information and your purchases that you have made
El
I want to extract the data but I still can not get it done
Muflone
what exactly you tried?
El
what exactly you tried?
to make my search engine I use a ListView class and I get the user but what I need is that when I get the user I want to show him his data that I have in the second model
Muflone
we don't need your needs
Muflone
if you want help then you must ask a techical question
El
we don't need your needs
I need to extract data from my second model but depending on the ID of the first model?
Muflone
SecondModel.objects.filter(id=first_object.id)
Muflone
I've an issue with xhtml2pdf and tables. when a table doesn't fix in the current page, the whole table is moved to the next page. is there a known way to avoid it and to break the table on the page footer and let it continue on the next page? CSS page-break-*: avoid is not working
Sirius
Hi everybody! ValueError at / The 'image' attribute has no file associated with it.
Muflone
It has no image set
Sirius
It has no image set
could you show me how to do it? I'm new in django
Alaa
Hi guys anyone knows what i need or how to make a contact us form with django and react
Marcelo A.
https://www.techempower.com/benchmarks/#section=data-r16&hw=ph&test=db&l=hr9zpb
Sirius
Hi guys anyone knows what i need or how to make a contact us form with django and react
Django Contact Form Tutorial - William Vincent https://wsvincent.com/django-contact-form/
Alaa
Am having a problem how to connect it to react
👍
Hi guys anyone knows what i need or how to make a contact us form with django and react
https://stackoverflow.com/questions/42297614/django-forms-with-reactjs
Alaa
Great 🌟
Sirius
Am having a problem how to connect it to react
https://stackoverflow.com/questions/42297614/django-forms-with-reactjs
El
can a join be made with two models that are found in different apps?
Anonymous
Hi! How can I do this:
Anonymous
https://stackoverflow.com/questions/56616192/double-check-e-mail-validation-at-the-django-backend
Anonymous
?
Михаил
Hi! How can I do this:
Why single validation is not sufficient?
Muflone
could you show me how to do it? I'm new in django
You have an image field , you have to set an image to the field. Just put the ImageField in the form and let the user choose an image
Iron
Guy im new to django how does one get the user data after authentication Eg user-> id or ...
xarala221
Guy im new to django how does one get the user data after authentication Eg user-> id or ...
Like every object in Python you can access the attributes of the user by dot notation , exemple : user.name and so on
Iron
Like every object in Python you can access the attributes of the user by dot notation , exemple : user.name and so on
class ProfileView(LoginRequiredMixin, ListView): def get_queryset(self): return UserDetail.objects.filter(user_id=self.request.user.id)
Iron
I get an error that name 'UserDetail' is not defined
Iron
and that is the table in the database
Iron
how do i go about this in the books nobody did that
Iron
Have you imported it ?
from . import models
Iron
About what ?
no body defines table it automatically just works
Mirco
no body defines table it automatically just works
You need to study python before using Django 😊
Iron
You need to study python before using Django 😊
I dont know how that will help since its the framework that im having difficulty wij
Iron
with
Iron
Anyway the challenge is this Im using a ListView
Iron
it works however I want to use it in a way it will get some specific data using the users value
Anonymous
Why single validation is not sufficient?
Hello my friend! So, I need some advice... Do you have a really good JS that solves the problem at the Frontend? Thanks!
Venkatesh
Hello friends I need help for learning rest API I am new to django and web development please help me