Unwelcome error!

19 views
Skip to first unread message

Stephen Owen

unread,
May 20, 2019, 6:22:08 PM5/20/19
to Django users
Hi, all,
I am creating a blog in Django, following lectures on You Tube.  Everything was working fine and then an error occurred that I could fathom.  So I have now just started a new project.  One accessing localhost, I got the expected page but when I tried localhost I got this (attached.)
Any diea what is happening?  The first project was fine up until I probably coded something in teh wrong place.

error_20052019.PNG

osman alexander samayoa ramirez

unread,
May 20, 2019, 6:40:06 PM5/20/19
to django...@googlegroups.com
creo que creaste alguna tabla que pueda que no este colocada en tus apps  o que no esta migrada en la base de datos

--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e6fb976d-51e0-4dce-b34a-79adcd43e887%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joe Reitman

unread,
May 20, 2019, 8:26:31 PM5/20/19
to Django users
You need to run makemigrations and migrate to create the tables django uses. 

mahesh boini

unread,
May 20, 2019, 10:42:53 PM5/20/19
to django...@googlegroups.com
Migrate your changes to db
django_session is default django table
In your case django looking for table but the table is not exist in the db.

--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Abu Yusuf

unread,
May 21, 2019, 12:25:10 AM5/21/19
to django...@googlegroups.com
delete your existing db and try to create makemigrations and migrate again. delete all the files in migrations folder also.
You saw this error because your migrations weren't done properly.

--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Adam Parsons

unread,
May 21, 2019, 5:52:26 PM5/21/19
to Django users
You need to read the error message, it says there is no such table. This refers to a missing table in the database. Given it is referring to django_session, you have not run migrations yet. 

If you follow the Django project's official tutorial, it will walk you through that process in step 2

Reply all
Reply to author
Forward
0 new messages