Permalink
Commits on Jan 20, 2012
  1. @benoitc

    make sure we reload settings.

    benoitc committed Jan 20, 2012
  2. @benoitc

    fix whitespaces

    benoitc committed Jan 20, 2012
Commits on Nov 7, 2011
  1. @tilgovi
  2. @tilgovi

    better logging on http parse errors

    NoMoreData now inherits StopIteration and the StopIteration clause in
    the workers logs the reason at debug level.
    tilgovi committed Nov 7, 2011
Commits on Nov 6, 2011
  1. @tilgovi
  2. @tilgovi

    django -> djangonew

    tilgovi committed Nov 6, 2011
  3. @tilgovi

    re-add old django tests

    tilgovi committed Nov 6, 2011
Commits on Oct 28, 2011
  1. @tilgovi

    better sys.path and environment for django

     - Add the project directory's parent dir to sys.path so that Django
       can find user apps in side-by-side layout.
     - Wait until import time to modify os.environ. This change ensures
       that the project path can contain symbolic links and a reload will
       pick up the new project.
     - Stop using ENVIRONMENT_VARIABLE to minimize use of Django internal
       symbols.
    tilgovi committed Oct 28, 2011
  2. @tilgovi

    fix django example application (again)

    With this change, ./manage run_gunicorn works perfectly. However, due
    to oustanding issues being discussed about PYTHONPATH and import magic,
    running `gunicorn_django djangotest" results in the `testing` module
    failing to load. This discussion really comes down to whether or not
    gunicorn should make any attempt to modify sys.path. Of note is that
    when invoked as `gunicorn_django` os.getcwd() is not in sys.path.
    tilgovi committed Oct 28, 2011
Commits on Oct 27, 2011
  1. @tilgovi

    remove debug print

    tilgovi committed Oct 27, 2011
Commits on Oct 26, 2011
  1. @tilgovi

    update django example

    tilgovi committed Oct 26, 2011
  2. @tilgovi
  3. @tilgovi

    Breaking change to gunicorn_django and paths

    Gunicorn now does far less magic with paths when importing the settings
    module for Django. This change conforms with the new project layout
    expectations in Django 1.4+.
    
    A summary of changes is as follows:
     - Renamed APP_MODULE argument to PROJECT_DIR
     - Deprecated Django setup_environ() is no longer used
     - sys.path is not altered; settings module imported with the imp module
     - imports must conform to Django 1.4+ project layout specifications
    
    More details can be found in the Django 1.4 release documentation.
    tilgovi committed Oct 26, 2011
Commits on Oct 25, 2011
  1. @benoitc

    add Evan Mezeske to the THANKS

    benoitc committed Oct 25, 2011
  2. @emezeske @benoitc

    Don't call logging functions in the signal handler.

    The standard logger uses locking functions which are NOT guaranteed to
    be re-entrant [1], so this could (potentially) result in deadlock or a
    crash.
    
    [1] http://docs.python.org/library/logging.html Section 15.7.8.
    emezeske committed with benoitc Oct 25, 2011
  3. @emezeske @benoitc

    Log critical as critical, not exception.

    This prevents weird things from happening when log.critical is called
    in a non-except context.  Typically it would result in either 'None'
    or the last exception being logged, neither of which is desirable.
    emezeske committed with benoitc Oct 25, 2011
Commits on Oct 19, 2011
  1. @tilgovi

    Merge pull request #276 from bgilbert/patch-1

    Fix subcommand name in Django run_gunicorn error message
    tilgovi committed Oct 19, 2011
  2. @bgilbert
Commits on Oct 11, 2011
  1. @tilgovi

    typo - fix #273

    tilgovi committed Oct 11, 2011
Commits on Oct 8, 2011
  1. @tilgovi

    refactor djangoapp loading

    This change fixes #266 by waiting until the app is loaded to invoke
    `setproctitle()`. Other improvements to `djangoapp`
     * Remove some redundant code by factoring out `wsgi_handler` property
     * Replace `__import__` and `django.utils.importlib` with recursive
       calls to `imp` module to verify loading
     * Separate find_settings from import_settings to be more clear about
       when sys.path is modified to make reload easier.
    tilgovi committed Oct 8, 2011
Commits on Oct 5, 2011
  1. @tilgovi

    typo

    tilgovi committed Oct 5, 2011
  2. @benoitc

    manage multiple headers entry. Rather than waiting for the new HTTP

    parser apply this patch now. Thanks @taejo for the patch. close #267
    benoitc committed Oct 5, 2011
  3. @benoitc

    allows people to set the X-Forwarded-For header key and disable it by

    setting an empty string. close #268 . Thanks for the feedback!
    benoitc committed Oct 5, 2011
  4. @benoitc
Commits on Sep 29, 2011
  1. @benoitc
Commits on Sep 28, 2011
  1. @benoitc

    add accesslog example

    benoitc committed Sep 28, 2011
Commits on Sep 23, 2011
  1. @benoitc

    sync doc

    benoitc committed Sep 23, 2011
  2. @benoitc

    better wording in changelog

    benoitc committed Sep 23, 2011
  3. @benoitc

    bump to 0.13.4

    - fix closerange function on python 2.5 (typo)
    benoitc committed Sep 23, 2011
Commits on Sep 22, 2011
  1. @tilgovi

    fix #262: typo krange -> xrange

    tilgovi committed Sep 22, 2011
Commits on Sep 19, 2011
  1. @benoitc

    sync doc

    benoitc committed Sep 19, 2011
  2. @benoitc

    bump to 0.13.3

    benoitc committed Sep 19, 2011
  3. @benoitc

    update doc

    benoitc committed Sep 19, 2011
  4. @benoitc

    fix typo

    benoitc committed Sep 19, 2011
  5. @tilgovi