mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-29 04:54:02 +03:00
9 lines
295 B
Python
9 lines
295 B
Python
import cookiecutter
|
|
|
|
project_slug = '{{ cookiecutter.project_slug }}'
|
|
|
|
if hasattr(project_slug, 'isidentifier'):
|
|
assert project_slug.isidentifier(), 'Project slug should be valid Python identifier!'
|
|
|
|
assert cookiecutter.__version__ > '1.3.0', 'Please upgrade your Cookiecutter installation'
|