Thursday, May 2, 2019

mysql client

reading from a remote db, that uses mysql. have to install mysql client, kept failing on install, finally, i "think" with homebrew i was able to install it, at least it said it did.
Now my django app, still, won't run with the db in setttings.py,  when i run "runserver", it will not run, 
here is a snippet of what i'm seeing.


    return import_module('%s.base' % backend_name)

  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/__init__.py", line 127, in import_module

    return _bootstrap._gcd_import(name[level:], package, level)

  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/db/backends/mysql/base.py", line 20, in <module>

    ) from err

django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.

Did you install mysqlclient?



I did install msqlclient.


--
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/0bc879a8-81e2-42a5-ad00-518781f07cf2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment