Created
February 19, 2014 11:24
-
-
Save koirikivi/9090176 to your computer and use it in GitHub Desktop.
Django-CMS uWSGI bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/vagrant/venv/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 187, in __call__ | |
self.load_middleware() | |
File "/vagrant/venv/lib/python2.6/site-packages/django/core/handlers/base.py", line 47, in load_middleware | |
mw_class = import_by_path(middleware_path) | |
File "/vagrant/venv/lib/python2.6/site-packages/django/utils/module_loading.py", line 26, in import_by_path | |
sys.exc_info()[2]) | |
File "/vagrant/venv/lib/python2.6/site-packages/django/utils/module_loading.py", line 21, in import_by_path | |
module = import_module(module_path) | |
File "/vagrant/venv/lib/python2.6/site-packages/django/utils/importlib.py", line 40, in import_module | |
__import__(name) | |
File "./cms/middleware/page.py", line 2, in <module> | |
from cms.appresolver import applications_page_check | |
File "./cms/appresolver.py", line 7, in <module> | |
from cms.models.pagemodel import Page | |
File "./cms/models/__init__.py", line 7, in <module> | |
from .settingmodels import * | |
File "./cms/models/settingmodels.py", line 2, in <module> | |
from cms.compat import user_model_label | |
File "./cms/compat.py", line 25, in <module> | |
from django.contrib.auth.admin import UserAdmin | |
File "/vagrant/venv/lib/python2.6/site-packages/django/contrib/auth/admin.py", line 182, in <module> | |
admin.site.register(Group, GroupAdmin) | |
File "/vagrant/venv/lib/python2.6/site-packages/django/contrib/admin/sites.py", line 92, in register | |
admin_class.validate(model) | |
File "/vagrant/venv/lib/python2.6/site-packages/django/contrib/admin/options.py", line 105, in validate | |
validator = cls.validator_class() | |
File "/vagrant/venv/lib/python2.6/site-packages/django/contrib/admin/validation.py", line 20, in __init__ | |
models.get_apps() | |
File "/vagrant/venv/lib/python2.6/site-packages/django/db/models/loading.py", line 139, in get_apps | |
self._populate() | |
File "/vagrant/venv/lib/python2.6/site-packages/django/db/models/loading.py", line 78, in _populate | |
self.load_app(app_name) | |
File "/vagrant/venv/lib/python2.6/site-packages/django/db/models/loading.py", line 99, in load_app | |
models = import_module('%s.models' % app_name) | |
File "/vagrant/venv/lib/python2.6/site-packages/django/utils/importlib.py", line 40, in import_module | |
__import__(name) | |
File "/vagrant/venv/lib/python2.6/site-packages/djangocms_text_ckeditor/models.py", line 3, in <module> | |
from cms.models import CMSPlugin | |
django.core.exceptions.ImproperlyConfigured: Error importing module cms.middleware.page: "cannot import name CMSPlugin" | |
# $ venv/bin/uwsgi --http :8003 --wsgi-file=/vagrant/test_project/wsgi.py --home=/vagrant/venv & | |
# *** Starting uWSGI 2.0.1 (32bit) on [Wed Feb 19 03:20:27 2014] *** | |
# compiled with version: 4.4.3 on 18 February 2014 15:04:01 | |
# os: Linux-2.6.32-33-generic #70-Ubuntu SMP Thu Jul 7 21:09:46 UTC 2011 | |
# nodename: lucid32 | |
# machine: i686 | |
# clock source: unix | |
# detected number of CPU cores: 1 | |
# current working directory: /vagrant | |
# *** running under screen session 3365.pts-0.lucid32 *** | |
# detected binary path: /vagrant/venv/bin/uwsgi | |
# !!! no internal routing support, rebuild with pcre support !!! | |
# *** WARNING: you are running uWSGI without its master process manager *** | |
# your memory page size is 4096 bytes | |
# detected max file descriptor number: 1024 | |
# lock engine: pthread robust mutexes | |
# thunder lock: disabled (you can enable it with --thunder-lock) | |
# uWSGI http bound on :8003 fd 4 | |
# spawned uWSGI http 1 (pid: 5591) | |
# uwsgi socket 0 bound to TCP address 127.0.0.1:54374 (port auto-assigned) fd 3 | |
# Python version: 2.6.5 (r265:79063, Apr 16 2010, 13:28:26) [GCC 4.4.3] | |
# Set PythonHome to /vagrant/venv | |
# *** Python threads support is disabled. You can enable it with --enable-threads *** | |
# Python main interpreter initialized at 0x98a9e38 | |
# your server socket listen backlog is limited to 100 connections | |
# your mercy for graceful operations on workers is 60 seconds | |
# mapped 63980 bytes (62 KB) for 1 cores | |
# *** Operational MODE: single process *** | |
# WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x98a9e38 pid: 5589 (default app) | |
# *** uWSGI is running in multiple interpreter mode *** | |
# spawned uWSGI worker 1 (and the only) (pid: 5589, cores: 1) | |
# $ curl localhost:8003 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment