Sany07 / Job-Portal-Django

DJobPortal is a job posting site developed in Django. Where Employer can Register their Company profile, Login Then add Job Post. Employee can bookmark & apply for the Job. There is a dashboard section where Employer can check his job posting list & applicants details also can delete and update his job post. Employee can see his job bookmark list & can update his profile.
https://djobportal.herokuapp.com/
MIT License
200 stars 61 forks source link

getting a ProgrammingError at /profile/edit/1/ when i am trying to edit employee settings #17

Closed Ayushcupcake closed 3 years ago

Ayushcupcake commented 3 years ago

ProgrammingError column auth_user.id does not exist LINE 1: SELECT "auth_user"."id", "auth_user"."password", "auth_user"... ^ C:\Users\Joych\Downloads\Backup JobB\Job-B\Job-Portal-Django-master\xb\lib\site-packages\django\db\backends\utils.py, line 84, in _execute C:\Users\Joych\Downloads\Backup JobB\Job-B\Job-Portal-Django-master\xb\Scripts\python.exe 3.9.4 ['C:\Users\Joych\Downloads\Backup JobB\Job-B\Job-Portal-Django-master', 'c:\users\joych\appdata\local\programs\python\python39\python39.zip', 'c:\users\joych\appdata\local\programs\python\python39\DLLs', 'c:\users\joych\appdata\local\programs\python\python39\lib', 'c:\users\joych\appdata\local\programs\python\python39', 'C:\Users\Joych\Downloads\Backup ' 'JobB\Job-B\Job-Portal-Django-master\xb', 'C:\Users\Joych\Downloads\Backup ' 'JobB\Job-B\Job-Portal-Django-master\xb\lib\site-packages']

this is the error earlier I was not getting the error but when I am using with postgresql I am getting the errors in profile edit settings of employee

Sany07 commented 3 years ago

Everything looks fine. I'm not getting any error. Please migrate the database properly. Do the migration that creates the table will never have a chance to run. Remove the default.

Ayushcupcake commented 3 years ago

I have migrated the database first i used sqlite 3 it worked properly after that ehen i migrated to postgres its giving this error i have done python manage.py makemigrations and then python manage.py migrate its saying no migrations to apply

tashi12 commented 3 years ago

Hi Sany07, Your login button doesn't work....as after clicking on login it leads back to home button.

tashi12 commented 3 years ago

Home screen*

Sany07 commented 3 years ago

Hi Sany07, Your login button doesn't work....as after clicking on login it leads back to home button.

Because you are already Logged in. Every thing looks fine you can check my live demo djobportal.herokuapp.com/

Sany07 commented 3 years ago

I have migrated the database first i used sqlite 3 it worked properly after that ehen i migrated to postgres its giving this error i have done python manage.py makemigrations and then python manage.py migrate its saying no migrations to apply

Delete all migration files then python manage.py makemigrations & then python manage.py migrate