mirror of
				https://github.com/cookiecutter/cookiecutter-django.git
				synced 2025-11-04 09:57:30 +03:00 
			
		
		
		
	Check to confirm that the user has a modern version of Cookiecutter.
This commit is contained in:
		
							parent
							
								
									8992bc4f70
								
							
						
					
					
						commit
						a783828ce7
					
				| 
						 | 
				
			
			@ -2,6 +2,10 @@
 | 
			
		|||
All enhancements and patches to Cookiecutter Django will be documented in this file.
 | 
			
		||||
This project adheres to [Semantic Versioning](http://semver.org/).
 | 
			
		||||
 | 
			
		||||
### [2016-04-25]
 | 
			
		||||
### Added
 | 
			
		||||
- Check to confirm that the user has a modern version of Cookiecutter. (@pydanny)
 | 
			
		||||
 | 
			
		||||
### [2016-04-20]
 | 
			
		||||
### Changed
 | 
			
		||||
- Default to today's date in cookiecutter.json. (@audreyr)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,8 @@
 | 
			
		|||
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'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user