Re: SMTP Authentification error

2022-04-26 Thread Julio Cojom
Seem pretty clear, you are calling db user and db password instead of email and email password, *EMAIL_HOST_USER = os.environ.get('DB_USER')* *EMAIL_HOST_PASSWORD = os.environ.get('DB_PASSWORD')* Regards, Julio Cojom El mar, 26 abr 2022 a las 23:38, 'Delvin Alexander' via Django users (< django

Re: Error django.db.utils.OperationalError: no such column:

2022-04-26 Thread RANGA BHARATH JINKA
Hi, Run python manage.py makemigrations python manage.py migrate Thanks and Regards J. Ranga Bharath Cell: 9110334114 On Tue, 26 Apr 2022, 1:07 pm Israel Lewis, wrote: > Hello guys, > > I'm having an error in my models when I add the FK to the faculty or the > student. > model.py > from dja

SMTP Authentification error

2022-04-26 Thread 'Delvin Alexander' via Django users
Hello everyone, May you please assist in informing me on what i need to do to resolve this issue. - *SMTPAuthenticationError at /password-reset/* *- (535, b'5.7.8 Username and Password not accepted. Learn more at\n5.7.8 https://support.google.com/mail/?p=BadCredentials j64-20020a62c54300

Django Rest Framework with self nested serializers

2022-04-26 Thread Sencer Hamarat
Hello people, There are two models that are related to each other. class Parent(models.Model): name = models.CharField... class Child(models.Model): parent = models.ForeignKey(Parent) value = models.CharField... And there is a serializer built on "Child" model: class ChildSerialize

RE: django.db.utils.InterfaceError: connection already closed

2022-04-26 Thread peter.wagemans via Django users
Michele, > ... the database connection seems to shut down randomly. Could be the same problem as I described in Database "InterfaceError connection already closed" with asgi. https://groups.google.com/g/django-users/c/RmtFuCVLfPE/m/dBQjq7FsBQAJ Django doesn't stick to the same thread (s

Help! I begginer...

2022-04-26 Thread Ricardo Pereira de Azevedo
Error: File "C:\Users\tecnico.ricardo\PycharmProjects\pythonProject01\venv01\lib\site-packages\django\db\models\sql\query.py", line 11, in from collections import Counter, Iterator, Mapping, OrderedDict ImportError: cannot import name 'Iterator' from 'collections' (C:\Users\tecnico.rica

Class based views with forms

2022-04-26 Thread alex smolyakov
Can anyone explain me how to make send email form on page. So my forms.py class ContactForm(forms.Form): name = forms.CharField(required=True) last_name = forms.CharField() adults = forms.IntegerField() children = forms.IntegerField() email = forms.EmailField(required=True) m

Re: Error django.db.utils.OperationalError: no such column:

2022-04-26 Thread Miracle
Did you run migrations??? You should run `python manage.py makemigrations` and then `python manage.py migrate` On Tue, Apr 26, 2022 at 8:37 AM Israel Lewis wrote: > Hello guys, > > I'm having an error in my models when I add the FK to the faculty or the > student. > model.py > from django.db im

Re: Support d'aide en Django

2022-04-26 Thread Israel Lewis
hello i am new in django and i would like to use it with react native. and for that I have to combine django and postgres . need a guide, any help will be precious to me (support, site, course etc...) cordially Hello I think you can go about this in two ways, 1. you can start your project with

Re: Django FormTools

2022-04-26 Thread Israel Lewis
1. Are you using a model form? if so, after you have check the request you can use Post.save()***post as the model name for example. 2. for styling use https://django-crispy-forms.readthedocs.io/ or create widgets with in the for and add the classes for each input. Hope this help

Error django.db.utils.OperationalError: no such column:

2022-04-26 Thread Israel Lewis
Hello guys, I'm having an error in my models when I add the FK to the faculty or the student. model.py from django.db import models # Create your models here. class Student(models.Model): first_name = models.CharField(max_length=100) last_name = models.CharField(max_length=100) reg_no = model