Jun-29-2018, 12:28 PM
(This post was last modified: Jun-29-2018, 12:28 PM by aniyanetworks.)
Hello folks,
I am completely new in Python programming, and at beginning of the day, I am having some issues.
Hope you guys will help me pass through the issue.
The error shows on my CMD:
path(r'^admin/', admin.site.urls),
NameError: name 'path' is not defined
MySite:
urls.py-AboutUs
IDE: Atom
I am completely new in Python programming, and at beginning of the day, I am having some issues.
Hope you guys will help me pass through the issue.
The error shows on my CMD:
path(r'^admin/', admin.site.urls),
NameError: name 'path' is not defined
MySite:
urls.py-AboutUs
Quote:from django.conf.urls import urlviews.py
from.import views
urlpatterns = [
url(r'^$', views.index, name='index'),
]
Quote:from django.http import httpresponseurls.py-My1stDjangoSite
def index(request):
return httpresponse ("<h1>Hello About us</>")
Quote:from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
path(r'^admin/', admin.site.urls),
path(r'^aboutus/', include('aboutus.urls')),
IDE: Atom