magic-removal: Removed 'init-minimal', which wasn't doing anything useful

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2386 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-02-24 23:35:58 +00:00
parent 773c176c6f
commit 39e4e8ce5a
1 changed files with 0 additions and 28 deletions

View File

@ -461,33 +461,6 @@ def get_admin_index(app):
get_admin_index.help_doc = "Prints the admin-index template snippet for the given app name(s)."
get_admin_index.args = APP_ARGS
def init_minimal():
"Initializes the database."
try:
from django.db import backend, connection, models
cursor = connection.cursor()
# This should probably be done in the test runner, or the test itself.
from django.conf import settings
settings.INSTALLED_APPS += ('django.contrib.contenttypes',)
# Install django.contrib.contenttypes. The tests require Packages to
# to be installed. This ought to be fixed (tests should probably
# install their dependencies)
contenttypes_app = models.get_app('contenttypes')
install(contenttypes_app)
except Exception, e:
import traceback
sys.stderr.write("Error: The database couldn't be initialized.\n")
sys.stderr.write('\n'.join(traceback.format_exception(*sys.exc_info())) + "\n")
try:
connection.rollback()
except UnboundLocalError:
pass
sys.exit(1)
else:
connection.commit()
init_minimal.args = ''
def init():
"Initializes the database with auth, sessions, sites and core."
try:
@ -1093,7 +1066,6 @@ DEFAULT_ACTION_MAPPING = {
'createcachetable' : createcachetable,
# 'dbcheck': database_check,
'init': init,
'init-minimal': init_minimal,
'inspectdb': inspectdb,
'install': install,
'installperms': installperms,