mirror of
				https://github.com/HackSoftware/Django-Styleguide.git
				synced 2025-10-26 13:21:02 +03:00 
			
		
		
		
	Add section about cookiecutter
This commit is contained in:
		
							parent
							
								
									2366ff729a
								
							
						
					
					
						commit
						fced551c3a
					
				
							
								
								
									
										12
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								README.md
									
									
									
									
									
								
							|  | @ -47,6 +47,18 @@ Expect often updates as we discuss & decide upon different things. | |||
| * If the model property spans multiple relations, it should better be a selector. | ||||
| * If a model property, added to some list API, will cause `N + 1` problem that cannot be easily solved with `select_related`, it should better be a selector. | ||||
| 
 | ||||
| ## Cookie Cutter | ||||
| 
 | ||||
| We recommend starting every new project with [`cookiecutter-django`](https://github.com/pydanny/cookiecutter-django) | ||||
| 
 | ||||
| Once this is done, depending on the context, remove everything that's not needed. | ||||
| 
 | ||||
| The usual list is: | ||||
| 
 | ||||
| * `allauth` | ||||
| * templates | ||||
| * Settings for things that are not yet required (always add settings when necessary) | ||||
| 
 | ||||
| ## Models | ||||
| 
 | ||||
| Lets take a look at an example model: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user