summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2005-07-22Fixed #145 -- Changed admin logout to use views.auth.login.logout, which ↵Adrian Holovaty
uses redirects to ensure cookies aren't stale. Thanks, sdelatorre@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@287 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-21Fixed #137 -- thanks nesh@studioquattro.co.yuJacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@268 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21Added copyright notice to utils/autoreload for CherryPy folksAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@267 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-21Refactored django.views.admin.main to call opts.admin.get_field_objs() only ↵Adrian Holovaty
once, and made sure no code accessed admin.fields directly, in preparation for an upcoming change git-svn-id: http://code.djangoproject.com/svn/django/trunk@263 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 small bug in print_error() calls in django-adminAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@252 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20Added '--settings' option to django-admin. This specifies which settings ↵Adrian Holovaty
module to use, if you don't want to deal with setting the DJANGO_SETTINGS_MODULE environment variable. Refactored django-admin to use optparse. Updated the tutorials to use '--settings' instead of environment variables, which can be confusing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@247 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20Argh: fixed another bug in [244]Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20Fixed really dumb bug in [244]Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@245 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20Added "reversed" option to get_comment_list templatetag to return comments ↵Jacob Kaplan-Moss
in most-recent-first order. git-svn-id: http://code.djangoproject.com/svn/django/trunk@244 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-20'django-admin runserver' now displays the settings module you're using when ↵Adrian Holovaty
it starts up git-svn-id: http://code.djangoproject.com/svn/django/trunk@240 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20Cleaned up code in django.conf.settings to move DJANGO_SETTINGS_MODULE into ↵Adrian Holovaty
a variable, so other scripts can introspect it. Also made it display a better error message if DJANGO_SETTINGS_MODULE is set to the empty string git-svn-id: http://code.djangoproject.com/svn/django/trunk@239 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-20Changed models.auth.Session.get_session_from_cookie to raise ↵Adrian Holovaty
SessionDoesNotExist instead of SuspiciousOperation if tamper check fails git-svn-id: http://code.djangoproject.com/svn/django/trunk@234 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20Changed django.views.defaults to use template.Context instead of ↵Adrian Holovaty
core.extensions.DjangoContext git-svn-id: http://code.djangoproject.com/svn/django/trunk@233 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-20Added missing import to [230]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@231 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20Fixed #95 -- Added SECRET_KEY setting instead of hard-coding keys that are ↵Adrian Holovaty
shared for every Django installation. 'django-admin.py startproject' now creates a random SECRET_KEY. The auth and comments modules, and the admin middleware, all use SECRET_KEY now, instead of hard-coded values. git-svn-id: http://code.djangoproject.com/svn/django/trunk@230 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19Fixed #59 -- Changed hard-coded references to password_change and logout in ↵Adrian Holovaty
admin templates to add /admin/ prefix. Still hard-coded, but you can override it in custom templates if your URL structure is different git-svn-id: http://code.djangoproject.com/svn/django/trunk@228 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19Fixed #84 -- CREATE TABLE foreign keys now work in MySQLAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@227 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19Fixed the annoying login error that happens in some cases when ↵Adrian Holovaty
REGISTRATION_COOKIE_DOMAIN isn't set. Now, generally you don't have to sete REGISTRATION_COOKIE_DOMAIN unless you want to use multi-domain cookies (such as '.foo.com') git-svn-id: http://code.djangoproject.com/svn/django/trunk@216 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 #88 -- settings are now forgiving of single-element INSTALLED_APPS and ↵Adrian Holovaty
TEMPLATE_DIRS without trailing commas. git-svn-id: http://code.djangoproject.com/svn/django/trunk@213 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
2005-07-19Improved error message in urlresolvers.RegexURLResolver.resolve to use repr ↵Adrian Holovaty
instead of str on app_path git-svn-id: http://code.djangoproject.com/svn/django/trunk@204 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19Fixed #83 -- Fixed spelling error in django.conf.settings. Nice catch, Manuzhai!Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@203 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19Added a more helpful error message to ↵Adrian Holovaty
django.core.urlresolvers.RegexURLResolver.resolve git-svn-id: http://code.djangoproject.com/svn/django/trunk@196 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19Improved TemplateDoesNotExist error message in django.core.template_fileAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@194 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19Improved ViewDoesNotExist error messages in django.core.urlresolversAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@193 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19Fixed #69 -- Implemented dictfetchone(), dictfetchmany() and dictfetchall() ↵Adrian Holovaty
for mysql DB backend. Thanks, Manuzhai! git-svn-id: http://code.djangoproject.com/svn/django/trunk@190 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18Fixed #76 -- development server now serves images, too, at whatever relative ↵Adrian Holovaty
URL is provided by ADMIN_MEDIA_PREFIX git-svn-id: http://code.djangoproject.com/svn/django/trunk@186 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18Moved default admin from media to django/conf/admin_media, so Django is able ↵Adrian Holovaty
to introspect their location, in preparation for #76 git-svn-id: http://code.djangoproject.com/svn/django/trunk@185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18Fixed #71 -- Changed default admin base_site template to use example.com ↵Adrian Holovaty
instead of mysite.com. Thanks, pb@e-scribe.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@183 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18Fixed bug in dynamically-generated docs -- ForeignKeys were throwing an ↵Adrian Holovaty
exception git-svn-id: http://code.djangoproject.com/svn/django/trunk@182 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18Changed core.handlers.modpython.populate_apache_request NOT to have side ↵Adrian Holovaty
effects on http_response. This has no effect on legacy code but will prevent problems in new code git-svn-id: http://code.djangoproject.com/svn/django/trunk@181 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18Added django.middleware.cache, which lets you cache an entire Django-powered ↵Adrian Holovaty
site by adding a line to your settings git-svn-id: http://code.djangoproject.com/svn/django/trunk@178 bcc190cf-cafb-0310-a4f2-bffc1f526a37