[Answer]-How to work with two apps in django

1👍

I think your urls.py needs to be updated:

urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls)),
    url(r'^info', 'app2.views.grid'),
    url(r'^$', 'app2.views.home'),
    url(r'^blog/', 'app1.views.post_list')
)

url(r'', 'app2.views.home') will act like a wild card since python uses regular expressions to match. Take a look at the URL dispatcher documentation for a better understanding of what’s going on.

Leave a comment