S
S
SCHOOL_DEVELOPER2018-02-27 21:42:35
Django
SCHOOL_DEVELOPER, 2018-02-27 21:42:35

How to deploy Django project version 1.2.3?

When I run python manage.py runserver
I get:
Validating models...
Unhandled exception in thread started by
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/management /commands/runserver.py", line 48, in inner_run
self.validate(display_num_errors=True)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 249, in validate
num_errors = get_validation_errors(s, app)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/validation.py", line 28, in get_validation_errors
for (app_name, error ) in get_app_errors().items():
File "/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py", line 146, in get_app_errors
self._populate()
File "/usr/local/lib/python2.7 /dist-packages/django/db/models/loading.py", line 61, in _populate
self.load_app(app_name, True)
File "/usr/local/lib/python2.7/dist-packages/django/db/ models/loading.py", line 78, in load_app
models = import_module('.models', app_name)
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/usr/local/lib/python2.7/dist-packages/south/models.py", line 2, in
from south.db import DEFAULT_DB_ALIAS
File "/usr/local/lib/python2.7/dist-packages/south/db/__init__.py", line 61, in
dbs[alias] = module.DatabaseOperations(alias)
File "/usr/local/lib/ python2.7/dist-packages/south/db/generic.py", line 62, in __init__
self.connection_init()
File "/usr/local/lib/python2.7/dist-packages/south/db/mysql. py", line 40, in connection_init
cursor.execute("SET storage_engine=%s;" % self._get_setting('STORAGE_ENGINE'))
File "/usr/local/lib/python2.7/dist-packages/django/db /backends/mysql/base.py", line 86, in execute
return self.cursor.execute(query, args)
File "/usr/local/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 174, in execute
self.errorhandler(self, exc, value)
File "/usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1193, "Unknown system variable 'storage_engine'")
No handlers could be found for logger "sentry.errors"

Please help...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question