Commit Graph

33 Commits

Author SHA1 Message Date
Adrian Holovaty c8930e3af4 Fixed #357 -- Added a '--pythonpath' option to django-admin. Thanks for the patch, Hugo
git-svn-id: http://code.djangoproject.com/svn/django/trunk@793 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 17:22:23 +00:00
Jacob Kaplan-Moss 0fa1aa8711 Added a database-backed cache backend, along with a tool in django-admin to
create the necessary table structure.  This closes #515; thanks again, 
Eugene!


git-svn-id: http://code.djangoproject.com/svn/django/trunk@692 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-25 22:03:30 +00:00
Adrian Holovaty fe66d3b83b Fixed spacing bug in '--help' output of django-admin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@606 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-02 18:23:42 +00:00
Adrian Holovaty 00c6acaaf3 Fixed #360 -- runserver now takes optional 'ip:port' in addition to 'port'. Thanks, benno@jeamland.net
git-svn-id: http://code.djangoproject.com/svn/django/trunk@539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-19 21:23:56 +00:00
Adrian Holovaty 07889c13a6 Fixed #1 -- Added anonymous session support via middleware and 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-16 22:54:05 +00:00
Adrian Holovaty 8f9e5b6b3b Added 'django-admin.py validate', which validates all installed models. 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-15 05:05:52 +00:00
Adrian Holovaty f4e4ae96cb Improved 'django-admin inspectdb' so that it detects ForeignKey relationships -- PostgreSQL only
git-svn-id: http://code.djangoproject.com/svn/django/trunk@395 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 22:33:39 +00:00
Adrian Holovaty d9401b78f1 Added first stab at 'django-admin.py inspectdb', which takes a database name 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-02 17:08:24 +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 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
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
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 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 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 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 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 a7506973af Moved default admin from media to django/conf/admin_media, so Django is able 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-18 22:35:04 +00:00
Adrian Holovaty b68c478aa5 Added 'django-admin.py runserver', which starts a lightweight development server running Django on a local port
git-svn-id: http://code.djangoproject.com/svn/django/trunk@174 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 15:25:58 +00:00
Adrian Holovaty 86d9ae269d Moved django.bin.profiling.handler to django.core.handlers.profiler-hotshot
git-svn-id: http://code.djangoproject.com/svn/django/trunk@170 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 06:34:34 +00:00
Adrian Holovaty 4e094e26e6 Renamed django.core.handler.CoreHandler to ModPythonHandler, in preparation for WSGI support
git-svn-id: http://code.djangoproject.com/svn/django/trunk@168 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 06:10:00 +00:00
Adrian Holovaty 683755118f Fixed #53 -- Thanks, Dobbes!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@162 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 02:38:44 +00:00
Adrian Holovaty fca9ba3f8c Set executable bit on django-admin.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@102 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 06:00:19 +00:00
Adrian Holovaty 2b40dee38d Changed django-admin so that it doesn't load django.core.db or django.core.meta unless it needs to. As a result, 'django-admin startproject' works even if the database parameters are set incorrectly
git-svn-id: http://code.djangoproject.com/svn/django/trunk@101 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 05:44:50 +00:00
Adrian Holovaty c0daa77ea6 django-admin.py startproject now automatically points admin TEMPLATE_DIRS setting at the location of the default admin templates
git-svn-id: http://code.djangoproject.com/svn/django/trunk@95 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 04:07:06 +00:00
Adrian Holovaty d095db81f5 'django-admin.py init' now creates a site in the sites table, and project_template.settings.main.SITE_ID is now set to 1
git-svn-id: http://code.djangoproject.com/svn/django/trunk@93 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 03:48:36 +00:00
Adrian Holovaty dc5f2506d1 Changed 'django-admin sqlclear' to output deletion of content_types table now that we're not using ON DELETE CASCADE anymore
git-svn-id: http://code.djangoproject.com/svn/django/trunk@88 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 23:43:17 +00:00
Adrian Holovaty 0a35fce98a Changed 'django-admin startapp' so that it try to write to INSTALLED_APPS magically. Also changed 'django-admin sqlclear' to reverse the output
git-svn-id: http://code.djangoproject.com/svn/django/trunk@87 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 23:41:39 +00:00
Adrian Holovaty d75fde94a7 Changed django-admin startproject so that it doesn't copy .pyc files
git-svn-id: http://code.djangoproject.com/svn/django/trunk@79 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 22:24:51 +00:00
Adrian Holovaty 41c99f35db Changed setup.py author and added django-admin to distutils 'scripts'
git-svn-id: http://code.djangoproject.com/svn/django/trunk@68 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 20:46:05 +00:00
Adrian Holovaty 775f433988 Moved django.bin.setup to root level and converted it to use setuptools. Still not ready for prime time, though
git-svn-id: http://code.djangoproject.com/svn/django/trunk@65 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 19:49:10 +00:00
Adrian Holovaty c8cae5bed9 Removed gunk from legacy django.bin.setup, although distutils installation isn't done yet
git-svn-id: http://code.djangoproject.com/svn/django/trunk@60 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 19:18:09 +00:00
Adrian Holovaty 2fb6c3b845 Fixed #30 -- django-admin startproject and startapp now ignore directories starting with a dot
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-14 01:32:23 +00:00
Adrian Holovaty ed114e1510 Imported Django from private SVN repository (created from r. 8825)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-13 01:25:57 +00:00