NameError: name 'articles' is not defined
<p>I'm beginner in Django and I am having errors on my very first day. 
Can anyone help me?</p>

<p>Here is error I'm getting </p>

<blockquote>
  <p>File "/home/akshay/Desktop/cdsmalpha/cdsmalpha/urls.py", line 23, in module><br>
      url(r'^hello/', articles.views.hello, name = 'hello'),<br>
    NameError: name 'articles' is not defined</p>
</blockquote>

<p>Here is my url.py file in main project directory</p>

<pre><code>from django.conf.urls import include, url
from django.contrib import admin
from articles import views
urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^hello/', articles.views.hello, name = 'hello'),
]
</code></pre>

<p>You have already imported articles app, so now you can just point it from there:
<code>views.hello</code></p>

python django django-views