Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/core/servers
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25204 -- Added missing space in runserver logging.Tim Graham2015-08-011-1/+1
|
* Fixed typo in django.core.servers.basehttp message.Alex Vidal2015-02-201-1/+1
|
* Removed old import aliases.Tim Graham2015-02-061-1/+0
|
* Removed FastCGI support per deprecation timeline; refs ↵Tim Graham2015-01-172-191/+2
| | | | #20766.
* Stripped headers containing underscores to prevent ↵Carl Meyer2015-01-131-0/+8
| | | | | | | | spoofing in WSGI environ. This is a security fix. Disclosure following shortly. Thanks to Jedediah Smith for the report.
* Fixed #24069 -- Made ServerHandler a new style class to ↵Andreas Pelme2015-01-021-1/+2
| | | | fix super() call.
* Fixed #4444 - Made runserver suppress 'broken pipe' errorsMatthew Somerville2014-11-281-0/+38
| | | | | | | One handler in WSGIServer, to catch the error when raised from SocketServer.BaseServer's finish_request, and one in WSGIRequestHandler (by creating a subclass of ServerHandler), to catch the error when raised in wsgiref.handlers.BaseHandler's finish_response.
* Fixed #19508 -- Implemented uri_to_iri as per RFC.Anubhav Joshi2014-10-151-0/+17
| | | | | Thanks Loic Bistuer for helping in shaping the patch and Claude Paroz for the review.
* Fixed #23398 -- Added helpful error message when ↵Flavio Curella2014-09-091-1/+11
| | | | runserver is accessed via HTTPS
* Fixed #21773 -- made daemon threads default in the ↵Moayad Mardini2014-06-051-0/+8
| | | | | | development server. Thanks clime for the report.
* Fixed several typos in DjangoAlex Gaynor2014-05-291-1/+1
|
* Moved ServerHandler helper class to tests.Ramiro Morales2014-03-311-49/+1
| | | | It has been only used in the builtin_servers tests since Django 1.4.
* Fixed #21674 -- Deprecated the import_by_path() function ↵Berker Peksag2014-02-081-5/+15
| | | | | | in favor of import_string(). Thanks Aymeric Augustin for the suggestion and review.
* Fixed #14800 -- Suppressed WSGIRequestHandler message ↵Claude Paroz2013-11-091-11/+0
| | | | | | | | | filtering Filtering out static file requests in runserver has been judged arbitrary and can hide some debugging-related activity. Thanks Roy Smith for the report and Aymeric Augustin for the review.
* More attacking E302 violatorsAlex Gaynor2013-11-021-0/+2
|
* Fixed #21302 -- Fixed unused imports and import *.Tim Graham2013-11-022-3/+2
|
* Fixed "Address already in use" from liveserver.Florian Apolloner2013-09-221-8/+1
| | | | | | | | | | | | | Our WSGIServer rewrapped the socket errors from server_bind into WSGIServerExceptions, which is used later on to provide nicer error messages in runserver and used by the liveserver to see if the port is already in use. But wrapping server_bind isn't enough since it only binds to the socket, socket.listen (which is called from server_activate) could also raise "Address already in use". Instead of overriding server_activate too I chose to just catch socket errors, which seems to make more sense anyways and should be more robust against changes in wsgiref.
* Took advantage of django.utils.six.moves.urllib.*.Aymeric Augustin2013-09-051-5/+2
|
* Deprecated django.utils.importlibClaude Paroz2013-07-291-1/+1
| | | | This was a shim for pre-Python 2.7 support.
* Fixed #18336 -- Doubled request_queue_size.Aymeric Augustin2013-04-281-0/+2
| | | | This reduces random failures to load static files with Google Chrome.
* Fixed #18972 -- Refactored bundled wsgi server's ↵Matthew Wood2013-03-201-15/+11
| | | | | | | chunking algorithm. Thanks to amosonn at yahoo.com for the report, @doda for the initial patch and @datagrok for the revamped logic and test case.
* Fixed #18003 -- Preserved tracebacks when re-raising errors.konarkmodi2013-03-191-1/+2
| | | | Thanks jrothenbuhler for draft patch, Konark Modi for updates.
* Fixed #17061 -- Factored out importing object from a ↵Claude Paroz2013-02-041-19/+6
| | | | | | dotted path Thanks Carl Meyer for the report.
* Fixed #16241 -- Ensured the WSGI iterable's close() is ↵Aymeric Augustin2012-12-311-0/+11
| | | | | | always called. Thanks Graham Dumpleton for the report.
* Prevented host resolution when running dev serverClaude Paroz2012-11-031-0/+4
| | | | | Refs #19075, #2494. Thanks Karen Tracey for spotting the issue.
* Removed custom WSGIRequestHandler.get_environClaude Paroz2012-10-201-33/+1
| | | | | | | We probably historically customized it for good reasons, but currently, the differences with upstream Python are not significant any longer. Also fixes #19075 for which a test has been added.
* [py3] Fixed a regression introduced in fcc8de0598.Aymeric Augustin2012-08-161-1/+1
| | | | Thanks George Marshall for the report.
* [py3] Ported django.core.servers.Aymeric Augustin2012-08-161-3/+5
|
* [py3] Switched to Python 3-compatible imports.Aymeric Augustin2012-07-221-2/+2
| | | | | xrange/range will be dealt with in a separate commit due to the huge number of changes.
* [py3] Updated urllib/urllib2/urlparse imports.Aymeric Augustin2012-07-221-4/+7
| | | | | Lots of functions were moved. Use explicit imports in all cases to keey it easy to identify where the functions come from.
* Cleaned up WSGIRequestHandler get_environ to be Python 3 ↵Claude Paroz2012-05-181-14/+12
| | | | | | | compatible headers.type/typeheader attributes are gone in Python 3. Thanks Vinay Sajip for the inspiration of his Python 3 branch.
* Made more extensive usage of context managers with open.Claude Paroz2012-05-051-3/+2
|
* Replaced print statement by print function (forward ↵Claude Paroz2012-04-301-8/+8
| | | | compatibility syntax).
* Fixed #18013 -- Use the new 'as' syntax for exceptions.Claude Paroz2012-04-292-4/+4
| | | | | Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6).
* Fixed #18035 -- Removed deprecated AdminMediaHandler, as ↵Claude Paroz2012-04-081-48/+2
| | | | | | per official deprecation timeline. Thanks Jannis Leidel and Ramiro Morales for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17879 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #6163 -- Made "manage.py help runfcgi" display ↵Julien Phalip2012-01-021-29/+31
| | | | | | proper default values for the runfcgi options. Thanks to ash and Claude Paroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17330 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16360 -- Added WSGI entrypoint to startproject ↵Carl Meyer2011-10-222-2/+42
| | | | | | layout, and enabled internal servers (runserver and runfcgi) to use an externally-defined WSGI application. Thanks to Armin Ronacher, Jannis Leidel, Alex Gaynor, ptone, and Jacob Kaplan-Moss. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17022 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16225 -- Removed unused imports. Many thanks to ↵Jannis Leidel2011-07-132-2/+2
| | | | | | Aymeric Augustin for the work on the patch and Alex for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16050 -- BACKWARDS-INCOMPATIBLE CHANGE: Moved ↵Jannis Leidel2011-06-301-8/+5
| | | | | | | | | | static files of the admin to conventional file system location. This also removes the need for ADMIN_MEDIA_PREFIX and replaces it with the convention to find admin's static files at STATIC_URL + 'admin/'. Thanks to Jacob for the review and general help. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16099 -- Enabled threading for the runserver ↵Jannis Leidel2011-06-171-2/+7
| | | | | | management command and added a --nothreading option to disable it if needed. This should help Google Chrome users because it opens more than one connection speculatively. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16427 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14903 -- Removed much of the code in ↵Jannis Leidel2011-05-281-503/+19
| | | | | | django.core.servers.basehttp that was previously copy-pasted from the wsgiref module which was added to Python 2.5. Many thanks to maxbublis and aaugustin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16288 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15531 -- Partially reverted [15701] due to ↵Jannis Leidel2011-03-021-1/+24
| | | | | | compatibility issues with middlewares that modify content of responses. Thanks for the report, schinckel. Refs #15281. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15703 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15281 -- Made the static view use an iterator ↵Jannis Leidel2011-03-011-24/+1
| | | | | | when serving a file, effectively making this less of a memory hog. Also use the appropriate attributes of the stat object instead of indexes. Thanks for the initial patch, FunkyBob and aaugustin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15701 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixes #15270 -- Moved back the serve view to ↵Jannis Leidel2011-02-141-3/+3
| | | | | | django.views.static due to dependency conflicts with the contrib app staticfiles (reverts parts of r14293). Added a helper function that generates URL patterns for serving static and media files during development. Thanks to Carl for reviewing the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15530 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7735 -- Added support for IPv6 adresses to ↵Jannis Leidel2010-11-261-3/+8
| | | | | | runserver and testserver management command. Thanks to Jason Alonso and Łukasz Rekucki for the report and initial patches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14711 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #10636 -- Added check to make sure the ↵Jannis Leidel2010-11-171-0/+5
| | | | | | ADMIN_MEDIA_PREFIX setting is properly set before serving files with the AdminMediaHandler. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14593 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14693, #14709 -- Backwards incompatible change to ↵Jannis Leidel2010-11-171-14/+14
| | | | | | | | | | | | | | | | rectify the confusion around the STATICFILES_URL and STATICFILES_ROOT settings. * Two new global settings that will be used by -- **but are not limited to** -- the staticfiles app: STATIC_ROOT and STATIC_URL. * Moving the 'django.contrib.staticfiles.templatetags.staticfiles' template tag to the core ('django.templatetags.static') and renaming it to 'get_static_prefix'. * Moving the context processor 'django.contrib.staticfiles.context_processors.staticfiles' to the core ('django.core.context_processors.static') and renaming it to 'static'. * Paths in media definitions will use STATIC_URL as the prefix if the value is not None, and falls back to the previously used MEDIA_URL. Thanks again to the community for constructive criticism and Carl and Russ for sanity-inducing discussions on IRC. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14592 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14524, #14582, #14617, #14665 and #14667 -- ↵Jannis Leidel2010-11-111-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Tweaked staticfiles app. * Updated StaticFilesHandler and AdminMediaHandler to make use of the 404 handler if needed. * Updated runserver management command to serve static files only in DEBUG mode (or if specified the --insecure option) and if the staticfiles app is in INSTALLED_APPS. Also added an option to disable serving completely (--nostatic). * Added check in debug mode if STATICFILES_* settings are different to MEDIA_* settings. * Removed a faulty PendingDeprecationWarning in AdminMediaHandler that is triggered every time runserver is used. * Fixed an issue with the modification time checks when running collectstatic. * Extended and refined documentation. Thanks to everyone for input, especially to Carl Meyer, Ted Kaemming and Adam Vandenberg for patches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14533 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14398 -- Changed runfcgi command to interpret the ↵Ramiro Morales2010-10-271-8/+8
| | | | | | | | umask option argument as an octal value. Thanks petteyg for report and aptiko for help with the fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14360 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #12323 and #11582 -- Extended the ability to ↵Jannis Leidel2010-10-201-62/+23
| | | | | | handle static files. Thanks to all for helping with the original app, the patch, documentation and general support. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14293 bcc190cf-cafb-0310-a4f2-bffc1f526a37