python - Django: Core library and South migrations -
i'm working on django project tends pretty complex in time. therefore i'm planning encapsulate basic core models , utilities going reused throughout application in separate space. since these models base models needed other apps, imho there's no need create django app , instead place them in standard python package (so package acting simple library).
since i'm using south migrations i'm running problems when not creating app , instead use 'library', because south considers apps migrations.
what django way avoid 'problem' , able create migrations core models?
well... answer use apps.
that's they're for. designed way because standard modules don't provide level of integration needed.
if start hacking away on library make work on own, you'll end mess of code , glue same size of django app, considerably worse smell.
Comments
Post a Comment