Giter VIP home page Giter VIP logo

django-gevent-deploy's People

Contributors

bitdeli-chef avatar cancan101 avatar miki725 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

django-gevent-deploy's Issues

Django 1.7 support

Traceback:
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  111.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/contrib/admin/options.py" in wrapper
  583.                 return self.admin_site.admin_view(view)(*args, **kwargs)
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
  105.                     response = view_func(request, *args, **kwargs)
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  52.         response = view_func(request, *args, **kwargs)
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/contrib/admin/sites.py" in inner
  195.             if not self.has_permission(request):
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/contrib/admin/sites.py" in has_permission
  152.         return request.user.is_active and request.user.is_staff
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/utils/functional.py" in inner
  224.             self._setup()
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/utils/functional.py" in _setup
  357.         self._wrapped = self._setupfunc()
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/contrib/auth/middleware.py" in <lambda>
  22.         request.user = SimpleLazyObject(lambda: get_user(request))
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/contrib/auth/middleware.py" in get_user
  10.         request._cached_user = auth.get_user(request)
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/contrib/auth/__init__.py" in get_user
  152.         user_id = request.session[SESSION_KEY]
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/contrib/sessions/backends/base.py" in __getitem__
  49.         return self._session[key]
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/contrib/sessions/backends/base.py" in _get_session
  175.                 self._session_cache = self.load()
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/contrib/sessions/backends/db.py" in load
  21.                 expire_date__gt=timezone.now()
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/db/models/manager.py" in manager_method
  92.                 return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/db/models/query.py" in get
  351.         num = len(clone)
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/db/models/query.py" in __len__
  122.         self._fetch_all()
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/db/models/query.py" in _fetch_all
  966.             self._result_cache = list(self.iterator())
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/db/models/query.py" in iterator
  265.         for row in compiler.results_iter():
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in results_iter
  700.         for rows in self.execute_sql(MULTI):
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql
  784.         cursor = self.connection.cursor()
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/db/backends/__init__.py" in cursor
  163.         self.validate_thread_sharing()
File "/Volumes/Data/Users/miki725/.virtualenvs/gevent/lib/python2.7/site-packages/django/db/backends/__init__.py" in validate_thread_sharing
  515.                 % (self.alias, self._thread_ident, thread.get_ident()))

Exception Type: DatabaseError at /admin/auth/user/
Exception Value: DatabaseWrapper objects created in a thread can only be used in that same thread. The object with alias 'default' was created in thread id 140735171056384 and this is thread id 4440478576.

AssertionError: Impossible to call blocking function in the event loop callback

Using just python manage.py rungevent 0.0.0.0:8009, I get:

Traceback (most recent call last):
  File "/home/ubuntu/Envs/web/local/lib/python2.7/site-packages/gevent/baseserver.py", line 159, in _do_read
    self.do_handle(*args)
  File "/home/ubuntu/Envs/web/local/lib/python2.7/site-packages/gevent/baseserver.py", line 130, in do_handle
    self._handle(*args)
  File "/home/ubuntu/Envs/web/local/lib/python2.7/site-packages/gevent/pywsgi.py", line 658, in handle
    handler.handle()
  File "/home/ubuntu/Envs/web/local/lib/python2.7/site-packages/gevent/pywsgi.py", line 184, in handle
    result = self.handle_one_request()
  File "/home/ubuntu/Envs/web/local/lib/python2.7/site-packages/gevent/pywsgi.py", line 294, in handle_one_request
    self.requestline = self.read_requestline()
  File "/home/ubuntu/Envs/web/local/lib/python2.7/site-packages/gevent/pywsgi.py", line 287, in read_requestline
    return self.rfile.readline(MAX_REQUEST_LINE)
  File "/usr/lib/python2.7/socket.py", line 476, in readline
    data = self._sock.recv(self._rbufsize)
  File "/home/ubuntu/Envs/web/local/lib/python2.7/site-packages/gevent/socket.py", line 392, in recv
    self._wait(self._read_event)
  File "/home/ubuntu/Envs/web/local/lib/python2.7/site-packages/gevent/socket.py", line 298, in _wait
    self.hub.wait(watcher)
  File "/home/ubuntu/Envs/web/local/lib/python2.7/site-packages/gevent/hub.py", line 341, in wait
    result = waiter.get()
  File "/home/ubuntu/Envs/web/local/lib/python2.7/site-packages/gevent/hub.py", line 568, in get
    return self.hub.switch()
  File "/home/ubuntu/Envs/web/local/lib/python2.7/site-packages/gevent/hub.py", line 330, in switch
    switch_out()
  File "/home/ubuntu/Envs/web/local/lib/python2.7/site-packages/gevent/hub.py", line 334, in switch_out
    raise AssertionError('Impossible to call blocking function in the event loop callback')
AssertionError: Impossible to call blocking function in the event loop callback
((('10.0.0.8', 63542),),
 <WSGIServer at 0x7fbb5d406b10 fileno=5 address=0.0.0.0:8009>) failed with AssertionError

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.