title: ImportError: No module named 'posts.urls'
body: <p>I am new to Django and started making my first Django app using django official tutorial from <a href="https://docs.djangoproject.com/en/2.0/intro/tutorial01/" rel="nofollow noreferrer">https://docs.djangoproject.com/en/2.0/intro/tutorial01/</a>. </p>
  
  <p>I have installed python3.5.2 and pip 9.0.1, using Ubuntu 16.04, Django version is 2.0.</p>
  
  <p>my urls.py file has following code</p>
  
  <pre><code>from django.contrib import admin
  from django.urls import path
  from django.conf.urls import url, include
  
  urlpatterns = [
  path('posts/', include('posts.urls')),
  path('admin/', admin.site.urls),
  ] 
  </code></pre>
  
  <p>If there is anything you can help me work this out. below is the error i am getting after running command -
  python manage.py runserver</p>
  
  <p>here is the error i am getting</p>
  
  <pre><code>Performing system checks...
  
  Unhandled exception in thread started by &lt;function check_errors.&lt;locals&gt;.wrapper at 0x7fe20fe92d08&gt;
  Traceback (most recent call last):
    File "/usr/local/lib/python3.5/dist-packages/django/utils/autoreload.py", line 225, in wrapper
      fn(*args, **kwargs)
    File "/usr/local/lib/python3.5/dist-packages/django/core/management/commands/runserver.py", line 120, in inner_run
      self.check(display_num_errors=True)
    File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 364, in check
      include_deployment_checks=include_deployment_checks,
    File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 351, in _run_checks
      return checks.run_checks(**kwargs)
    File "/usr/local/lib/python3.5/dist-packages/django/core/checks/registry.py", line 73, in run_checks
      new_errors = check(app_configs=app_configs)
    File "/usr/local/lib/python3.5/dist-packages/django/core/checks/urls.py", line 40, in check_url_namespaces_unique
      all_namespaces = _load_all_namespaces(resolver)
    File "/usr/local/lib/python3.5/dist-packages/django/core/checks/urls.py", line 57, in _load_all_namespaces
      url_patterns = getattr(resolver, 'url_patterns', [])
    File "/usr/local/lib/python3.5/dist-packages/django/utils/functional.py", line 36, in __get__
      res = instance.__dict__[self.name] = self.func(instance)
    File "/usr/local/lib/python3.5/dist-packages/django/urls/resolvers.py", line 536, in url_patterns
      patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
    File "/usr/local/lib/python3.5/dist-packages/django/utils/functional.py", line 36, in __get__
      res = instance.__dict__[self.name] = self.func(instance)
    File "/usr/local/lib/python3.5/dist-packages/django/urls/resolvers.py", line 529, in urlconf_module
      return import_module(self.urlconf_name)
    File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "&lt;frozen importlib._bootstrap&gt;", line 986, in _gcd_import
    File "&lt;frozen importlib._bootstrap&gt;", line 969, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 958, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 673, in _load_unlocked
    File "&lt;frozen importlib._bootstrap_external&gt;", line 665, in exec_module
    File "&lt;frozen importlib._bootstrap&gt;", line 222, in _call_with_frames_removed
    File "/var/www/html/django-projects/djangoblog/djangoblog/urls.py", line 21, in &lt;module&gt;
      path('posts/', include('posts.urls')),
    File "/usr/local/lib/python3.5/dist-packages/django/urls/conf.py", line 34, in include
      urlconf_module = import_module(urlconf_module)
    File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "&lt;frozen importlib._bootstrap&gt;", line 986, in _gcd_import
    File "&lt;frozen importlib._bootstrap&gt;", line 969, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 956, in _find_and_load_unlocked
  ImportError: No module named 'posts.urls'
  Performing system checks...
  
  Unhandled exception in thread started by &lt;function check_errors.&lt;locals&gt;.wrapper at 0x7f8390058bf8&gt;
  Traceback (most recent call last):
    File "/usr/local/lib/python3.5/dist-packages/django/utils/autoreload.py", line 225, in wrapper
      fn(*args, **kwargs)
    File "/usr/local/lib/python3.5/dist-packages/django/core/management/commands/runserver.py", line 120, in inner_run
      self.check(display_num_errors=True)
    File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 364, in check
      include_deployment_checks=include_deployment_checks,
    File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 351, in _run_checks
      return checks.run_checks(**kwargs)
    File "/usr/local/lib/python3.5/dist-packages/django/core/checks/registry.py", line 73, in run_checks
      new_errors = check(app_configs=app_configs)
    File "/usr/local/lib/python3.5/dist-packages/django/core/checks/urls.py", line 40, in check_url_namespaces_unique
      all_namespaces = _load_all_namespaces(resolver)
    File "/usr/local/lib/python3.5/dist-packages/django/core/checks/urls.py", line 57, in _load_all_namespaces
      url_patterns = getattr(resolver, 'url_patterns', [])
    File "/usr/local/lib/python3.5/dist-packages/django/utils/functional.py", line 36, in __get__
      res = instance.__dict__[self.name] = self.func(instance)
    File "/usr/local/lib/python3.5/dist-packages/django/urls/resolvers.py", line 536, in url_patterns
      patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
    File "/usr/local/lib/python3.5/dist-packages/django/utils/functional.py", line 36, in __get__
      res = instance.__dict__[self.name] = self.func(instance)
    File "/usr/local/lib/python3.5/dist-packages/django/urls/resolvers.py", line 529, in urlconf_module
      return import_module(self.urlconf_name)
    File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "&lt;frozen importlib._bootstrap&gt;", line 986, in _gcd_import
    File "&lt;frozen importlib._bootstrap&gt;", line 969, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 958, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 673, in _load_unlocked
    File "&lt;frozen importlib._bootstrap_external&gt;", line 665, in exec_module
    File "&lt;frozen importlib._bootstrap&gt;", line 222, in _call_with_frames_removed
    File "/var/www/html/django-projects/djangoblog/djangoblog/urls.py", line 21, in &lt;module&gt;
      path('posts/', include('posts.urls')),
    File "/usr/local/lib/python3.5/dist-packages/django/urls/conf.py", line 34, in include
      urlconf_module = import_module(urlconf_module)
    File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "&lt;frozen importlib._bootstrap&gt;", line 986, in _gcd_import
    File "&lt;frozen importlib._bootstrap&gt;", line 969, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 956, in _find_and_load_unlocked
  </code></pre>
  
  <p>IF there is anything you can help me with. I have already tried every other solution existed on internet yet.</p>