Commit Graph

10382 Commits

Author SHA1 Message Date
Jacob Kaplan-Moss 6b514f1aab Fixed #137 -- thanks nesh@studioquattro.co.yu
git-svn-id: http://code.djangoproject.com/svn/django/trunk@268 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 13:53:33 +00:00
Adrian Holovaty e1d21e5bcf Added copyright notice to utils/autoreload for CherryPy folks
git-svn-id: http://code.djangoproject.com/svn/django/trunk@267 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 04:10:47 +00:00
Adrian Holovaty 9566a61a22 Added auto-reload to standalone server! Fixes #113. Thanks very much to Jason Huggins for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@266 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 04:08:54 +00:00
Adrian Holovaty c21f6ecee2 Fixed #92 -- meta.Admin 'fields' parameter is now optional. If it's not 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-21 03:46:16 +00:00
Adrian Holovaty 304b08e325 Improved 'django-admin runserver' so that it explicitly tells you how to 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-21 03:24:28 +00:00
Adrian Holovaty 03c436bf61 Refactored django.views.admin.main to call opts.admin.get_field_objs() only 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-21 03:19:30 +00:00
Adrian Holovaty 8d144dadd8 Fixed #114 -- Changed uses of deprecated 'whrandom' module to 'random'
git-svn-id: http://code.djangoproject.com/svn/django/trunk@262 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 02:20:40 +00:00
Adrian Holovaty d330be0169 Added 'django-admin createsuperuser' and updated tutorial to use it instead 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-21 02:17:45 +00:00
Adrian Holovaty 0500321a4b Added 'Serving media files' to docs/modpython.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@260 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 01:48:59 +00:00
Adrian Holovaty b2cb66bfbc Filled in INSTALL and README files
git-svn-id: http://code.djangoproject.com/svn/django/trunk@259 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 01:37:28 +00:00
Adrian Holovaty 903920a3d2 Fixed #103 -- Changed docs/install.txt to note there is no official version yet
git-svn-id: http://code.djangoproject.com/svn/django/trunk@258 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 01:33:13 +00:00
Adrian Holovaty bc5359f754 Added optional rel_name parameter to ManyToManyField, which makes it 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-20 22:55:01 +00:00
Adrian Holovaty 895d232671 Small code cleanup -- changed django.core.management.get_sql_delete to use 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-20 21:56:12 +00:00
Jacob Kaplan-Moss d9656947db Fixed #123 -- thanks jay!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@255 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 21:41:43 +00:00
Jacob Kaplan-Moss 65bed3241d Added note about ForeignKey("self"); fixes #100
git-svn-id: http://code.djangoproject.com/svn/django/trunk@254 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 21:24:03 +00:00
Adrian Holovaty 10ace9a124 Added clarification about 'django-admin.py sqlclear' to docs/tutorial01
git-svn-id: http://code.djangoproject.com/svn/django/trunk@253 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 21:01:47 +00:00
Adrian Holovaty 47cc60d94b Fixed small bug in print_error() calls in django-admin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@252 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 20:35:53 +00:00
Jacob Kaplan-Moss 99a75541fd Fixed small problem in [250]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@251 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 20:12:29 +00:00
Jacob Kaplan-Moss e5a8c38fa1 Added "philosophy" sections to tutorials so they can be styled differently
git-svn-id: http://code.djangoproject.com/svn/django/trunk@250 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 20:10:35 +00:00
Adrian Holovaty ec31445c52 Added '--settings' option to django-admin. This specifies which settings 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-20 17:42:36 +00:00
Jacob Kaplan-Moss 1b8c4c4556 Argh: fixed another bug in [244]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 17:12:12 +00:00
Jacob Kaplan-Moss 067f56d93d Fixed really dumb bug in [244]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@245 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 17:09:39 +00:00
Jacob Kaplan-Moss 890bd5b0d2 Added "reversed" option to get_comment_list templatetag to return comments in most-recent-first order.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@244 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 17:07:30 +00:00
Adrian Holovaty 1fc28dea11 Fixed #97 -- Refactored django-admin.py so that it only contains 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-20 15:00:34 +00:00
Adrian Holovaty e215ed3609 Fixed #102 -- Now using text/plain mimetype for exceptions displayed in the 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 06:13:06 +00:00
Adrian Holovaty 2012f7df63 'django-admin runserver' now displays the settings module you're using when it starts up
git-svn-id: http://code.djangoproject.com/svn/django/trunk@240 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 06:08:39 +00:00
Adrian Holovaty 45c334dd8b Cleaned up code in django.conf.settings to move DJANGO_SETTINGS_MODULE into 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-20 06:05:32 +00:00
Adrian Holovaty 584cab7bc5 Fixed ForeignKey('self') so that extra cruft parameters aren't necessary. 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-20 05:46:00 +00:00
Adrian Holovaty 039d121227 Added 'How can I customize the functionality of the admin interface?' to FAQ
git-svn-id: http://code.djangoproject.com/svn/django/trunk@237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 01:34:08 +00:00
Adrian Holovaty a881193693 Fixed typos and tightened up docs/url_dispatch.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@236 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 01:16:51 +00:00
Adrian Holovaty 526f6af782 Changed models.auth.Session.get_session_from_cookie to raise 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-20 00:57:38 +00:00
Adrian Holovaty d384870307 Changed django.views.defaults to use template.Context instead of core.extensions.DjangoContext
git-svn-id: http://code.djangoproject.com/svn/django/trunk@233 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 00:50:37 +00:00
Adrian Holovaty 20820f2e85 Made ModPythonHandler.get_response() tolerant of repr(request) that has an exception
git-svn-id: http://code.djangoproject.com/svn/django/trunk@232 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 00:47:10 +00:00
Adrian Holovaty 49fbe711cc Added missing import to [230]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@231 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 00:43:39 +00:00
Adrian Holovaty 897d24b220 Fixed #95 -- Added SECRET_KEY setting instead of hard-coding keys that are 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-20 00:37:45 +00:00
Adrian Holovaty 43538e78eb Fixed #59 -- Changed hard-coded references to password_change and logout in 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-19 21:39:52 +00:00
Adrian Holovaty 3fc5294d2e Fixed #84 -- CREATE TABLE foreign keys now work in MySQL
git-svn-id: http://code.djangoproject.com/svn/django/trunk@227 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 21:32:58 +00:00
Adrian Holovaty 76633e5499 Fixed inevitable ReST bug in [224]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 20:58:16 +00:00
Adrian Holovaty 9581c9ed96 Added better description of SlugField
git-svn-id: http://code.djangoproject.com/svn/django/trunk@225 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 20:51:00 +00:00
Adrian Holovaty b0e1a1dda8 Changed docs/cache to add docs for site-wide caching, via the cache middleware
git-svn-id: http://code.djangoproject.com/svn/django/trunk@224 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 20:49:07 +00:00
Adrian Holovaty 12321ea962 Added 'Running a development server with mod_python' to docs/modpython.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 20:20:38 +00:00
Adrian Holovaty 3148adf91d Added note about 'PythonDebug Off' to docs/modpython.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@222 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 20:08:17 +00:00
Adrian Holovaty 1dfc375e35 Added some more to docs/modpython.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@221 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 20:05:52 +00:00
Adrian Holovaty 21f152e9e5 Removed redundant word from docs/modpython.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@220 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 20:01:49 +00:00
Adrian Holovaty c97d93ed56 Added note to tutorial02 on how to stop the development server on Unix vs. Windows
git-svn-id: http://code.djangoproject.com/svn/django/trunk@219 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 19:58:19 +00:00
Adrian Holovaty c9f90060a5 Added 'How can I see the raw SQL queries Django is running?' to the FAQ
git-svn-id: http://code.djangoproject.com/svn/django/trunk@218 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 19:55:31 +00:00
Adrian Holovaty 3ad2a774a7 Added 'How to use Django with mod_python' -- docs/modpython.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@217 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 19:55:18 +00:00
Adrian Holovaty 307f3a95c7 Fixed the annoying login error that happens in some cases when 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-19 19:13:33 +00:00
Adrian Holovaty 5874952a8e Improved error message when DATABASE_ENGINE is invalid. It now displays a list of all available database backends
git-svn-id: http://code.djangoproject.com/svn/django/trunk@215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 19:04:12 +00:00
Adrian Holovaty 258afd8fae Fixed bug in example exception in tutorial03 -- thanks, Amit Upadhyay
git-svn-id: http://code.djangoproject.com/svn/django/trunk@214 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 18:34:25 +00:00