Skip to content

Commit

Permalink
Modified collectstatic management command to not include STATIC_ROOT …
Browse files Browse the repository at this point in the history
…in the user prompt since it's misleading when using a non-local storage backend.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15782 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jezdez committed Mar 9, 2011
1 parent 6ffe1d1 commit f05aab1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ def handle_noargs(self, **options):
if options.get('interactive'): if options.get('interactive'):
confirm = raw_input(u""" confirm = raw_input(u"""
You have requested to collect static files at the destination You have requested to collect static files at the destination
location as specified in your settings file ('%s'). location as specified in your settings file.
This will overwrite existing files. This will overwrite existing files.
Are you sure you want to do this? Are you sure you want to do this?
Type 'yes' to continue, or 'no' to cancel: """ % settings.STATIC_ROOT) Type 'yes' to continue, or 'no' to cancel: """)
if confirm != 'yes': if confirm != 'yes':
raise CommandError("Collecting static files cancelled.") raise CommandError("Collecting static files cancelled.")


Expand Down

0 comments on commit f05aab1

Please sign in to comment.