django_concurrent_test_server

Django app to give a concurrent alternative to the runserver command
Download

django_concurrent_test_server Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Other/Proprietary Li...
  • Publisher Name:
  • James Aylett

django_concurrent_test_server Tags


django_concurrent_test_server Description

Django app to give a concurrent alternative to the runserver command django_concurrent_test_server is a quick hack that provides a runconcurrentserver command, broadly similar to Django ticket:3357 without patching Django itself.Usage:1. Drop the django_concurrent_test_server directory somewhere on your PYTHONPATH2. Add django_concurrent_test_server to your INSTALLED_APPS3. If threads worry you, and bearing the above warning in mind, set CONCURRENT_THREADING = False in settings.py to use forking4. Use ./manage.py runconcurrentserver to start a concurrent server5. (optional) Add CONCURRENT_RANDOM_DELAY = True to your settings.py to introduce a small, random delay into each request; useful for finding race conditions. (By < http://github.com/wolever >.)6. (option) Set RUNSERVER_DEFAULT_ADDR / RUNSERVER_DEFAULT_PORT in settings.py to override the defaults without having to hack the code. Useful for people who don't like aliases, or move things between machines a lot. Requirements: · Python · Django


django_concurrent_test_server Related Software