﻿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
33890	call_command('startproject', 'project_name', '.') raises CommandError 'project_name'	piscvau	nobody	"call_command ('startproject', 'project_name', '.') shoud create a project named 'project_name' in the current directory.

to reproduce the bug : 
from django.core import management
from pathlib import Path
project_name = Path.cwd().stem
management.call_command('startproject', project_name, '.')

This raises the exception 

django.core.management.base.CommandError: <project_name>  conflicts with the name of an existing Python module and cannot be used as a project name. Please try another name.

This is because the initial directory of the python script is in sys.module.









"	Bug	new	Core (Management commands)	4.0	Normal		call_command raises exception		Unreviewed	0	0	0	0	1	0
