It’s strange behavior when creating a Django project
I need the project name to have a hyphen, for example, "it-company-task-manager." However, when I use this name, everything is created except for the actual project — it remains empty, with only the virtual environment and nothing else. But when I change the name to "ItCompanyTaskManager," everything works as expected, and the project is created as it should. Is this behavior strange or not?
PyCharm Professional version 2024.3.4
Please sign in to leave a comment.
Hi there
Currently the Django project name does not accept certain special characters like whitespace or hyphen.
I agree the behaviour in 2024.3.4 is not very clear however this seems to have been fixed (in latest 2025.1 EAP)
You can see the behaviour when trying to specify a project name with hyphen in 2025.1 EAP it will not allow this.
Also we have a long ongoing case to support special characters for Django project names which you can follow/upvote.
https://youtrack.jetbrains.com/issue/PY-33234/Creating-Django-project-shouldnt-have-extra-restrictions-for-project-name.-There-should-be-separate-field-for-main-django
Please let me know if any further questions.
Kind regards,