I want to inject a specific HTML comment at the end of every render of HTML in Django. I don’t want to write that at the end of base.html template, but want it to be injected by code. Is there a way for me to ..
Tag : django
I have a 2-columns (div)..
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
when i try to create new employee in my project the instance has been save but imag..
InternalError at /admin/entities/branch/add/ The type of building does not match the expected type: ‘Branch’ CONTEXT: PL/pgSQL function check_outlet_type_consistency() line 9 at RAISE How show in default django admin this error? googled, 🙁 but no i..
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<..
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..
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 ..
I need a little bit of help. I’m working on a Django project, it’s like a blog. I have implemented localization and added couple languages. Now I would like to develop a customized content for specific re..
I have created a model in my Django project. By mistake, I set the date_created
and date_updated
fields wrong as fo..