﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
24324	Crashes when project path or path to Django install contains a non-ascii character	notsqrt	Tim Graham	"Hi,

Checked on linux, python 2.7, with Django 1.7.4.

Steps to reproduce:

{{{
mktmpenv 
pip install Django
cd /tmp/
mkdir hého
cd hého/
django-admin startproject project
cd project/
python manage.py startapp app
# add app to INSTALLED_APPS
# add model to app.models
python manage.py makemigrations app
}}}

Location:
{{{
django/db/migrations/writer.py"", line 224, in path
    return os.path.join(basedir, self.filename)
}}}

Root of the bug: just a mix of bytes and text:
{{{
>>> import os
>>> os.path.join(b'/tmp/hého', u'test')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6: ordinal not in range(128)
}}}
"	Bug	closed	Core (Management commands)	1.8	Release blocker	fixed			Accepted	1	0	0	0	0	0
