Skip to content
Browse files

Fixed #2932 -- Added more details to the warning message in 'manage.p…

…y reset'. Thanks for the patch,

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 60b46d7 commit 3536f891087a98dbb7b449b30e109e9ba5a4e2e1 @adrianholovaty adrianholovaty committed
Showing with 6 additions and 4 deletions.
  1. +6 −4 django/core/
10 django/core/
@@ -540,7 +540,7 @@ def syncdb(verbosity=1, interactive=True):
syncdb.args = ''
def get_admin_index(app):
@@ -627,6 +627,7 @@ def install(app):
def reset(app, interactive=True):
"Executes the equivalent of 'get_sql_reset' in the current database."
from django.db import connection, transaction
+ from django.conf import settings
app_name = app.__name__.split('.')[-2]
@@ -638,13 +639,14 @@ def reset(app, interactive=True):
if interactive:
confirm = raw_input("""
You have requested a database reset.
-This will IRREVERSIBLY DESTROY any data in your database.
+This will IRREVERSIBLY DESTROY any data for
+the "%s" application in the database "%s".
Are you sure you want to do this?
-Type 'yes' to continue, or 'no' to cancel: """)
+Type 'yes' to continue, or 'no' to cancel: """ % (app_name, settings.DATABASE_NAME))
confirm = 'yes'
if confirm == 'yes':
cursor = connection.cursor()

0 comments on commit 3536f89

Please sign in to comment.
Something went wrong with that request. Please try again.