summaryrefslogtreecommitdiff
path: root/django/core
AgeCommit message (Collapse)Author
2005-08-04Improved 'django-admin inspectdb' so that it doesn't raise an exception for ↵Adrian Holovaty
unknown field types. Now it uses TextField by default and outputs a Python comment. git-svn-id: http://code.djangoproject.com/svn/django/trunk@398 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04Fixed #257 -- Empty model modules no longer cause an error. Thanks, Bill de ↵Adrian Holovaty
hÓra git-svn-id: http://code.djangoproject.com/svn/django/trunk@397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02Improved 'django-admin inspectdb' so that it detects ForeignKey ↵Adrian Holovaty
relationships -- PostgreSQL only git-svn-id: http://code.djangoproject.com/svn/django/trunk@395 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02Made a bunch of fixes to auto-generated admin documentation:Jacob Kaplan-Moss
* Views are no longer "doubled" * Links work better (view -> model links and friends were broken) * Performance has been improved so now the pages no longer need to be cached. git-svn-id: http://code.djangoproject.com/svn/django/trunk@391 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02Fixed a subtle bug with the {% load %} tag: if a tag/filter was removed from ↵Jacob Kaplan-Moss
template.registered_tags/filters, {% load %} would fail (since module-level code is only run on an initial import). {% load %} now reloads the module, which makes sure that the tag always works even when someone's been doing something screwy. This fixes #242 (and wouldn't had been found without it, so much thanks). git-svn-id: http://code.djangoproject.com/svn/django/trunk@390 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02Added first stab at 'django-admin.py inspectdb', which takes a database name ↵Adrian Holovaty
and introspects the tables, outputting a Django model. Works in PostgreSQL and MySQL. It's missing some niceties at the moment, such as detection of primary-keys and relationships, but it works. Refs #90. git-svn-id: http://code.djangoproject.com/svn/django/trunk@384 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01Fixed #227 -- the sqlite backend now correctly typecasts unicode objects to ↵Jacob Kaplan-Moss
bytestrings (thanks hugo) git-svn-id: http://code.djangoproject.com/svn/django/trunk@383 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01Refactored meta.py -- created a django.core.meta package, with init.py and ↵Adrian Holovaty
fields.py git-svn-id: http://code.djangoproject.com/svn/django/trunk@378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01Fixed #239 and #107 -- Changed model init() to use Field.get_default() if ↵Adrian Holovaty
the value wasn't explicitly passed as a keyword argument. That means setting 'id=None' is no longer necessary, and you can leave off fields if you want them to have default values set. git-svn-id: http://code.djangoproject.com/svn/django/trunk@360 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01Fixed #214 -- Added get_values() and get_values_iterator() module-level ↵Adrian Holovaty
functions to DB API. Thanks, rmunn git-svn-id: http://code.djangoproject.com/svn/django/trunk@359 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01Improved error message in urlresolvers (fixes #240)Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@357 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29Fixed #228 -- Better handling of timezones. Thanks, rmunnAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29Fixed #219 and #188 -- Database timestamp typecast no longer assumes '-' ↵Adrian Holovaty
delineates the time zone git-svn-id: http://code.djangoproject.com/svn/django/trunk@346 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-27Fixed bug for models with a ForeignKey('self') and order_with_respect_toAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@332 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26Changed django.core.management.get_sql_delete to be more robust when ↵Adrian Holovaty
many-to-many tables don't exist git-svn-id: http://code.djangoproject.com/svn/django/trunk@330 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26Fixed #186 -- Refactored meta.py to remove duplicate code between ↵Adrian Holovaty
function_get_list and function_get_iterator. Thanks, rmunn@pobox.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@329 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26Fixed #206 -- 'django-admin sqlclear' now deletes from admin log to prevent ↵Adrian Holovaty
referential integrity violations git-svn-id: http://code.djangoproject.com/svn/django/trunk@323 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26Fixed #93 -- Fixed 'django-admin startproject' to use os.path.join instead ↵Adrian Holovaty
of string concatenation git-svn-id: http://code.djangoproject.com/svn/django/trunk@322 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26Fixed #198 -- istartswith and iendswith weren't working properly. Thanks, ↵Adrian Holovaty
brantley git-svn-id: http://code.djangoproject.com/svn/django/trunk@321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26Fixed #161 -- Log output for 'django-admin runserver' no longer includes ↵Adrian Holovaty
admin media git-svn-id: http://code.djangoproject.com/svn/django/trunk@320 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26Fixed #166 -- Added an 'in' lookup type to the database APIAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@318 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26Fixed #163 -- Added 'pk' database API option, which is a shorthand for ↵Adrian Holovaty
(primary_key)__exact git-svn-id: http://code.djangoproject.com/svn/django/trunk@316 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26Fixed #204 -- Changed 'django-admin createsuperuser' to disallow blank passwordsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@314 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-25Fixed #193 -- thanks (again), steadicatJacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@311 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-25Fixed #197 -- thanks for finding that, mmarshallJacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@309 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22Fixed #63 -- Refactored django.core.handlers into subclasses to remove ↵Adrian Holovaty
duplicate code git-svn-id: http://code.djangoproject.com/svn/django/trunk@298 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22Fixed #112 -- WSGI handler now displays proper text status. Thanks, ↵Adrian Holovaty
sune.kirkeby@gmail.com! git-svn-id: http://code.djangoproject.com/svn/django/trunk@297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22Django now outputs a warning if you use old ordering syntaxAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@293 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22Fixed #146 -- Changed order_by and ordering parameters to be less verbose. ↵Adrian Holovaty
The old syntax is still supported but will not be supported by first release. git-svn-id: http://code.djangoproject.com/svn/django/trunk@292 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22Fixed a legacy ordering_tuple --> order_by renaming in core.paginatorAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@291 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22Added sqlite3 database backend -- somewhat tested, but probably not 100% ↵Jacob Kaplan-Moss
perfect. git-svn-id: http://code.djangoproject.com/svn/django/trunk@288 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21Refactor dictfetch* methods from mysql backend out into a seperate module; ↵Jacob Kaplan-Moss
this is so that future db backends that need these functions can share them. git-svn-id: http://code.djangoproject.com/svn/django/trunk@276 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21Cleaned up [269] a tiny bitAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21Fixed #132 -- thanks anonymous userJacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@270 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21fixes #133 -- thanks JoeriJacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@269 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21Added auto-reload to standalone server! Fixes #113. Thanks very much to ↵Adrian Holovaty
Jason Huggins for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@266 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21Fixed #92 -- meta.Admin 'fields' parameter is now optional. If it's not ↵Adrian Holovaty
given, Django will use all editable fields by default. This cuts down on redundancy. Also updated relevant docs to reflect the change. git-svn-id: http://code.djangoproject.com/svn/django/trunk@265 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21Improved 'django-admin runserver' so that it explicitly tells you how to ↵Adrian Holovaty
stop it. Also trapped KeyboardInterrupt so stopping it doesn't give an ugly traceback. git-svn-id: http://code.djangoproject.com/svn/django/trunk@264 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21Fixed #114 -- Changed uses of deprecated 'whrandom' module to 'random'Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@262 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21Added 'django-admin createsuperuser' and updated tutorial to use it instead ↵Adrian Holovaty
of manually creating the user in the Python interactive prompt git-svn-id: http://code.djangoproject.com/svn/django/trunk@261 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20Added optional rel_name parameter to ManyToManyField, which makes it ↵Adrian Holovaty
possible to many-to-many-relate a single model to another model more than once. Also updated the model docs to reflect this git-svn-id: http://code.djangoproject.com/svn/django/trunk@257 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20Small code cleanup -- changed django.core.management.get_sql_delete to use ↵Adrian Holovaty
get_m2m_db_table(), and moved get_m2m_db_table() from Field to ManyToManyField, because it's only used by the latter git-svn-id: http://code.djangoproject.com/svn/django/trunk@256 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20Fixed #97 -- Refactored django-admin.py so that it only contains ↵Adrian Holovaty
command-line-interface code. Moved the actual meat into django/core/management.py git-svn-id: http://code.djangoproject.com/svn/django/trunk@242 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20Fixed #102 -- Now using text/plain mimetype for exceptions displayed in the ↵Adrian Holovaty
browser, so angle brackets are no longer an issue git-svn-id: http://code.djangoproject.com/svn/django/trunk@241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20Fixed ForeignKey('self') so that extra cruft parameters aren't necessary. ↵Adrian Holovaty
Also refactored the way meta.Admin is handled, so that fields aren't initialized until you manually call meta.Admin.get_field_objs() git-svn-id: http://code.djangoproject.com/svn/django/trunk@238 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20Made ModPythonHandler.get_response() tolerant of repr(request) that has an ↵Adrian Holovaty
exception git-svn-id: http://code.djangoproject.com/svn/django/trunk@232 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19Improved error message when DATABASE_ENGINE is invalid. It now displays a ↵Adrian Holovaty
list of all available database backends git-svn-id: http://code.djangoproject.com/svn/django/trunk@215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19Fixed #67 -- Human-readable name is now optional in model fields. If a ↵Adrian Holovaty
second positional argument isn't given, Django will use the first argument, converting underscores to spaces. This change is fully backwards-compatible. git-svn-id: http://code.djangoproject.com/svn/django/trunk@212 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19Quick bugfix to [207] -- MySQL doesn't have ILIKEAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@208 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19Added support for istartswith and iendswith in database APIAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@207 bcc190cf-cafb-0310-a4f2-bffc1f526a37