Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- File "C:UsersDellAppDataLocalProgramsPythonPython36-32newpersonalurls.py", line 1, in <module>
- from . import views
- File "C:UsersDellAppDataLocalProgramsPythonPython36-32newpersonalviews.py", line 6
- `
- ^
- File "C:UsersDellAppDataLocalProgramsPythonPython36-32newnewurls.py", line 21, in <module>
- url(r'^personal/',include('personal.urls')),
- File "C:UsersDellAppDataLocalProgramsPythonPython36-32libsite-packagesdjangourlsconf.py", line 34, in include
- urlconf_module = import_module(urlconf_module)
- File "C:UsersDellAppDataLocalProgramsPythonPython36-32libimportlib__init__.py", line 126, in import_module
- return _bootstrap._gcd_import(name[level:], package, level)
- from . import views
- from django.conf.urls import *
- urlpatterns = [
- url('personal/',views.index,name='index'),
- ]
- from django.shortcuts import render
- def index(request):
- return render(request,'personl/home.html')
- # Create your views here.
- `
- "
- ""new URL Configuration
- The `urlpatterns` list routes URLs to views. For more information please see:
- https://docs.djangoproject.com/en/2.0/topics/http/urls/
- Examples:
- Function views
- 1. Add an import: from my_app import views
- 2. Add a URL to urlpatterns: path('', views.home, name='home')
- Class-based views
- 1. Add an import: from other_app.views import Home
- 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
- Including another URLconf
- 1. Import the include() function: from django.urls import include, path
- 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
- """
- from django.contrib import admin
- from django.conf.urls import *
- urlpatterns = [
- url(r'^admin/', admin.site.urls),
- url(r'^personal/',include('personal.urls')),
- url(r'^block/ ',include('block.urls')),
- ]
Add Comment
Please, Sign In to add comment