summaryrefslogtreecommitdiff
path: root/django/bin/django-admin.py
AgeCommit message (Collapse)Author
2005-12-06Moved all logic from django-admin.py into django.core.management, into a new ↵Adrian Holovaty
execute_from_command_line() function, so it can be called from other scripts. Also improved createproject to disallow 'django' and 'test' as project names. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1553 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-02Fixed #983 -- Made 'django-admin.py --help' output easier to read. Thanks, ↵Adrian Holovaty
Oliver git-svn-id: http://code.djangoproject.com/svn/django/trunk@1526 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-28Fixed #943 -- Restored django-admin createsuperuser functionality with no ↵Adrian Holovaty
arguments. Thanks, deric git-svn-id: http://code.djangoproject.com/svn/django/trunk@1477 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-28Fixed #798 and #715 -- Added optional arguments to createsuperuser, for each ↵Adrian Holovaty
use in shell scripts. Thanks for the patch, bjorn@exoweb.net git-svn-id: http://code.djangoproject.com/svn/django/trunk@1474 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11fix a problem that masks errors in settings files for some users - in those ↵Georg Bauer
cases you only got "INSTALLED_APPS not defined", but in reality your settings file was broken. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11Changed django-admin.py to display help if invoked with no arguments. ↵Adrian Holovaty
Thanks, sopel git-svn-id: http://code.djangoproject.com/svn/django/trunk@1173 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-04Merged i18n branch into the trunk! Fixes #65, and perhaps some others. NB: ↵Jacob Kaplan-Moss
this means that the i18n branch is now obsolete and will be made read-only. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1068 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-23Added 'django-admin.py installperms' commandAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1005 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06Fixed #357 -- Added a '--pythonpath' option to django-admin. Thanks for the ↵Adrian Holovaty
patch, Hugo git-svn-id: http://code.djangoproject.com/svn/django/trunk@793 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-25Added a database-backed cache backend, along with a tool in django-admin to Jacob Kaplan-Moss
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-02Fixed spacing bug in '--help' output of django-adminAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@606 bcc190cf-cafb-0310-a4f2-bffc1f526a37
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-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-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-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-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-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-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-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-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-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 #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-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-18Added 'django-admin.py runserver', which starts a lightweight development ↵Adrian Holovaty
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-18Fixed #53 -- Thanks, Dobbes!Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@162 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16Set executable bit on django-admin.pyAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@102 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16Changed django-admin so that it doesn't load django.core.db or ↵Adrian Holovaty
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-16django-admin.py startproject now automatically points admin TEMPLATE_DIRS ↵Adrian Holovaty
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'django-admin.py init' now creates a site in the sites table, and ↵Adrian Holovaty
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-15Changed 'django-admin sqlclear' to output deletion of content_types table ↵Adrian Holovaty
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-15Changed 'django-admin startapp' so that it try to write to INSTALLED_APPS ↵Adrian Holovaty
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-15Changed django-admin startproject so that it doesn't copy .pyc filesAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@79 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15Changed setup.py author and added django-admin to distutils 'scripts'Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@68 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-14Fixed #30 -- django-admin startproject and startapp now ignore directories ↵Adrian Holovaty
starting with a dot git-svn-id: http://code.djangoproject.com/svn/django/trunk@8 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-13Imported Django from private SVN repository (created from r. 8825)Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3 bcc190cf-cafb-0310-a4f2-bffc1f526a37