Ich bin Anfänger in Django und ich habe Fehler an meinem allerersten Tag. Kann mir jemand helfen?NameError: Name 'Artikel' ist nicht definiert
hier Fehler Ich erhalte
File "/home/akshay/Desktop/cdsmalpha/cdsmalpha/urls.py", line 23, in module>
url(r'^hello/', articles.views.hello, name = 'hello'),
NameError: name 'articles' is not defined
Hier im Hauptprojektverzeichnis
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'),
]
Just do 'views.hello' statt' articles.views.hello' – Li357