Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
baletu committed Mar 20, 2021
1 parent c7d44d9 commit 1e82ede
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion myblog/backends/whoosh_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
import threading
import warnings

import six as six
import django

if django.VERSION[0]<=2:
from django.utils import six
else:
import six as six
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.utils.datetime_safe import datetime
Expand Down
4 changes: 2 additions & 2 deletions myblog/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'blog',
'NAME': 'myblog',
'USER': 'myblog',
'PASSWORD': '5rWEu98A',
'PASSWORD': 'ex3ZAaY7WbsFK76A',
'HOST': 'mysql.oracle.com',
'PORT': '3306',
'OPTIONS': {'charset': 'utf8mb4'},
Expand Down

0 comments on commit 1e82ede

Please sign in to comment.