I\'m reading Two Scoops Django Best Practices to make my coding style improve. I\'m in relative imports and here is the sample code to make it reusable.
Old
If test
is another app,
from .other import sample
wont work.
Update:
You can only use relative imports when you're importing from the same app.
Inside test
app
from .other import sample
will work. But you'll still need the complete form
from cones.foo import bar
if you import method defined in foo
from test
app.
So answering your question the second way is the correct way.