Skip to content

victorqribeiro/splitDjangoModels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Split Django Models

Split Django generated models into separated files, with proper names, classes and imports.

Usage

Generate your models:

python3 manage.py inspectdb > models.py

Run the script:

./split_django_models.sh models.py

Put them all into a folder so you can enjoy the step bellow:

The script also creates a __init__.py file, so you can import them all at once:

from yourapp.models import *

Done!

Buy me a coffee

Donations

About

Split Django generated models into separated files, with proper names, classes and imports

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published