Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django MySql Driver - MacOS #76

Open
app-generator opened this issue Aug 23, 2023 · 0 comments
Open

Django MySql Driver - MacOS #76

app-generator opened this issue Aug 23, 2023 · 0 comments
Assignees

Comments

@app-generator
Copy link
Owner

Raised by paying user in Discord.

On Mac, the MySql driver can be mysql.connector.django instead of django.db.backends.mysql

The runtime error:

  File "/Volumes/DATA/OmomoPro/django-datta-able-pro/env/lib/python3.11/site-packages/django/db/utils.py", line 126, in load_backend
    raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: 'django.db.backends.mysql.connector.django' isn't an available database backend or couldn't be imported. Check the above exception. To use one of the built-in backends, use 'django.db.backends.XXX', where XXX is one of:
    'mysql', 'oracle', 'postgresql', 'sqlite3'

The fix is to set the DB_ENGINE:

  • mysql.connector.django
    OR
  • django.db.backends.mysql
@app-generator app-generator self-assigned this Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant