Python: ImportError: No module named 'tutorial.quickstart'
<p>I am getting import error even when I am following the tutorial <a href="http://www.django-rest-framework.org/tutorial/quickstart/" rel="nofollow">http://www.django-rest-framework.org/tutorial/quickstart/</a>  line by line.</p>

<pre><code>from tutorial.quickstart import views
</code></pre>

<blockquote>
  <p>ImportError: No module named 'tutorial.quickstart'</p>
</blockquote>

<p><strong>where my urls.py file looks like</strong> </p>

<pre><code>from django.conf.urls import url, include
from rest_framework import routers
from tutorial.quickstart import views

router = routers.DefaultRouter()
router.register(r'users', views.UserViewSet)
router.register(r'groups', views.GroupViewSet)

urlpatterns = [
        url(r'^', include(router.urls)),
        url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
]
</code></pre>

<p>Note: I have the project in Rest_Tutorial folder which consist of virtual enviroment - <code>env</code> and project <code>tutorial</code>. This tutorial consist of <code>quickstart</code> and <code>tutorial</code></p>

<p>Make sure your tutorial.quickstart is in the same folder as your project.
Also make sure it is unzipped ! Otherwise use a absolute path.</p>

<p>Hope it helps !</p>

python django python-3.x