mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-03-01 09:50:39 +03:00
* Address issue #534 * missing comma added * remove unecesssary version check #534
This commit is contained in:
parent
6269effbd7
commit
fa89445f66
|
@ -21,5 +21,6 @@
|
||||||
"use_docker": "y",
|
"use_docker": "y",
|
||||||
"use_heroku": "n",
|
"use_heroku": "n",
|
||||||
"use_grunt": "n",
|
"use_grunt": "n",
|
||||||
"open_source_license": ["MIT", "BSD", "Apache Software License 2.0", "Not open source"]
|
"open_source_license": ["MIT", "BSD", "Apache Software License 2.0", "Not open source"],
|
||||||
|
"_cookiecutter_version": "Minimum cookiecutter version"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
import cookiecutter
|
|
||||||
|
|
||||||
project_slug = '{{ cookiecutter.project_slug }}'
|
project_slug = '{{ cookiecutter.project_slug }}'
|
||||||
|
|
||||||
if hasattr(project_slug, 'isidentifier'):
|
if hasattr(project_slug, 'isidentifier'):
|
||||||
assert project_slug.isidentifier(), 'Project slug should be valid Python identifier!'
|
assert project_slug.isidentifier(), 'Project slug should be valid Python identifier!'
|
||||||
|
|
||||||
assert cookiecutter.__version__ > '1.3.0', 'Please upgrade your Cookiecutter installation'
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user