title: ModuleNotFoundError: No module named 'myapp.views.hello'; 'myapp.views' is not a package
body: <p>I'm using django 2.0.2 to develop a simple web app. I'm not sure what's wrong with my code. I'm getting the error </p>
  
  <pre><code>ModuleNotFoundError: No module named 'myapp.views.hello'; 'myapp.views' is not a package
  </code></pre>
  
  <p>Here is my code for </p>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>from django.shortcuts import render
  def hello(request):
     return render(request,'myapp/templates/hello.html',{})
  </code></pre>
  
  <p><strong>urls.py</strong></p>
  
  <pre><code>from django.contrib import admin
  from django.urls import path
  from django.conf.urls import include
  urlpatterns = [
      path('admin/', admin.site.urls),
      path('hello/', include('myapp.views.hello'), name='hello'),
  ]
  </code></pre>
  
  <p>Throwing the same error even when I did <code>from myapp.views import *</code></p>
  
  <p>What is wrong with my code?</p>
  
  <p>Here's the tree structure</p>
  
  <pre><code>DjProject/
  ├── db.sqlite3
  ├── DjProject
  │   ├── __init__.py
  │   ├── __pycache__
  │   │   ├── __init__.cpython-36.pyc
  │   │   ├── settings.cpython-36.pyc
  │   │   ├── urls.cpython-36.pyc
  │   │   └── wsgi.cpython-36.pyc
  │   ├── settings.py
  │   ├── urls.py
  │   └── wsgi.py
  ├── manage.py
  └── myapp
      ├── admin.py
      ├── apps.py
      ├── __init__.py
      ├── migrations
      │   ├── __init__.py
      │   └── __pycache__
      ├── models.py
      ├── __pycache__
      │   ├── admin.cpython-36.pyc
      │   ├── __init__.cpython-36.pyc
      │   ├── models.cpython-36.pyc
      │   └── views.cpython-36.pyc
      ├── templates
      │   └── hello.html
      ├── tests.py
      └── views.py
  
  7 directories, 22 files
  </code></pre>