You can import as many things as you want, but objects must have unique names to distinguish them.
There are several ways to deal with this. One of them is just importing functions, not a module:
from mysite.books.views import books from mysite.contact.views import contact
This is obviously only good if you have only one or two kinds in each file. The second option is to import modules under different names:
from mysite.books import views as books_views from mysite.contact import views as contact_views
The third option is not to import the views at all, but to use them for reference:
urlpatterns = patterns('', (r'^contact/$', 'contact.views.contact'), (r'^search/$', 'book.views.search'), )
The fourth is to have a separate urls.py for each application and include urlconfs in the main urls.py.
source share