mirror of
https://github.com/Hopiu/cookiecutter-django.git
synced 2026-04-30 08:54:43 +00:00
8 lines
295 B
Python
8 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'
|