summaryrefslogtreecommitdiff
path: root/django/core
AgeCommit message (Collapse)Author
2006-07-21Second half of little cleanup tweaks suggested by pyflakes.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-21Fixed a bunch of spurious imports, typos, and other small errors turned up ↵Jacob Kaplan-Moss
by a pass through PyFlakes. This covers about the first third of the errors. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3411 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-21Fixed #2092: added a "is_secure()" method to HttpRequest which correctly ↵Jacob Kaplan-Moss
handles the subtleties of mod_python's interaction with os.environ. This one's been bugging me for about a *year*, so many many thanks to k.shaposhnikov@gmail.com for figuring it out, and Tim Shaffer for pointing out this ticket. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3410 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-21Fixed keyboard slip that was accidentally committedRussell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-21Cleanup of management.py; replaced uses of 'klass' with 'model', and ↵Russell Keith-Magee
normalized some variable naming in get_sql_create() git-svn-id: http://code.djangoproject.com/svn/django/trunk@3404 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-20Clarified debug naming of WSGIRequestsRussell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3393 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-19Fixed #2257 -- MySQL wants constraint names to be unique per-database, so fixedMalcolm Tredinnick
the SQL generation to ensure this. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3373 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-14Added command line flag to disable use of auto-reloader on development server.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3348 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-14Disable use of terminal colors when django-admin is run on a Pocket PC.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-10Fixed #2301 -- Added list_display_links option to 'class Admin', which ↵Adrian Holovaty
regulates which fields in the change list have links. Thanks, kilian git-svn-id: http://code.djangoproject.com/svn/django/trunk@3307 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-10Fixed #2312 -- E-mail validator now accepts TLDs up to 6 characters longAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3305 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-05Fixed #2285 -- Tweaked the error message after model errors at "syncdb" time soMalcolm Tredinnick
that we don't report an app name of "None". git-svn-id: http://code.djangoproject.com/svn/django/trunk@3276 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-04Fixed #1578 -- fixed a corner-case where we still wanting core=True attributesMalcolm Tredinnick
on a model that was not being edited inline. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3275 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-29Added a JSON serializer, a few more tests, and a couple more lines of docs.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-28Added initial cut at serialization framework, along with some basic tests ↵Jacob Kaplan-Moss
and a stab at some docs. This is all a bit rough right now, so expect some bumps. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3225 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-27Fixes #2216 -- Added extra tests for model validity, and cleaned up warning ↵Russell Keith-Magee
messages for existing tests. Models are now invalid if the query string required to access a field (or related object) would clash with the name of another field (or related object). Previous tests only checked the accessor names, not the query string. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-25Fixes #1812 -- Added model validity checks to ensure that models.py exists, ↵Russell Keith-Magee
and has been successfully imported for all INSTALLED_APPS. Previous behaviour was to silently ignore empty/problem models, which resulted in the display of an admin page that doesn't display a supposedly installed model. Thanks to Ian Holsman for the original report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3201 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-23Fixed #1662 -- Added resolver for string-form model references for models ↵Russell Keith-Magee
that have already been loaded, with tests to validate both forward and backward referenced model names. Light refactoring of model loading to make regression tests behave more like normal model loading. Also clarifies the text of some validation errors. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3195 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-21Fixed #1928 -- Correctly create foreign key references when there are multipleMalcolm Tredinnick
keys on multiple models. Based on a patch from Geert Vanderkelen and some diagnosis from hornero. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3182 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20Fixed #2119 -- fixed problems with splitting SQL statements into separateMalcolm Tredinnick
statements. Uses a patch from eaw@woudy.org and some contributions from jpellerin@gmail.com. Also fixes #2034 and #1935. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3178 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20Fixed #2161 -- handle trailing newlines in initial SQL data. IncludesMalcolm Tredinnick
regression test. Thanks to russellm. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3177 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20Added django/core/servers/fastcgi.py and manage.py 'runfcgi' option. Thanks, ↵Adrian Holovaty
jcrasta@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@3174 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20Converted request.META['REQUEST_METHOD'] calls to request.method, throughout ↵Adrian Holovaty
the Django codebase git-svn-id: http://code.djangoproject.com/svn/django/trunk@3171 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20Added 'method' attribute to HttpRequest objectsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3164 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-19Fixed #1088 - Correctly detect when a float with too many digits before theMalcolm Tredinnick
decimal point is passed in. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3142 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-16Added generic foreign key support to Django. Much thanks to Ian Holsman and Jacob Kaplan-Moss
Luke Plant -- most of this code is theirs. Documentation is to follow; for now see the example/unit test. Fixes #529. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3134 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-08Fixed #2109 -- Convert old-style classes to new-style classes throughout ↵Adrian Holovaty
Django. Thanks, Nicola Larosa git-svn-id: http://code.djangoproject.com/svn/django/trunk@3113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-07Fixed #1503 -- Improved model validator to throw an error if a model doesn't ↵Adrian Holovaty
manually define a primary key and has a field named 'id', which conflicts with the auto-primary-key convention. Thanks, mir@noris.de git-svn-id: http://code.djangoproject.com/svn/django/trunk@3100 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-07Removed legacy deprecated_args check from django.core.managementAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3099 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-07Fixed #2098 -- Loosened validation for model 'ordering' parameter by ↵Adrian Holovaty
allowing periods. Thanks, Alex Dedul git-svn-id: http://code.djangoproject.com/svn/django/trunk@3095 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-07Fixed #1697 and #2095 -- Made 'choices' parameter accept any iterableAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-06fixed #2089: added language bidirectional support and updated the admin to ↵Georg Bauer
use it. thanks meir@mksoft! git-svn-id: http://code.djangoproject.com/svn/django/trunk@3091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-05Fixed stupid bug in [3802] Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3083 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-05Small refactoring of django.core.management to allow a custom argv to be ↵Jacob Kaplan-Moss
passed into execute_manager(). This makes custom manage scripts with extra options possible git-svn-id: http://code.djangoproject.com/svn/django/trunk@3082 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-03Eliminated lots of mutable default arguments (since they are bugsLuke Plant
waiting to happen and are memory leaks too). git-svn-id: http://code.djangoproject.com/svn/django/trunk@3070 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-02Fixed #2073 -- Improved 'manage.py shell' not to pass argv to IPython if ↵Adrian Holovaty
it's installed. Thanks, jpellerin@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@3069 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-02Fixed #2025 -- Fixed some issues with URL reversal, which still isn't ready ↵Adrian Holovaty
for prime time. Thanks, medhat git-svn-id: http://code.djangoproject.com/svn/django/trunk@3057 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-01Fixed #2045 - TypeError thrown if a form does not have the correct enctype ↵Luke Plant
for uploading files. It throws a ValidationError now, as it should. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3048 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-01Fixed #720 -- Added first_on_page() and last_on_page() methods to ↵Adrian Holovaty
ObjectPaginator. Thanks, m@bagai.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@3040 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-31Fixed #2049 -- Made isValidEmail validator wider in scope. Thanks, mir@noris.deAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3026 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-30Fixed #2015 -- Fixed sqlinitialdata regexp to handle empty string ↵Adrian Holovaty
insertions. Thanks, Steven Armstrong git-svn-id: http://code.djangoproject.com/svn/django/trunk@3003 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-26Fixed #1023 -- Base handler no longer calls mail_admins() on SystemExit, in ↵Adrian Holovaty
case of forked processes called from views. Thanks, Hugo git-svn-id: http://code.djangoproject.com/svn/django/trunk@2990 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-26Fixed #1935 -- Initial SQL data now works in SQLite if there are multiple ↵Adrian Holovaty
statements. Thanks, jpellerin@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@2985 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-26Fixed #1634 -- Changed django.core.mail to include 'Date' header in e-mails. ↵Adrian Holovaty
Thanks, Eric Walstad git-svn-id: http://code.djangoproject.com/svn/django/trunk@2984 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-19Prevent people from using "startapp" to create apps with the same name as ↵Malcolm Tredinnick
their project. Might stop some of the accidents. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2946 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-16Added first stab at reverse matching to urlresolvers.pyAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2910 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-13Fixed #1235: email sent from {{{django.core.mail}}} will now be encoded usingJacob Kaplan-Moss
the value of the {{{DEFAULT_CHARSET}}} setting. Thanks, igor@goryachev.org and akaihola. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2901 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-09Fixed #1819 -- inspectdb no longer puts null=True for TextField and ↵Adrian Holovaty
CharField. Thanks, mir@noris.de git-svn-id: http://code.djangoproject.com/svn/django/trunk@2872 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-06Improved runserver to display 'CONTROL-C' vs. 'CTRL-BREAK' based on the ↵Adrian Holovaty
current platform git-svn-id: http://code.djangoproject.com/svn/django/trunk@2852 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-05Fixed #1762 -- Fixed Windows error in django.core.management. Thanks, ↵Adrian Holovaty
ross.lazarus@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@2845 bcc190cf-cafb-0310-a4f2-bffc1f526a37