/ Published in: Python
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
# 1. Create a models folder under myApp.
# 2. Delete models.py and add a model_name.py file in the models folder for each model model_name.
# 3. Add the following to each model file :
class Meta:
app_label = 'myApp'
# 4. Add a line in models/_init__.py_ for each model file :
from myModelFile import myModel
URL: http://recursive-design.com/blog/2006/12/31/splitting-up-django-models/
Comments
 Subscribe to comments
                    Subscribe to comments
                
                