#33890: call_command('startproject', 'project_name', '.') raises CommandError
'project_name'
-------------------------------------+-------------------------------------
Reporter: piscvau | Owner: nobody
Type: Bug | Status: closed
Component: Core (Management | Version: 4.0
commands) |
Severity: Normal | Resolution: invalid
Keywords: call_command raises | Triage Stage:
exception | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by piscvau):
Thanks for your answer;
The issue is if you need to create a project, whose name is the name of
the current directory.
I am not sure about other consequences but a very simple fix could be :
in management.commands.templates validate_name, do not run the
import_module test if the name == Path.cwd().stem
--
Ticket URL: <https://code.djangoproject.com/ticket/33890#comment:6>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018267f15949-3fad8155-eee1-431c-bf71-aa766f90e6fe-000000%40eu-central-1.amazonses.com.