Tag : django

All of Django documentation says request is of type django.http.request.HTTPRequest. I use NGINX -> Waitress WSGI in my development, and I see see request is django.core.handlers.wsgi.WSGIRequest which inherits directly from HTTPRequest. I understand that Django must always run under WSGI, if so a request will always be WSGIRequest. So why does Django documentation always use HTTPRequest

Read more

I created app, which generate pdf file with some content.
After filling form by user it is submitted and after about 10 seconds file preview is opening.
I want to show message that user should wait for file after hiting Submit.
When I add a meesage it shows but not earlier than download start and message it is not visible (it shows too late).
Actually to show the messege I need to comment line return responce<..

Read more

The fact is that I have no experience at all and I use a tutorial from the Internet. This is a lesson: https://proglib-io.turbopages.org/proglib.io/s/p/django-s-nulya-chast-2-registraciya-avtorizaciya-ogranichenie-dostupa-2022-06-08 When I try to implement the user registration function and in fact just copy the actions of the teacher, my site gives the error: TemplateDoesNotExist at /register/
I don’t understand why this is happen..

Read more

I have a problem with send_email by django I tryed gmail and hotmail and email private , all of them return the same error code EMAIL_BACKEND = ‘django.core.mail.backends.smtp.EmailBackend’ EMAIL_HOST = ‘mail.privateemail.com’ EMAIL_HOST_USER = ‘[email protected]’ EMAIL_HOST_PASSWORD = ‘admeralGXG1986’ EMAIL_USE_TLS = False EMAIL_PORT = 465 Error console: ` File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/smtplib.py”, line 398, in getreply line = self.file.readline(_MAXLINE ..

Read more