python manage.py startapp 維護團隊
CommandError: '維護團隊' is not a valid app name. Please make sure the
name begins with a letter or underscore.
--
Ticket URL: <https://code.djangoproject.com/ticket/25589>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* component: Uncategorized => Internationalization
* needs_tests: => 0
* version: 1.8 => master
* needs_docs: => 0
* type: Uncategorized => New feature
* stage: Unreviewed => Accepted
Comment:
I think we should indeed follow Python policy. See also
[https://www.python.org/dev/peps/pep-3131/ PEP 3131].
Could you investigate about existing validators for such identifiers?
--
Ticket URL: <https://code.djangoproject.com/ticket/25589#comment:1>
* owner: nobody => yoongkang
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/25589#comment:2>
* has_patch: 0 => 1
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/25589#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"3f300efede9f9670f4c413ff85ad731def15992b" 3f300efe]:
{{{
#!CommitTicketReference repository=""
revision="3f300efede9f9670f4c413ff85ad731def15992b"
Fixed #25589 -- Allowed startapp/project to create apps with Unicode
characters in the name.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25589#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"89359347c4e7be123dd99d13a43d75e8610ae1dc" 8935934]:
{{{
#!CommitTicketReference repository=""
revision="89359347c4e7be123dd99d13a43d75e8610ae1dc"
Refs #25589 -- Fixed admin_scripts test failure on Windows.
Traceback (most recent call last):
File "tests\admin_scripts\tests.py", line 646, in
test_startapp_unicode_name
content = f.read()
File "lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 46:
character maps to <undefined>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25589#comment:5>