Wednesday, May 2, 2018

Re: OperationalError

At first glance it looks like you haven't applied a migration to this
computer.

at the command line on this computer  - in the man project directory :

If you have not copied the migration scripts from your development
machine do this first :

$ python manage.py makemigrations

and then do this :

$ python manage.py migrate

--
--
Anthony Flury
email : *Anthony.flury@btinternet.com*
Twitter : *@TonyFlury <https://twitter.com/TonyFlury/>

*On 02/05/18 00:56, Gerald Brown wrote:
> I have a Django application that I am having problems with.  In the
> Admin page I have 3 sections, ABC, DEF & XYZ. Each has 1 option to
> "Add/Change".  In 2 of them when I click on the option it works fine.
> The third gives me the following error "
> *1054, "Unknown column 'xyz_xyz.first_name' in "field list" *The
> Exception location is:
> */home/medrec1/.virtualenvs/medrecproj/lib/python3.5/site-packages/*MySQLdb*/connections.py
> in query, line 277* On another system (both running the same code) I
> was also getting a different error also in *site-packages/MySQLdb* but
> I was able correct that by installing 2 DEV packages and then installing MySQLClient, which I also did on this computer. The other
> system does NOT give this error.
>
> Any ideas, suggestions, solutions on how to solve this error and any other errors in the Django code?
>
> Thanks.
>
> --
> 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+unsubscribe@googlegroups.com
> <mailto:django-users+unsubscribe@googlegroups.com>.
> To post to this group, send email to django-users@googlegroups.com
> <mailto:django-users@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/74790172-8bf5-43b6-9bad-bab68ae11a4a%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/74790172-8bf5-43b6-9bad-bab68ae11a4a%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.


--
--
Anthony Flury
email : *Anthony.flury@btinternet.com*
Twitter : *@TonyFlury <https://twitter.com/TonyFlury/>*

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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/ee20f787-ae18-f407-de84-b4122d9f304d%40btinternet.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment