After simple pip install -U django I'm receiving following error.
Environment:
Request Method: GET
Request URL: http://localhost:8000/shelf/
Django Version: 1.10
Python Version: 3.5.2
Installed Applications:
['django.contrib.sites',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'shelf',
'usermanagement',
'avatar',
'bootstrap3',
'star_ratings',
'imagekit',
'allauth',
'allauth.account',
'allauth.socialaccount']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback:
File "C:\Users\piomo\DEV\Django\market-env\lib\site-packages\django\template\utils.py" in __getitem__
65. return self._engines[alias]
During handling of the above exception ('django'), another exception occurred:
File "C:\Users\piomo\DEV\Django\market-env\lib\site-packages\django\template\backends\django.py" in get_package_libraries
126. module = import_module(entry[1])
File "C:\Users\piomo\DEV\Django\market-env\lib\importlib\__init__.py" in import_module
126. return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\piomo\DEV\Django\market-env\lib\site-packages\django\templatetags\future.py" in <module>
4. from django.utils.deprecation import RemovedInDjango110Warning
During handling of the above exception (cannot import name 'RemovedInDjango110Warning'), another exception occurred:
File "C:\Users\piomo\DEV\Django\market-env\lib\site-packages\django\core\handlers\exception.py" in inner
39. response = get_response(request)
File "C:\Users\piomo\DEV\Django\market-env\lib\site-packages\django\core\handlers\base.py" in _legacy_get_response
249. response = self._get_response(request)
File "C:\Users\piomo\DEV\Django\market-env\lib\site-packages\django\core\handlers\base.py" in _get_response
217. response = self.process_exception_by_middleware(e, request)
File "C:\Users\piomo\DEV\Django\market-env\lib\site-packages\django\core\handlers\base.py" in _get_response
215. response = response.render()
File "C:\Users\piomo\DEV\Django\market-env\lib\site-packages\django\template\response.py" in render
109. self.content = self.rendered_content
File "C:\Users\piomo\DEV\Django\market-env\lib\site-packages\django\template\response.py" in rendered_content
84. template = self.resolve_template(self.template_name)
File "C:\Users\piomo\DEV\Django\market-env\lib\site-packages\django\template\response.py" in resolve_template
66. return select_template(template, using=self.using)
File "C:\Users\piomo\DEV\Django\market-env\lib\site-packages\django\template\loader.py" in select_template
44. engines = _engine_list(using)
File "C:\Users\piomo\DEV\Django\market-env\lib\site-packages\django\template\loader.py" in _engine_list
72. return engines.all() if using is None else [engines[using]]
File "C:\Users\piomo\DEV\Django\market-env\lib\site-packages\django\template\utils.py" in all
89. return [self[alias] for alias in self]
File "C:\Users\piomo\DEV\Django\market-env\lib\site-packages\django\template\utils.py" in <listcomp>
89. return [self[alias] for alias in self]
File "C:\Users\piomo\DEV\Django\market-env\lib\site-packages\django\template\utils.py" in __getitem__
80. engine = engine_cls(params)
File "C:\Users\piomo\DEV\Django\market-env\lib\site-packages\django\template\backends\django.py" in __init__
30. options['libraries'] = self.get_templatetag_libraries(libraries)
File "C:\Users\piomo\DEV\Django\market-env\lib\site-packages\django\template\backends\django.py" in get_templatetag_libraries
48. libraries = get_installed_libraries()
File "C:\Users\piomo\DEV\Django\market-env\lib\site-packages\django\template\backends\django.py" in get_installed_libraries
113. for name in get_package_libraries(pkg):
File "C:\Users\piomo\DEV\Django\market-env\lib\site-packages\django\template\backends\django.py" in get_package_libraries
130. "trying to load '%s': %s" % (entry[1], e)
Exception Type: InvalidTemplateLibrary at /shelf/
Exception Value: Invalid template library specified. ImportError raised when trying to load 'django.templatetags.future': cannot import name 'RemovedInDjango110Warning'
Anyone? :)
Last time i saw RemovedInDjango110Warning it was in 1.9 and it was related to some = comparision in template, which was removed by me before update.
From the comments:
django/templatetags/future.py was deprecated and removed at version 1.10.
Uninstalling Django, removed django/ folder before re-installation will solve this issue.
https://github.com/digitalocean/netbox/issues/497
https://github.com/jazzband/django-debug-toolbar/issues/706
Related
According to this guide I successfully connected to Sybase database in my django project in virtual environment.
After deployment in Apache the web writes this error message
Environment:
Request Method: GET
Request URL: http://localhost:8080/
Django Version: 1.8
Python Version: 3.6.9
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'blog',
'sybase_app')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.security.SecurityMiddleware')
Traceback:
File "/home/pd/sibp/env/lib/python3.6/site-packages/django/core/handlers/base.py" in get_response
132. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3.6/contextlib.py" in inner
51. with self._recreate_cm():
File "/home/pd/sibp/env/lib/python3.6/site-packages/django/db/transaction.py" in __enter__
150. if not connection.get_autocommit():
File "/home/pd/sibp/env/lib/python3.6/site-packages/django/db/backends/base/base.py" in get_autocommit
286. self.ensure_connection()
File "/home/pd/sibp/env/lib/python3.6/site-packages/django/db/backends/base/base.py" in ensure_connection
130. self.connect()
File "/home/pd/sibp/env/lib/python3.6/site-packages/django/db/utils.py" in __exit__
97. six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/home/pd/sibp/env/lib/python3.6/site-packages/django/utils/six.py" in reraise
658. raise value.with_traceback(tb)
File "/home/pd/sibp/env/lib/python3.6/site-packages/django/db/backends/base/base.py" in ensure_connection
130. self.connect()
File "/home/pd/sibp/env/lib/python3.6/site-packages/django/db/backends/base/base.py" in connect
118. conn_params = self.get_connection_params()
File "/home/pd/sibp/env/lib/python3.6/site-packages/sqlany_django/base.py" in get_connection_params
517. root = Database.Root('PYTHON')
File "/home/pd/sibp/env/lib/python3.6/site-packages/sqlanydb.py" in __init__
466. 'libdbcapi_r.dylib')
File "/home/pd/sibp/env/lib/python3.6/site-packages/sqlanydb.py" in load_library
458. raise InterfaceError("Could not load dbcapi. Tried: " + ','.join(map(str, names)))
Exception Type: InterfaceError at /
Exception Value: Could not load dbcapi. Tried: None,dbcapi.dll,libdbcapi_r.so,libdbcapi_r.dylib
I edited /etc/apache2/envvars and appended a line
export LD_LIBRARY_PATH=/opt/sqlanywhere17/lib64:/opt/sqlanywhere17/lib32:$LD_LIBRARY_PATH
The error message changed to:
Environment:
Request Method: GET
Request URL: http://localhost:8080/
Django Version: 1.8
Python Version: 3.6.9
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'blog',
'sybase_app')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.security.SecurityMiddleware')
Traceback:
File "/home/pd/sibp/env/lib/python3.6/site-packages/django/core/handlers/base.py" in get_response
132. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3.6/contextlib.py" in inner
51. with self._recreate_cm():
File "/home/pd/sibp/env/lib/python3.6/site-packages/django/db/transaction.py" in __enter__
150. if not connection.get_autocommit():
File "/home/pd/sibp/env/lib/python3.6/site-packages/django/db/backends/base/base.py" in get_autocommit
286. self.ensure_connection()
File "/home/pd/sibp/env/lib/python3.6/site-packages/django/db/backends/base/base.py" in ensure_connection
130. self.connect()
File "/home/pd/sibp/env/lib/python3.6/site-packages/django/db/utils.py" in __exit__
97. six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/home/pd/sibp/env/lib/python3.6/site-packages/django/utils/six.py" in reraise
658. raise value.with_traceback(tb)
File "/home/pd/sibp/env/lib/python3.6/site-packages/django/db/backends/base/base.py" in ensure_connection
130. self.connect()
File "/home/pd/sibp/env/lib/python3.6/site-packages/django/db/backends/base/base.py" in connect
118. conn_params = self.get_connection_params()
File "/home/pd/sibp/env/lib/python3.6/site-packages/sqlany_django/base.py" in get_connection_params
517. root = Database.Root('PYTHON')
File "/home/pd/sibp/env/lib/python3.6/site-packages/sqlanydb.py" in __init__
480. API_VERSION_EX)
Exception Type: InterfaceError at /
Exception Value: Failed to initalize dbcapi context, dbcapi version 2 required. Perhaps you are missing some sqlanywhere libaries?
How can I fix it?
I solved it, so that I appended the file /opt/sqlanywhere17/bin64/sa_config.sh to /etc/apache2/envvars and restarted apache2.
I am trying to generate Swagger documentation using drf_yasg and it was working fine, but now it’s not.
It’s giving me an error and I can not find a solution for it.
Why am I getting this error?
Environment:
Request Method: GET
Request URL: http://0.0.0.0:8007/doc/
Django Version: 3.2.4
Python Version: 3.9.5
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.staticfiles',
'rest_framework',
'drf_yasg',
'promotions',
'vendor',
'settings']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'includes.common.middlewares.identity.IdentityMiddleware',
'includes.common.middlewares.timezone.TimezoneMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
response = self.handle_exception(exc)
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
self.raise_uncaught_exception(exc)
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
raise exc
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/drf_yasg/views.py", line 92, in get
generator = self.generator_class(info, version, url, patterns=[])
File "/usr/local/lib/python3.9/site-packages/drf_yasg/generators.py", line 183, in __init__
self._gen = SchemaGenerator(info.title, url, info.get('description', ''), patterns, urlconf)
File "/usr/local/lib/python3.9/site-packages/rest_framework/schemas/coreapi.py", line 120, in __init__
assert coreapi, '`coreapi` must be installed for schema support.'
Exception Type: AssertionError at /doc/
Exception Value: `coreapi` must be installed for schema support.
It was a silly mistake. I had made a directory to store extra files and drf_yasg was considering it as an app and was trying to generate URLs for it.
I removed the __init__.py files from that directory and it worked.
I was going through the docs on DRF schema and installed the packages pyyaml and uritemplate. I added the urls to my urls.py file. Later I pip installed coreapi following this tutorial
urlpattern = [
...
path('docs/', include_docs_urls(title='BlogAPI')),
path('openapi', get_schema_view(
title="Your Project",
description="API for all things …",
version="1.0.0"
), name='openapi-schema'),
I shows me the following error on login to the url
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/docs/
Django Version: 3.1.6
Python Version: 3.9.1
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'GisApplication.apps.GisapplicationConfig',
'users.apps.UsersConfig',
'crispy_forms',
'rest_framework',
'storages',
'django.contrib.gis']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback (most recent call last):
File "D:\anaconda\envs\djangoEnv\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
response = get_response(request)
File "D:\anaconda\envs\djangoEnv\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "D:\anaconda\envs\djangoEnv\lib\site-packages\django\views\decorators\csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "D:\anaconda\envs\djangoEnv\lib\site-packages\django\views\generic\base.py", line 70, in view
return self.dispatch(request, *args, **kwargs)
File "D:\anaconda\envs\djangoEnv\lib\site-packages\rest_framework\views.py", line 509, in dispatch
response = self.handle_exception(exc)
File "D:\anaconda\envs\djangoEnv\lib\site-packages\rest_framework\schemas\views.py", line 48, in handle_exception
return super().handle_exception(exc)
File "D:\anaconda\envs\djangoEnv\lib\site-packages\rest_framework\views.py", line 469, in handle_exception
self.raise_uncaught_exception(exc)
File "D:\anaconda\envs\djangoEnv\lib\site-packages\rest_framework\views.py", line 480, in raise_uncaught_exception
raise exc
File "D:\anaconda\envs\djangoEnv\lib\site-packages\rest_framework\views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "D:\anaconda\envs\djangoEnv\lib\site-packages\rest_framework\schemas\views.py", line 37, in get
schema = self.schema_generator.get_schema(request, self.public)
File "D:\anaconda\envs\djangoEnv\lib\site-packages\rest_framework\schemas\coreapi.py", line 156, in get_schema
links = self.get_links(None if public else request)
File "D:\anaconda\envs\djangoEnv\lib\site-packages\rest_framework\schemas\coreapi.py", line 143, in get_links
link = view.schema.get_link(path, method, base_url=self.url)
File "D:\anaconda\envs\djangoEnv\lib\site-packages\rest_framework\schemas\coreapi.py", line 369, in get_link
fields += self.get_filter_fields(path, method)
File "D:\anaconda\envs\djangoEnv\lib\site-packages\rest_framework\schemas\coreapi.py", line 526, in get_filter_fields
fields += filter_backend().get_schema_fields(self.view)
File "D:\anaconda\envs\djangoEnv\lib\site-packages\django\views\decorators\csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "D:\anaconda\envs\djangoEnv\lib\site-packages\django\views\decorators\csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
Exception Type: TypeError at /docs/
Exception Value: view() missing 1 required positional argument: 'request'
None of the previous answers with same error helped as it is not originating from my views. What might be the problem?
When I am doing python manage.py runsever 0.0.0.0:8000
Everything is working correctly. I am just using django server by MY_ADRESS_IP:8000
When I am using apache2 on the Centos 7 I have an error when I want to send an email.
My settings:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_USE_TLS = True
EMAIL_PORT = 587
EMAIL_HOST_USER = 'MY_EMAIL_NAME'
EMAIL_HOST_PASSWORD = 'MY_EMAIL_PASS'
Do I need some special config in apache to let the gmail send emails?
Here more error details:
Django Version: 3.1.3
Python Version: 3.6.8
Installed Applications:
['sf_platform.apps.SfSplatformConfig',
'sf_users.apps.SfUsersConfig',
'sf_api.apps.SfApiConfig',
'crispy_forms',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback (most recent call last):
File "/home/user_name/WEB-Platform/venv/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/user_name/WEB-Platform/venv/lib/python3.6/site-packages/django/core/handlers/base.py", line 179, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/user_name/WEB-Platform/venv/lib/python3.6/site-packages/django/views/generic/base.py", line 70, in view
return self.dispatch(request, *args, **kwargs)
File "/home/user_name/WEB-Platform/venv/lib/python3.6/site-packages/django/utils/decorators.py", line 43, in _wrapper
return bound_method(*args, **kwargs)
File "/home/user_name/WEB-Platform/venv/lib/python3.6/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/home/user_name/WEB-Platform/venv/lib/python3.6/site-packages/django/contrib/auth/views.py", line 222, in dispatch
return super().dispatch(*args, **kwargs)
File "/home/user_name/WEB-Platform/venv/lib/python3.6/site-packages/django/views/generic/base.py", line 98, in dispatch
return handler(request, *args, **kwargs)
File "/home/user_name/WEB-Platform/venv/lib/python3.6/site-packages/django/views/generic/edit.py", line 142, in post
return self.form_valid(form)
File "/home/user_name/WEB-Platform/venv/lib/python3.6/site-packages/django/contrib/auth/views.py", line 235, in form_valid
form.save(**opts)
File "/home/user_name/WEB-Platform/venv/lib/python3.6/site-packages/django/contrib/auth/forms.py", line 325, in save
user_email, html_email_template_name=html_email_template_name,
File "/home/user_name/WEB-Platform/venv/lib/python3.6/site-packages/django/contrib/auth/forms.py", line 273, in send_mail
email_message.send()
File "/home/user_name/WEB-Platform/venv/lib/python3.6/site-packages/django/core/mail/message.py", line 284, in send
return self.get_connection(fail_silently).send_messages([self])
File "/home/user_name/WEB-Platform/venv/lib/python3.6/site-packages/django/core/mail/backends/smtp.py", line 102, in send_messages
new_conn_created = self.open()
File "/home/user_name/WEB-Platform/venv/lib/python3.6/site-packages/django/core/mail/backends/smtp.py", line 69, in open
self.connection.login(self.username, self.password)
File "/usr/lib64/python3.6/smtplib.py", line 730, in login
raise last_exception
File "/usr/lib64/python3.6/smtplib.py", line 721, in login
initial_response_ok=initial_response_ok)
File "/usr/lib64/python3.6/smtplib.py", line 642, in auth
raise SMTPAuthenticationError(code, resp)
Exception Type: SMTPAuthenticationError at /accounts/password_reset
Exception Value: (535, b'Incorrect authentication daata')
Oh....
I just found in my WHM panel something like "SMTP Restrictions" enabled.
I just disabled it and it's working :D
So that was just apache config problem
I upgraded Wagtail to version 1.10.1 and now when I try to log into admin I get column wagtailusers_userprofile.preferred_language does not exist error. The error seems obvious, but I am not sure how to fix it; I assumed the Wagtail upgrade would have handled it. Below is the traceback. Thank you.
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8001/admin/
Django Version: 1.11.2
Python Version: 3.5.0
Installed Applications:
['app',
'home',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'django_summernote',
'rest_framework',
'wagtail.contrib.settings',
'wagtail.contrib.modeladmin',
'wagtail.wagtailcore',
'wagtail.wagtailadmin',
'wagtail.wagtaildocs',
'wagtail.wagtailsnippets',
'wagtail.wagtailusers',
'wagtail.wagtailimages',
'wagtail.wagtailembeds',
'wagtail.wagtailsearch',
'wagtail.wagtailsites',
'wagtail.wagtailredirects',
'wagtail.wagtailforms',
'wagtail.contrib.wagtailsitemaps',
'wagtail.contrib.wagtailroutablepage',
'wagtail.contrib.wagtailstyleguide',
'wagtailmenus',
'compressor',
'taggit',
'modelcluster',
'docs']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'wagtail.wagtailcore.middleware.SiteMiddleware',
'wagtail.wagtailredirects.middleware.RedirectMiddleware']
Traceback:
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/django/db/models/fields/related_descriptors.py" in __get__
385. rel_obj = getattr(instance, self.cache_name)
During handling of the above exception ('User' object has no attribute '_wagtail_userprofile_cache'), another exception occurred:
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/django/db/backends/utils.py" in execute
65. return self.cursor.execute(sql, params)
The above exception (column wagtailusers_userprofile.preferred_language does not exist
LINE 1: ...gtailusers_userprofile"."rejected_notifications", "wagtailus...
^
) was the direct cause of the following exception:
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner
41. response = get_response(request)
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/django/views/decorators/cache.py" in _cache_controlled
43. response = viewfunc(request, *args, **kw)
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/wagtail/wagtailadmin/decorators.py" in decorated_view
25. if hasattr(user, 'wagtail_userprofile'):
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/django/utils/functional.py" in inner
239. return func(self._wrapped, *args)
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/django/db/models/fields/related_descriptors.py" in __get__
393. rel_obj = self.get_queryset(instance=instance).get(**filter_args)
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/django/db/models/query.py" in get
374. num = len(clone)
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/django/db/models/query.py" in __len__
232. self._fetch_all()
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/django/db/models/query.py" in _fetch_all
1105. self._result_cache = list(self._iterable_class(self))
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/django/db/models/query.py" in __iter__
53. results = compiler.execute_sql(chunked_fetch=self.chunked_fetch)
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/django/db/models/sql/compiler.py" in execute_sql
886. raise original_exception
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/django/db/models/sql/compiler.py" in execute_sql
876. cursor.execute(sql, params)
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/django/db/backends/utils.py" in execute
80. return super(CursorDebugWrapper, self).execute(sql, params)
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/django/db/backends/utils.py" in execute
65. return self.cursor.execute(sql, params)
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/django/db/utils.py" in __exit__
94. six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/django/utils/six.py" in reraise
685. raise value.with_traceback(tb)
File "/Users/rooster/.pyenv/versions/3.5.0/envs/alpha_omega/lib/python3.5/site-packages/django/db/backends/utils.py" in execute
65. return self.cursor.execute(sql, params)
Exception Type: ProgrammingError at /admin/
Exception Value: column wagtailusers_userprofile.preferred_language does not exist
LINE 1: ...gtailusers_userprofile"."rejected_notifications", "wagtailus...
You need to run ./manage.py migrate.