title: Circular Import in Django
body: <p>I have been trying to run a client-server application using Django. When I am trying to run my server in Django , it is giving me the following error. </p>
  
  <blockquote>
    <p>django.core.exceptions.ImproperlyConfigured: The included URLconf '' 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.</p>
  </blockquote>
  
  <p>The project urls.py -</p>
  
  <pre><code>from django.conf.urls import url,include
  from django.contrib import admin
  urlpatterns = [
  url(r'^admin/', admin.site.urls),
  url(r'^', include('chat.views')),
  ] 
  </code></pre>
  
  <p>App's views.py - </p>
  
  <pre><code>from django.shortcuts import render
  from django.http import JsonResponse
  def home(request):
  if request.method == 'POST':
  
      if request.is_ajax():
  
         //code
          return JsonResponse(data)
  
  return render(request,'index.html')
  </code></pre>
  
  <p>Where am I going wrong?</p>