mirror of
				https://github.com/cookiecutter/cookiecutter-django.git
				synced 2025-11-04 01:47:28 +03:00 
			
		
		
		
	Added ATOMIC_REQUESTS=True to default DB setup
Quoting Two Scoops of Django: > Use `ATOMIC_REQUESTS` as long as the performance overhead is bearable. That > means "forever" on most sites.
This commit is contained in:
		
							parent
							
								
									3fb367b477
								
							
						
					
					
						commit
						96d053c866
					
				| 
						 | 
				
			
			@ -264,4 +264,8 @@ class Common(Configuration):
 | 
			
		|||
    }
 | 
			
		||||
    # END LOGGING CONFIGURATION
 | 
			
		||||
 | 
			
		||||
    @classmethod
 | 
			
		||||
    def post_setup(cls):
 | 
			
		||||
        cls.DATABASES['default']['ATOMIC_REQUESTS'] = True
 | 
			
		||||
 | 
			
		||||
    # Your common stuff: Below this line define 3rd party library settings
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user