I have a Django app that requires a settings
attribute in the form of:
RELATED_MODELS = (\'appname1.modelname1.attribute1\',
\
Quoting from a related answer:
If you want models defined for testing only then you should check out Django ticket #7835 in particular comment #24 part of which is given below:
Apparently you can simply define models directly in your tests.py. Syncdb never imports tests.py, so those models won't get synced to the normal db, but they will get synced to the test database, and can be used in tests.