~ubuntu-branches/debian/sid/python-django/sid

« back to all changes in this revision

Viewing changes to django/core/management/templates.py

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2014-09-17 14:15:11 UTC
  • mfrom: (1.3.17) (6.2.18 experimental)
  • Revision ID: package-import@ubuntu.com-20140917141511-icneokthe9ww5sk4
Tags: 1.7-2
* Release to unstable.
* Add a migrate-south sample script to help users apply their South
  migrations. Thanks to Brian May.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
                    help='The file name(s) to render. '
52
52
                         'Separate multiple extensions with commas, or use '
53
53
                         '-n multiple times.')
54
 
        )
55
 
    requires_model_validation = False
 
54
    )
 
55
    requires_system_checks = False
56
56
    # Can't import settings during this command, because they haven't
57
57
    # necessarily been created.
58
58
    can_import_settings = False
229
229
            tmp = url.rstrip('/')
230
230
            filename = tmp.split('/')[-1]
231
231
            if url.endswith('/'):
232
 
                display_url  = tmp + '/'
 
232
                display_url = tmp + '/'
233
233
            else:
234
234
                display_url = url
235
235
            return filename, display_url
266
266
                guessed_filename += ext
267
267
 
268
268
        # Move the temporary file to a filename that has better
269
 
        # chances of being recognnized by the archive utils
 
269
        # chances of being recognized by the archive utils
270
270
        if used_name != guessed_filename:
271
271
            guessed_path = path.join(tempdir, guessed_filename)
272
272
            shutil.move(the_path, guessed_path)