ImproperlyConfigured at **The included urlconf ****does not appear to have any patterns in it
<p>I am working on a django project and facing an issue. The name of my main project is testproject. In <strong>settings.py</strong> I have :</p>

<pre><code>ROOT_URLCONF = 'testproject.urls'
</code></pre>

<p>There are two apps in the project too. One is <strong>example</strong>, other is <strong>new</strong>.</p>

<p><em>urls.py</em> for testproject:</p>

<pre><code>from django.conf.urls import include, url

urlpatterns = [
    url(r'', include('new.urls')),
    url(r'', include('example.urls')),
] 
</code></pre>

<p>This is the <strong>urls.py</strong> of <em>example</em>:</p>

<pre><code>from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from example import views
urlpatterns = [
    url('example/$', views.Example.as_view()),
]

urlpatterns = format_suffix_patterns(urlpatterns)
</code></pre>

<p>This is the <strong>urls.py</strong> of <em>new:</em></p>

<pre><code>from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from new import views

urlpatterns = [
    url('new/$', views.New.as_view()),
]

urlpatterns = format_suffix_patterns(urlpatterns)
</code></pre>

<p>On hitting url "127.0.0.1:8000/example" I am getting the error:</p>

<pre><code>ImproperlyConfigured at /example/
The included urlconf '&lt;module 'new.urls' from '/Users/testproject/name/urls.pyc'&gt;' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import.
</code></pre>

<p>But I don't see any circular imports here. I'm stuck. Please help me.</p>

<p>In the project's urls.py try:</p>

<pre><code>urlpatterns = [
url(r'^new/$', include('new.urls')),
url(r'^example/$', include('example.urls')),
] 
</code></pre>

<p>In the example's urls.py:</p>

<pre><code>urlpatterns = [
url(r'^$', views.Example.as_view()),
]
</code></pre>

<p>And the last one:</p>

<pre><code>urlpatterns = [
url(r'^$', views.New.as_view()),
]
</code></pre>

python django url