Posts categorized under: Programmieren

Splitting up django models

  1. Create models folder unter myapp

  2. Delete models.py under myapp

  3. Add

    class Meta:
        app_label='myapp'
    

    to each model

  4. Add for each model something like

    from myModelFile import myModel
    

    to models/__init__.py