Fixed #93 -- Fixed 'django-admin startproject' to use os.path.join instead of string concatenation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@322 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
5a3da949fa
commit
aeff2cb530
|
@ -16,8 +16,8 @@ APP_ARGS = '[app app ...]'
|
|||
|
||||
# Use django.__path__[0] because we don't know which directory django into
|
||||
# which has been installed.
|
||||
PROJECT_TEMPLATE_DIR = django.__path__[0] + '/conf/%s_template'
|
||||
ADMIN_TEMPLATE_DIR = django.__path__[0] + '/conf/admin_templates'
|
||||
PROJECT_TEMPLATE_DIR = os.path.join(django.__path__[0], 'conf/%s_template')
|
||||
ADMIN_TEMPLATE_DIR = os.path.join(django.__path__[0], 'conf/admin_templates')
|
||||
|
||||
def _get_packages_insert(app_label):
|
||||
return "INSERT INTO packages (label, name) VALUES ('%s', '%s');" % (app_label, app_label)
|
||||
|
|
Loading…
Reference in New Issue