Jon Dufresne
5708327c37
Fixed #23433 -- Deprecated django-admin.py entry point in favor of django-admin.
...
Unify on the entry point created by setuptools entry_points feature.
2019-12-06 12:11:44 +01:00
Albert Wang
2ee1e1a174
Fixed #30283 -- Fixed shellcheck warnings in django_bash_completion.
2019-03-23 11:56:44 -04:00
Mads Jensen
4af88ccbe6
Refs #23919 -- Removed Python 2 reference in django_bash_completion.
2017-07-10 08:54:52 -04:00
Ville Skyttä
34057730a5
Fixed #25222 -- Avoided installing django_bash_completion for python*-config.
2015-08-04 14:27:31 -04:00
Ville Skyttä
74be214e81
Fixed #25221 -- Prevented django_bash_completion from leaking variables into the environment.
2015-08-04 14:27:31 -04:00
Tim Graham
dd55132643
Removed extras/csrf_migration_helper.py
2014-06-09 11:53:09 -04:00
Claude Paroz
96e4b52ab2
Converted Django scripts to argparse
...
Refs #19973 .
2014-06-09 10:13:37 +02:00
Florian Apolloner
ddd52b221c
Removed --skip-scripts from extras/Makefile.
...
This is the default now, see c29f82b4cf
2014-05-16 15:45:58 +02:00
Florian Apolloner
694e6c6f52
Skipped inclusion of scripts (pip will take care of that).
2013-12-29 14:01:55 +01:00
Florian Apolloner
929ceadda1
Switched setup.py to setuptools.
2013-12-27 00:51:53 +01:00
Christopher Medrela
7477a4ffde
Fixed E125 pep8 warnings
2013-11-28 08:50:11 -05:00
Alex Gaynor
c347f78cc1
Fixed all E226 violations
2013-11-03 10:08:55 -08:00
Alex Gaynor
fe995e6cbd
Fixed the remaining E302 violations int eh django package
2013-11-02 17:37:15 -07:00
Alasdair Nicol
a800036981
Fixed #21287 -- Fixed E123 pep8 warnings
2013-10-18 10:07:39 +01:00
Tim Graham
b67ab75e82
Fixed assorted flake8 errors.
2013-10-11 07:25:14 -04:00
Tim Graham
1dae4ac177
Whitespace cleanup.
...
* Removed trailing whitespace.
* Added newline to EOF if missing.
* Removed blank lines at EOF.
* Removed some stray tabs.
2013-10-10 16:49:20 -04:00
Aymeric Augustin
c6964feb54
Modernize the CSRF migration helper.
...
Thanks Lennart Regebro for spotting that code.
2013-05-17 18:15:08 +02:00
Florian Apolloner
a5becad909
Fixed #19252 -- Added support for wheel packages.
...
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2013-05-01 13:46:06 +02:00
Anders Kaseorg
e535da6865
Fixed #19523 -- Improved performance of Django's bash completion
...
Previous version took about 150ms to source, even on a warm cache,
primarily because it forks+execs /usr/bin/basename 44 times.
This patch makes it faster by a factor of 5 (and I imagine that a little
more thought would reduce the time to effectively zero).
2013-01-22 13:50:10 +01:00
Claude Paroz
865cd35c9b
Made more extensive usage of context managers with open.
2012-05-05 14:06:36 +02:00
Claude Paroz
596cb9c7e2
Replaced print statement by print function (forward compatibility syntax).
2012-04-30 20:45:03 +02:00
Claude Paroz
3904b74a3f
Fixed #18013 -- Use the new 'as' syntax for exceptions.
...
Thanks Clueless for the initial patch.
Note that unittest has been purposely left out (external package only used by Python 2.6).
2012-04-29 20:57:15 +02:00
Jannis Leidel
bce890ace4
Fixed #16584 -- Fixed a bunch of typos in code comments. Thanks, Bernhard Essl.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16598 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-12 14:14:15 +00:00
Luke Plant
b97b9fb8f8
Fixed #15493 - csrf_migration_helper.py parsing fix.
...
Thanks to 'john' for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15647 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-25 09:44:52 +00:00
Russell Keith-Magee
1743529912
Fixed #12174 -- Corrected Bash command line completion when calling "python manage.py". Thanks to sethp for the report, and SmileyChris for the initial patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12386 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-05 15:42:22 +00:00
Luke Plant
63c5e6621a
Various fixes/improvements to the the extras/csrf_migration_helper.py script
...
- Fixed various bugs/oddities with command line parsing
- Find 'include' tags that use single quotes
- Fixed for new style TEMPLATE_LOADERS setting
- Don't silently ignore non-existent paths
- Removed Python-2.3-ism
- Removed an unnecessary loop
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12267 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-20 14:18:13 +00:00
Luke Plant
1af45dc7bc
Fixed #12649 - more helpful Unicode exceptions for CSRF migration helper script
...
Thanks akaihola
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12266 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-20 12:54:19 +00:00
Luke Plant
8e70cef9b6
Fixed #9977 - CsrfMiddleware gets template tag added, session dependency removed, and turned on by default.
...
This is a large change to CSRF protection for Django. It includes:
* removing the dependency on the session framework.
* deprecating CsrfResponseMiddleware, and replacing with a core template tag.
* turning on CSRF protection by default by adding CsrfViewMiddleware to
the default value of MIDDLEWARE_CLASSES.
* protecting all contrib apps (whatever is in settings.py)
using a decorator.
For existing users of the CSRF functionality, it should be a seamless update,
but please note that it includes DEPRECATION of features in Django 1.1,
and there are upgrade steps which are detailed in the docs.
Many thanks to 'Glenn' and 'bthomas', who did a lot of the thinking and work
on the patch, and to lots of other people including Simon Willison and
Russell Keith-Magee who refined the ideas.
Details of the rationale for these changes is found here:
http://code.djangoproject.com/wiki/CsrfProtection
As of this commit, the CSRF code is mainly in 'contrib'. The code will be
moved to core in a separate commit, to make the changeset as readable as
possible.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11660 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-10-26 23:23:07 +00:00
Joseph Kocherhans
677ddcbb04
Fixed #10752 . Added more advanced bash completion. Thanks, Arthur Koziel.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11526 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-09-11 23:15:59 +00:00
Jacob Kaplan-Moss
7e06b69a3d
Removed outdated "adminindex" command -- the same behavior is now far easier and better done in a template, or perhaps a custom AdminSite.index
function. Refs #5500 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8548 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-25 18:53:18 +00:00
Malcolm Tredinnick
3cfa3cbd07
Fixed #5522 -- Moved make-messages, compile-messages and daily-cleanup into django-admin.py.
...
They are now called "makemessages", "compilemessages" and "cleanup". This is
backwards incompatible for make-messages.py and compile-messages.py, although
the old executables still exist for now and print an error pointing the caller
to the right command to call.
This reduces the number of binaries and man pages Django needs to install.
Patch from Janis Leidel.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7844 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-06 06:39:44 +00:00
Russell Keith-Magee
3ce81068b8
Fixed #7525 -- Added createsuperuser to the bash completion script. Thanks to John Scott for the fix.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7727 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-23 12:42:09 +00:00
Russell Keith-Magee
c5f7caba72
Refs #7268 -- Added svn:executable flag for the Bash completion script.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7691 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-18 13:27:20 +00:00
Russell Keith-Magee
f9b9052c55
Refs #7268 -- Added django-admin as an alias in the django-bash-completion script. Thanks, Raphael Hertzog <hertzog@debian.org>
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7690 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-18 13:17:23 +00:00
Jacob Kaplan-Moss
aad8342aa4
Fixed #6661 : fixed a bug with bash completion and python -i. Thanks, Soeren Sonnenburg.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7156 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-25 19:38:09 +00:00
Russell Keith-Magee
a10e73ac30
Fixed some documentation strings in django-admin, and updated the bash completion script.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5245 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-15 11:39:00 +00:00
Malcolm Tredinnick
a89b51b033
Fixed #1240 -- Fixed portability problem in bash completion script. Thanks,
...
Paolo.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4677 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-08 03:34:05 +00:00
Jacob Kaplan-Moss
0e683f6da4
Fixed #1240 : added better support for different names for "python" to django_bash_completion. Thanks, paolo.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4646 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-28 15:39:53 +00:00
Jacob Kaplan-Moss
0a2155e5b3
Added completetion support for app names to django_base_completion, which closes #1240 . Thanks for the patch, Rob Hudson
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4575 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-25 16:33:39 +00:00
Malcolm Tredinnick
3465a4f6f4
Fixed #1240 -- Updated bash completion file to accomodate changes in r3174.
...
Thanks, Paolo.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3187 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-21 11:15:01 +00:00
Adrian Holovaty
f69cf70ed8
MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-02 01:31:56 +00:00