summaryrefslogtreecommitdiff
path: root/django/core
AgeCommit message (Collapse)Author
2005-08-19Fixed #360 -- runserver now takes optional 'ip:port' in addition to 'port'. ↵Adrian Holovaty
Thanks, benno@jeamland.net git-svn-id: http://code.djangoproject.com/svn/django/trunk@539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-19Fixed #371 -- Fixed bug in 'random' template filter. Thanks, BoffbowshAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@538 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-18Tweaked [531] slightly, so that it checks for 'is None' instead of boolean 'not'Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@532 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-18Added friendly error message if a view returns None instead of an ↵Adrian Holovaty
HttpResponse object. git-svn-id: http://code.djangoproject.com/svn/django/trunk@531 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-17Fixed bug in manipulator_valid_rel_key() -- it assumed the related object's ↵Adrian Holovaty
primary key was called 'id' git-svn-id: http://code.djangoproject.com/svn/django/trunk@530 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-16Fixed #1 -- Added anonymous session support via middleware and ↵Adrian Holovaty
request.session. Removed the former request.session, which wasn't being used anyway. Removed auth.Session model. See the BackwardsIncompatibleChanges wiki page for IMPORTANT notes on code you'll have to change and a DB table you'll have to create. git-svn-id: http://code.djangoproject.com/svn/django/trunk@518 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-16Small formatting change to validation error in [516], to be consistent with ↵Adrian Holovaty
other validation errors. git-svn-id: http://code.djangoproject.com/svn/django/trunk@517 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-16Added raw_id_admin support to ManyToManyField objects; fixes #260Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@516 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15Changed handlers (both mod_python and WSGI) to support setting multiple ↵Adrian Holovaty
cookies per request git-svn-id: http://code.djangoproject.com/svn/django/trunk@511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15Changed meta.py save() code from [507] to work under sqlite. All tests now ↵Adrian Holovaty
pass in all 3 database backends. git-svn-id: http://code.djangoproject.com/svn/django/trunk@510 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15Improved model validator to validate 'choices' for a fieldAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@509 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15Fixed #320 -- Changed save() code so that it doesn't rely on ↵Adrian Holovaty
cursor.rowcount. MySQLdb sets cursor.rowcount to 0 in an UPDATE statement even if the record already exists. Now save() does a SELECT query to find out whether a record with the primary key already exists. git-svn-id: http://code.djangoproject.com/svn/django/trunk@507 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15Fixed #322 -- Development server now calls validate() again. Thanks, rmunnAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@505 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15Fixed #322 -- 'django-admin runserver' no longer validates models.Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@504 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15Added 'django-admin.py validate', which validates all installed models. ↵Adrian Holovaty
Validation only handles common errors at this point, but we'll be improving it each time we think of a potential model syntax problem. Also changed the development Web server to validate automatically at server start. git-svn-id: http://code.djangoproject.com/svn/django/trunk@503 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15Improved error handling for invalid model parameters that aren't custom ↵Adrian Holovaty
functions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@502 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15Fixed #93 and #279 -- 'django-admin startproject' no longer creates invalid ↵Adrian Holovaty
settings/admin.py on Windows git-svn-id: http://code.djangoproject.com/svn/django/trunk@498 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15Fixed #316 -- Added special-case for MySQL microseconds, so that it doesn't ↵Adrian Holovaty
throw a warning when microseconds are given. git-svn-id: http://code.djangoproject.com/svn/django/trunk@497 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15Fixed #311 -- Small change to docstring. Thanks, rmunnAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@496 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15Fixed #321 -- Undid [494], which assumed the installed version of MySQLdb ↵Adrian Holovaty
had a 'cursors.CursorNW'. Thanks for being consistent, MySQLdb. This opens #316 again. git-svn-id: http://code.djangoproject.com/svn/django/trunk@495 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-14Fixed #316 -- Changed MySQL backend to disregard warningsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@494 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-12Moved django.core.handlers.wsgi.AdminMediaHandler to ↵Adrian Holovaty
django.core.servers.basehttp. Makes more sense to have it in there, because its only use is for the development server. git-svn-id: http://code.djangoproject.com/svn/django/trunk@491 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-11Changed timestamp and time typecasting to preserve microseconds. Added unit ↵Adrian Holovaty
tests to test this behavior, and added a db_typecast unit test module. Refs #306. git-svn-id: http://code.djangoproject.com/svn/django/trunk@487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Refactored django.core.urlresolvers a tiny bitAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@479 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Fixed #126 -- HttpRequest now has a 'raw_post_data' attribute.Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@478 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Fixed #192 -- File uploads now work with built-in Web server. Thanks, ↵Adrian Holovaty
mordaha@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@476 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Added help_doc to django.core.management.installAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@470 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Fixed #81 -- Admin now supports primary_key=True for non-integer fields. ↵Adrian Holovaty
Note that you'll have to make a change to your database if you're using a previous Django installation and want to use non-integer primary key fields. See the BackwardsIncompatibleChanges wiki page for info. git-svn-id: http://code.djangoproject.com/svn/django/trunk@469 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Fixed #299 -- Slugify no longer removes hyphens. Thanks, gch@cs.cmu.eduAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@464 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Refactored the way save() works so that non-integer primary keys are now ↵Adrian Holovaty
possible. custom_pk unit tests (from [458]) now pass. Refs #81. git-svn-id: http://code.djangoproject.com/svn/django/trunk@462 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Changed [459] to use a better interface for the exceptionAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@460 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Changed MySQL backend so that it fails silently if rollback() isn't ↵Adrian Holovaty
supported (the code catches NotSupportedError exception) git-svn-id: http://code.djangoproject.com/svn/django/trunk@459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Undid [455] -- it's not a good enough solution for what I'm trying to doAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@457 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Slightly refactored metasystem -- changed Field pre_save() hooks to ↵Adrian Holovaty
pre_save_add(), in preparation for some bigger changes. Refs #81. git-svn-id: http://code.djangoproject.com/svn/django/trunk@455 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Simplified metasystem get_db_prep_save() hook so that it doesn't take an ↵Adrian Holovaty
'add' parameter -- it wasn't being used, anyway. git-svn-id: http://code.djangoproject.com/svn/django/trunk@454 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Fixed #154 -- Fixed constraint error when deleting an object with a ↵Adrian Holovaty
many-to-many field git-svn-id: http://code.djangoproject.com/svn/django/trunk@447 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-09Small change to docstring in django.core.templateAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@443 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-09Fixed #211 -- edit_inline_type is deprecated, in favor of edit_inline ↵Adrian Holovaty
itself. For example, instead of 'edit_inline=True, edit_inline_type=meta.TABULAR', use 'edit_inline=meta.TABULAR'. git-svn-id: http://code.djangoproject.com/svn/django/trunk@440 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-08Companion checkin to [432]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@433 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-07Changed 'django-admin adminindex' to output relative links, not absolute ↵Adrian Holovaty
links. Thanks, Joe Grace git-svn-id: http://code.djangoproject.com/svn/django/trunk@426 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-05Greatly improved the 404 error message when DEBUG=True. If none of the ↵Adrian Holovaty
urlpatterns matches, Django now displays a list of all the urlpatterns it tried. This should catch a lot of newbie errors, and it's helpful even for power users. git-svn-id: http://code.djangoproject.com/svn/django/trunk@414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-05Refactored the internals of URL parsing to use less codeAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@411 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-05Fixed #275 -- Bug in validators.RequiredIfOtherFieldsGiven. Thanks, jhernandezAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@410 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-05Changed default ManyToOne num_in_admin from 0 to 3, to help avoid confusion ↵Adrian Holovaty
when people forget to set num_in_admin git-svn-id: http://code.djangoproject.com/svn/django/trunk@409 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04Fixed #266 -- Added ValidateIfOtherFieldEquals validator. Thanks again, HugoAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04Tightened up some code in django.core.validatorsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@404 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04Refactored django.core.validators.RequiredIfOtherFieldGiven to remove ↵Adrian Holovaty
duplicate code git-svn-id: http://code.djangoproject.com/svn/django/trunk@403 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04Fixed #268 -- Added AnyValidator and fixed small bug in [399]. Thanks, HugoAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@402 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04Fixed #263 -- inspectdb output now includes a comment reminding people to ↵Adrian Holovaty
run sqlinitialdata. Thanks, Hugo git-svn-id: http://code.djangoproject.com/svn/django/trunk@401 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04Fixed #269 -- Added MatchesRegularExpression validator. Thanks, Hugo!Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@399 bcc190cf-cafb-0310-a4f2-bffc1f526a37