This is my application structure with newsletter application inside SRC project.
Hellow am newbie to django framework and need some help to fix it
urls.py has this added
urlpatterns = [
url(r'^$', newsletter.views.home, name='home'),
url(r'^admin/', include(admin.site.urls)),
]settings.py
In the application i have listed the newsletter application
# Application definition
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'newsletter',
)
Now in the apps part
Added the view page in views.py
from django.shortcuts import render
# Create your views here.
def home(request):
return render(request,"home.html",{})
In the newsletter application create a folder templates and added the home.html.
Running the server I get his error below. What might be the cause
from newsletter import views