mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-23 23:12:57 +03:00
5 lines
170 B
Python
5 lines
170 B
Python
repo_name = '{{ cookiecutter.project_slug }}'
|
|
|
|
if hasattr(repo_name, 'isidentifier'):
|
|
assert repo_name.isidentifier(), 'Repo name should be valid Python identifier!'
|