mirror of
				https://github.com/cookiecutter/cookiecutter-django.git
				synced 2025-11-04 09:57:30 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			560 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			560 B
		
	
	
	
		
			Python
		
	
	
	
	
	
project_slug = '{{ cookiecutter.project_slug }}'
 | 
						|
 | 
						|
if hasattr(project_slug, 'isidentifier'):
 | 
						|
    assert project_slug.isidentifier(), 'Project slug should be valid Python identifier!'
 | 
						|
 | 
						|
elasticbeanstalk = '{{ cookiecutter.use_elasticbeanstalk_experimental }}'.lower()
 | 
						|
heroku = '{{ cookiecutter.use_heroku }}'.lower()
 | 
						|
docker = '{{ cookiecutter.use_docker }}'.lower()
 | 
						|
 | 
						|
if elasticbeanstalk == 'y' and (heroku == 'y' or docker == 'y'):
 | 
						|
    raise Exception("Cookiecutter Django's EXPERIMENTAL Elastic Beanstalk support is incompatible with Heroku and Docker setups.")
 |