#18091: Non-ASCII templates break `django-admin.py startproject
--template=TEMPLATE`
-------------------------------------+-------------------------------------
     Reporter:  akaihola             |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Core (Management     |                  Version:  SVN
  commands)                          |               Resolution:
     Severity:  Normal               |             Triage Stage:
     Keywords:                       |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by akaihola):

 * needs_better_patch:   => 0
 * needs_docs:   => 0
 * needs_tests:   => 0


Comment:

 I accidentally copy-pasted the traceback from a run with a patched Django
 source tree. This is the correct traceback:
 {{{
 $ django-admin.py startproject --template=project_template g2dt /tmp/g2dt
 Traceback (most recent call last):
   File "/django/django/bin/django-admin.py", line 5, in <module>
     management.execute_from_command_line()
   File "django/core/management/__init__.py", line 442, in
 execute_from_command_line
     utility.execute()
   File "django/core/management/__init__.py", line 381, in execute
     self.fetch_command(subcommand).run_from_argv(self.argv)
   File "django/core/management/base.py", line 195, in run_from_argv
     self.execute(*args, **options.__dict__)
   File "django/core/management/base.py", line 231, in execute
     output = self.handle(*args, **options)
   File "django/core/management/commands/startproject.py", line 31, in
 handle
     super(Command, self).handle('project', project_name, target,
 **options)
   File "django/core/management/templates.py", line 161, in handle
     new_file.write(content)
 UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in
 position 75: ordinal not in range(128)
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18091#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to