title: Writing your first Django app, error with from . import views
body: <p>I'm started learning python-django and I would like create my first django app.
  I'm following the Django 1.8 tutorial. In my project "mysite", there is a source folder "polls". In the folder there is "views.py" module where a "index" function is defined. And there is a "urls.py" file:</p>
  
  <pre><code>from django.conf.urls import url
  
  from . import views
  
  urlpatterns = [
      url(r'^$', views.index, name='index'), 
  ]
  </code></pre>
  
  <p>Now i'm getting an error:</p>
  
  <pre><code>Traceback (most recent call last):
   File "/home/ukasz/Pulpit/Python/mysite/polls/urls.py", line 3, in &lt;module&gt;
  from . import views
  SystemError: Parent module '' not loaded, cannot perform relative import
  </code></pre>
  
  <p><strong>Edit: Updated with new information provided by woljako in an answer</strong></p>
  
  <p>my mysite/ursl.py:</p>
  
  <pre><code> from django.conf.urls import include, url
   from django.contrib import admin
  
   urlpatterns = [
   url(r'^polls/', include('polls.urls')),
   url(r'^admin/', admin.site.urls),
   ]
  </code></pre>
  
  <p>and I'm getting an error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/home/ukasz/Pulpit/Python/mysite/mysite/urls.py", line 20, in &lt;module&gt;
    url(r'^polls/', include('polls.urls')),
    File "/usr/local/lib/python3.5/dist-packages/django/conf/urls/__init__.py", line 52, 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 944, in _find_and_load_unlocked
   File "&lt;frozen importlib._bootstrap&gt;", line 222, in _call_with_frames_removed
   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 'polls'
  </code></pre>
  
  <p>I added to INSTALLED_APPS app 'polls', but still it didn't help </p>
  
  <pre><code>INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'polls',
  ]
  </code></pre>