ImportError: No module named app.views django 1.10 python
<p>I just have started learning django in its 1.10 version. In a project (called <code>refugio</code>) I have created an app called <code>mascota</code>.</p>

<p>This is my views.py file for my app:</p>

<pre><code>from __future__ import unicode_literals, absolute_import
from django.shortcuts import render
from django.http import HttpResponse

# Create your views here.
def index(request):
    return HttpResponse("Index")
</code></pre>

<p>Also, I already have written my urls.py file for it:</p>

<pre><code>from django.conf.urls import url
from apps.mascota.views import index

urlpatterns = [
    url(r'^$/', index),
]
</code></pre>

<p>And I have modified the url.py file of my project:</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('apps.mascota.urls')),
]
</code></pre>

<p>But when I run the server of my project, it sends me the next error message:
<a href="https://i.stack.imgur.com/Ww9EC.png" rel="nofollow"><img src="https://i.stack.imgur.com/Ww9EC.png" alt="enter image description here"></a></p>

<p>If it helps, My dir tree is the following:</p>

<p><code>REFUGIO
    apps
        mascota
            views.py
            urls.py
    refugio
        settings.py
        urls.py
    manage.py
</code></p>

<p>I know this is a dummy question, but I don't know what is wrong, I have already checked my urls sentences, but I see everything ok.</p>

<p>I will appreciate your help.</p>

<p>Ps.: My app is located inside a folder called apps.</p>

<p>Regards.</p>

<p>Every Python package need <code>__init__.py</code> file (read <a href="https://docs.python.org/3/tutorial/modules.html" rel="nofollow">this</a> and <a class='doc-link' href="http://stackoverflow.com/documentation/python/3142/difference-between-module-and-package#t=201610160717100771537">this</a>).</p>

<pre><code>REFUGIO
    apps
        mascota
            __init__.py
            views.py
            urls.py
        __init__.py
    refugio
        __init__.py
        settings.py
        urls.py
    manage.py
</code></pre>

python django django-views django-urls