When I run my django project on my local pc, it works perfectly fine and I can sign up/log in/log out on my site. When I deploy it to Heroku, it doesn't work anymore, giving me the following error:
OperationalError at /login/
no such table: auth_user
I know this question exists, and I've already tried all the solutions, but it still hasn't worked. I've done migrate and makemigrations on both the python and heroku side, along with the commit command at different intervals. I also don't even have the usercreateform, and OP's error for that question appeared on their local pc, not just Heroku. I also tried creating a super user, which I could on my local pc, but not on Heroku.
If it helps, my procfile is:
web: gunicorn django_project.wsgi --log-file -
I had a hard time determining my procfile, so maybe that's the problem? The django_project part is just the name of the folder that includes settings.py and wsgi.py.
Forms.py:
class NewCommentForm(forms.ModelForm):
class Meta:
model = Comment
fields = ['content']
class NewMessageForms(forms.ModelForm):
class Meta:
model = Message
fields = ['content','reciever']
If you want to see my site in action, go to newsment.herokuapp.com and try to sign up or login (it will give the error).