I want to redirect to my app URL from project url for homepage which is r'^$'
.
I followed this link. but it did not help.
This is the urls.py
of my project:
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'^$', redirect('home')),
url(r'^link/', include('link_app.urls')),
)
This is the urls.py
of my app link:
urlpatterns=patterns('',
url(r'^$', LinkListView.as_view(), name='home'),
)
so basically I am aiming at
http://127.0.0.1:8000/
and http://127.0.0.1:8000/link/
to be processed by the same view.
I get the following error:
ImproperlyConfigured at /
The included urlconf link_project.urls doesn't have any patterns in it
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 1.6
Exception Type: ImproperlyConfigured
Exception Value:
The included urlconf link_project.urls doesn't have any patterns in it