My db.py is becoming very long & unwieldy
Is there a way of splitting this into separate files?
I can't use the Templating syntax {{include subset.py}} because this
isn't a view.
I can't just do: import subset.py
I can't import as a module because models aren't modules
I can create a separate database in separate files, but then I can't
seem to cross-reference the 2 together.
If I don't try then it can't find the original 'db':
SQLTable: table does not exist
If I try to import then that fails too as db.py is not a module
I quite like the idea of using different databases actually...should
be faster when working in just 1 area & can make the naming system
clearer.
Having each database be a separate file eases maintenance across
multiple developers.
However I do need to be able to have FOREIGN keys in the other
databases (e.g. the 'Person' table will be common across databases)
Advice welcomed :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---