Re: SMTP Authentification error

2022-04-27 Thread Vishesh Mangla
I meant Gmail api.I was also stuck with Gmail.Also may 31 onwards Gmail
will block all third party apps which simply login with email and password.

On Thu, 28 Apr 2022, 11:02 Vishesh Mangla, 
wrote:

>
> On Thu, 28 Apr 2022, 11:02 Vishesh Mangla, 
> wrote:
>
>> Use Google api.
>>
>> On Thu, 28 Apr 2022, 10:29 'Delvin Alexander' via Django users, <
>> django-users@googlegroups.com> wrote:
>>
>>> okay i did both but now i am getting this error. Any clue on why?
>>>
>>> *SMTPSenderRefused at /password-reset/*
>>>
>>>
>>> *(530, b'5.7.0 Authentication Required. Learn more at\n5.7.0
>>> https://support.google.com/mail/?p=WantAuthError
>>> 
>>> w137-20020a62828f00b0050d2f9c3409sm14545822pfd.199 - gsmtp',
>>> 'webmaster@localhost')*
>>> On Wednesday, April 27, 2022 at 12:27:02 AM UTC-7 dashlaksh...@gmail.com
>>> wrote:
>>>
 Check whether you have turned on less secure apps or not.

 On Wed, Apr 27, 2022, 11:07 'Delvin Alexander' via Django users <
 django...@googlegroups.com> wrote:

> 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-20020a62c54300b0050d260c0ea8sm13366402pfg.110 - gsmtp')*
>
>
> I included the 16 character code to my environment variable and called
> it in my settings.pymfile,  but still the error occurs. Also here is my
> settings.py file:
>
> - *EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'*
> *EMAIL_HOST = 'smtp.gmail.com '*
> *EMAIL_PORT = 587*
> *EMAIL_USE_TLS = True*
> *EMAIL_HOST_USER = os.environ.get('DB_USER')*
> *EMAIL_HOST_PASSWORD = os.environ.get('DB_PASSWORD')*
>
> --
>
 You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c18935a8-43bf-4a15-a5ba-95209009498dn%40googlegroups.com
> 
> .
>
 --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/a6f92133-32db-4f4a-ae46-bb1f7644b431n%40googlegroups.com
>>> 
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACaE8x6OC7Uquk%2BYMoAWvwcUTRAgQnHPG513Ao%3DgzE4V6RPnfw%40mail.gmail.com.


Re: SMTP Authentification error

2022-04-27 Thread Vishesh Mangla
On Thu, 28 Apr 2022, 11:02 Vishesh Mangla, 
wrote:

> Use Google api.
>
> On Thu, 28 Apr 2022, 10:29 'Delvin Alexander' via Django users, <
> django-users@googlegroups.com> wrote:
>
>> okay i did both but now i am getting this error. Any clue on why?
>>
>> *SMTPSenderRefused at /password-reset/*
>>
>>
>> *(530, b'5.7.0 Authentication Required. Learn more at\n5.7.0
>> https://support.google.com/mail/?p=WantAuthError
>> 
>> w137-20020a62828f00b0050d2f9c3409sm14545822pfd.199 - gsmtp',
>> 'webmaster@localhost')*
>> On Wednesday, April 27, 2022 at 12:27:02 AM UTC-7 dashlaksh...@gmail.com
>> wrote:
>>
>>> Check whether you have turned on less secure apps or not.
>>>
>>> On Wed, Apr 27, 2022, 11:07 'Delvin Alexander' via Django users <
>>> django...@googlegroups.com> wrote:
>>>
 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-20020a62c54300b0050d260c0ea8sm13366402pfg.110 - gsmtp')*


 I included the 16 character code to my environment variable and called
 it in my settings.pymfile,  but still the error occurs. Also here is my
 settings.py file:

 - *EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'*
 *EMAIL_HOST = 'smtp.gmail.com '*
 *EMAIL_PORT = 587*
 *EMAIL_USE_TLS = True*
 *EMAIL_HOST_USER = os.environ.get('DB_USER')*
 *EMAIL_HOST_PASSWORD = os.environ.get('DB_PASSWORD')*

 --

>>> You received this message because you are subscribed to the Google
 Groups "Django users" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to django-users...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/c18935a8-43bf-4a15-a5ba-95209009498dn%40googlegroups.com
 
 .

>>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/a6f92133-32db-4f4a-ae46-bb1f7644b431n%40googlegroups.com
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACaE8x5%3DhYst21QVxiMuTX%2Bi2zGnURGgkzjQ0dafP_MpTRT1MA%40mail.gmail.com.


Re: SMTP Authentification error

2022-04-27 Thread Vishesh Mangla
Use Google api.

On Thu, 28 Apr 2022, 10:29 'Delvin Alexander' via Django users, <
django-users@googlegroups.com> wrote:

> okay i did both but now i am getting this error. Any clue on why?
>
> *SMTPSenderRefused at /password-reset/*
>
>
> *(530, b'5.7.0 Authentication Required. Learn more at\n5.7.0
> https://support.google.com/mail/?p=WantAuthError
> 
> w137-20020a62828f00b0050d2f9c3409sm14545822pfd.199 - gsmtp',
> 'webmaster@localhost')*
> On Wednesday, April 27, 2022 at 12:27:02 AM UTC-7 dashlaksh...@gmail.com
> wrote:
>
>> Check whether you have turned on less secure apps or not.
>>
>> On Wed, Apr 27, 2022, 11:07 'Delvin Alexander' via Django users <
>> django...@googlegroups.com> wrote:
>>
>>> 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-20020a62c54300b0050d260c0ea8sm13366402pfg.110 - gsmtp')*
>>>
>>>
>>> I included the 16 character code to my environment variable and called
>>> it in my settings.pymfile,  but still the error occurs. Also here is my
>>> settings.py file:
>>>
>>> - *EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'*
>>> *EMAIL_HOST = 'smtp.gmail.com '*
>>> *EMAIL_PORT = 587*
>>> *EMAIL_USE_TLS = True*
>>> *EMAIL_HOST_USER = os.environ.get('DB_USER')*
>>> *EMAIL_HOST_PASSWORD = os.environ.get('DB_PASSWORD')*
>>>
>>> --
>>>
>> You received this message because you are subscribed to the Google Groups
>>> "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/c18935a8-43bf-4a15-a5ba-95209009498dn%40googlegroups.com
>>> 
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a6f92133-32db-4f4a-ae46-bb1f7644b431n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACaE8x6hsZFb8%3DzReCcFyx0eKgjvfTgqLEUu_USBz5D1ppsxKQ%40mail.gmail.com.


RE: SMTP Authentification error

2022-04-27 Thread ngallen4
I had the same issue before I resolve by Login to my Gmail account via browser 
on the same computer then go back to my project it works

Otherwise do the followings

i. Allow access to less secure app for your Gmail account

ii.Make sure you don’t send bulk emails, normally Gmail block your 
account if you send bulk emails

iii.   Debug to see if  os.environ.get(‘DB_USER’) and 
os.environ.get(‘DB_PASSWORD’) are your Gmail credentials (I thought dB refer to 
database credentials) 

 

 

 

From: 'Delvin Alexander' via Django users  
Sent: 28 April 2022 07:59
To: Django users 
Subject: Re: SMTP Authentification error

 

okay i did both but now i am getting this error. Any clue on why?

 

SMTPSenderRefused at /password-reset/

 

(530, b'5.7.0 Authentication Required. Learn more at\n5.7.0 
https://support.google.com/mail/?p=WantAuthError 
w137-20020a62828f00b0050d2f9c3409sm14545822pfd.199 - gsmtp', 
'webmaster@localhost')

On Wednesday, April 27, 2022 at 12:27:02 AM UTC-7 dashlaksh...@gmail.com 
  wrote:

Check whether you have turned on less secure apps or not.

 

On Wed, Apr 27, 2022, 11:07 'Delvin Alexander' via Django users 
mailto:django...@googlegroups.com> > wrote:

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-20020a62c54300b0050d260c0ea8sm13366402pfg.110 - gsmtp')

 

 

I included the 16 character code to my environment variable and called it in my 
settings.pymfile,  but still the error occurs. Also here is my settings.py file:

 

- EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

EMAIL_HOST = 'smtp.gmail.com  '

EMAIL_PORT = 587

EMAIL_USE_TLS = True

EMAIL_HOST_USER = os.environ.get('DB_USER')

EMAIL_HOST_PASSWORD = os.environ.get('DB_PASSWORD')

-- 

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users...@googlegroups.com  .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c18935a8-43bf-4a15-a5ba-95209009498dn%40googlegroups.com
 

 .

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com 
 .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a6f92133-32db-4f4a-ae46-bb1f7644b431n%40googlegroups.com
 

 .

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/007e01d85abe%2455e69310%2401b3b930%24%40gmail.com.


Re: SMTP Authentification error

2022-04-27 Thread 'Delvin Alexander' via Django users
okay i did both but now i am getting this error. Any clue on why?

*SMTPSenderRefused at /password-reset/*


*(530, b'5.7.0 Authentication Required. Learn more at\n5.7.0 
https://support.google.com/mail/?p=WantAuthError 
w137-20020a62828f00b0050d2f9c3409sm14545822pfd.199 - gsmtp', 
'webmaster@localhost')*
On Wednesday, April 27, 2022 at 12:27:02 AM UTC-7 dashlaksh...@gmail.com 
wrote:

> Check whether you have turned on less secure apps or not.
>
> On Wed, Apr 27, 2022, 11:07 'Delvin Alexander' via Django users <
> django...@googlegroups.com> wrote:
>
>> 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-20020a62c54300b0050d260c0ea8sm13366402pfg.110 - gsmtp')*
>>
>>
>> I included the 16 character code to my environment variable and called it 
>> in my settings.pymfile,  but still the error occurs. Also here is my 
>> settings.py file:
>>
>> - *EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'*
>> *EMAIL_HOST = 'smtp.gmail.com '*
>> *EMAIL_PORT = 587*
>> *EMAIL_USE_TLS = True*
>> *EMAIL_HOST_USER = os.environ.get('DB_USER')*
>> *EMAIL_HOST_PASSWORD = os.environ.get('DB_PASSWORD')*
>>
>> -- 
>>
> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/c18935a8-43bf-4a15-a5ba-95209009498dn%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a6f92133-32db-4f4a-ae46-bb1f7644b431n%40googlegroups.com.


Re: SMTP Authentification error

2022-04-27 Thread 'Delvin Alexander' via Django users
i thought that because i had that as my variable name that i had to call 
upon that name. Thank you, i will give that a try. 

On Tuesday, April 26, 2022 at 11:33:20 PM UTC-7 jul.ale...@gmail.com wrote:

> 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...@googlegroups.com>) escribió:
>
>> 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-20020a62c54300b0050d260c0ea8sm13366402pfg.110 - gsmtp')*
>>
>>
>> I included the 16 character code to my environment variable and called it 
>> in my settings.pymfile,  but still the error occurs. Also here is my 
>> settings.py file:
>>
>> - *EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'*
>> *EMAIL_HOST = 'smtp.gmail.com '*
>> *EMAIL_PORT = 587*
>> *EMAIL_USE_TLS = True*
>> *EMAIL_HOST_USER = os.environ.get('DB_USER')*
>> *EMAIL_HOST_PASSWORD = os.environ.get('DB_PASSWORD')*
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/c18935a8-43bf-4a15-a5ba-95209009498dn%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/274f9087-f97c-4f15-bbc7-708a3538e75fn%40googlegroups.com.


Re: What's the best, most recommended way for handling model field encryption and decryption? Any python or django specific libraries?

2022-04-27 Thread Muhammad Juwaini Abdul Rahman
You need to consider a few things, for example: are you okay with the
trade-off that your app will be (much) slower?

Unlike passwords, all those data are used (get and set) frequently.

On Tue, 26 Apr 2022 at 08:45, Edchel Stephen Nini 
wrote:

> Good day everyone, What's the best/most recommended way to handle
> encryption in Model fields, like email, credit card number, etc? Also
> decrypting the said encrypted fields and presenting data back in views,
> templates, etc? What is the recommended workflow?
> Do you know of any python or django specific libraries best to use? Thanks
> in advance! Sincerely, Ed
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMeVmurmkP%2BVVW7Xrk5QDuSkV83i2UMKSQq4qr62j0aMapudSQ%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFKhtoTNjyWkon%2BXWhV%3DCY8nusYAd1NVOwLFNFfhMdvBM25ukw%40mail.gmail.com.


Re: SMTP Authentification error

2022-04-27 Thread Lakshyaraj Dash X-D 25
Check whether you have turned on less secure apps or not.

On Wed, Apr 27, 2022, 11:07 'Delvin Alexander' via Django users <
django-users@googlegroups.com> wrote:

> 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-20020a62c54300b0050d260c0ea8sm13366402pfg.110 - gsmtp')*
>
>
> I included the 16 character code to my environment variable and called it
> in my settings.pymfile,  but still the error occurs. Also here is my
> settings.py file:
>
> - *EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'*
> *EMAIL_HOST = 'smtp.gmail.com '*
> *EMAIL_PORT = 587*
> *EMAIL_USE_TLS = True*
> *EMAIL_HOST_USER = os.environ.get('DB_USER')*
> *EMAIL_HOST_PASSWORD = os.environ.get('DB_PASSWORD')*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c18935a8-43bf-4a15-a5ba-95209009498dn%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAF7qQgAwxwUGA0CCmo_OXnpC2pM%3DhhXxcizszzo21uKHeH%2BFrQ%40mail.gmail.com.


Re: SMTP Authentification error

2022-04-27 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-users@googlegroups.com>) escribió:

> 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-20020a62c54300b0050d260c0ea8sm13366402pfg.110 - gsmtp')*
>
>
> I included the 16 character code to my environment variable and called it
> in my settings.pymfile,  but still the error occurs. Also here is my
> settings.py file:
>
> - *EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'*
> *EMAIL_HOST = 'smtp.gmail.com '*
> *EMAIL_PORT = 587*
> *EMAIL_USE_TLS = True*
> *EMAIL_HOST_USER = os.environ.get('DB_USER')*
> *EMAIL_HOST_PASSWORD = os.environ.get('DB_PASSWORD')*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c18935a8-43bf-4a15-a5ba-95209009498dn%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHRQUHnKsmr9sBcM%3DLcg38D%2B%2B2icxN%3D-Yhs8p%2BJYfs3xmTG4wA%40mail.gmail.com.


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

2022-04-27 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 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 = models.CharField(max_length=20, unique=True)
>
> def __str__(self):
> return self.first_name
>
>
> class Faculty(models.Model):
> faculty_name = models.CharField(max_length=100)
> student = models.ForeignKey(Student, on_delete=models.CASCADE)
>
> def __str__(self):
> return self.faculty_name
>
>
> class Course(models.Model):
> course_name = models.CharField(max_length=100, unique=True)
> faculty = models.ForeignKey(Faculty, on_delete=models.CASCADE)
>
> def __str__(self):
> return self.course_name
>
>
> class Dean(models.Model):
> dean_name = models.CharField(max_length=100)
> faculty = models.OneToOneField(Faculty, on_delete=models.CASCADE)
>
> def __str__(self):
> return self.dean_name
>
>
> class StudentRequest(models.Model):
> student_name = models.CharField(max_length=100)
> faculty = models.ForeignKey(Faculty, on_delete=models.CASCADE)
> course = models.ForeignKey(Course, on_delete=models.CASCADE)
> reg_no = models.CharField(max_length=20)
> reasons = models.CharField(max_length=300, null=False)
>
> def __str__(self):
> return f"{self.student_name}"
>
>
> class FinancialRecords(models.Model):
> ACADENIC_YEAR_CHOICES = [
> ('Year 3 Sem 2'),
> ('Year 4 Sem 2')
> ]
> PAYMENT_PLAN_CHOICES = [
> ('Full'),
> ('Follow'),
> ('Fail'),
> ]
>
> payment_plan_category = models.CharField(
> PAYMENT_PLAN_CHOICES, max_length=10)
>
> student_reg = models.ForeignKey(Student, models.CASCADE)
> academic_year = models.CharField(ACADENIC_YEAR_CHOICES, max_length=20)
> course = models.ForeignKey(Course, on_delete=models.CASCADE)
>
>
>
> Errors
> Traceback (most recent call last):
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/backends/utils.py",
> line 89, in _execute
> return self.cursor.execute(sql, params)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py",
> line 477, in execute
> return Database.Cursor.execute(self, query, params)
> sqlite3.OperationalError: no such column: exams_app_faculty.student_id
>
> The above exception was the direct cause of the following exception:
>
> Traceback (most recent call last):
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/core/handlers/exception.py",
> line 55, in inner
> response = get_response(request)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/core/handlers/base.py",
> line 197, in _get_response
> response = wrapped_callback(request, *callback_args, **callback_kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/contrib/admin/options.py",
> line 683, in wrapper
> return self.admin_site.admin_view(view)(*args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/utils/decorators.py",
> line 133, in _wrapped_view
> response = view_func(request, *args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/views/decorators/cache.py",
> line 62, in _wrapped_view_func
> response = view_func(request, *args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/contrib/admin/sites.py",
> line 242, in inner
> return view(request, *args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/utils/decorators.py",
> line 46, in _wrapper
> return bound_method(*args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/utils/decorators.py",
> line 133, in _wrapped_view
> response = view_func(request, *args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/contrib/admin/options.py",
> line 2063, in changelist_view
> "selection_note": _("0 of %(cnt)s selected") % {"cnt":
> len(cl.result_list)},
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/models/query.py",
> line 302, in __len__
> self._fetch_all()
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/models/query.py",
> line 1507, in _fetch_all
> self._result_cache = list(self._iterable_class(self))
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/models/query.py",
> line 57, in __iter__
> results = compiler.execute_sql(
>   File
>