Guest User

Untitled

a guest
Feb 23rd, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. File "C:UsersDellAppDataLocalProgramsPythonPython36-32newpersonalurls.py", line 1, in <module>
  2. from . import views
  3. File "C:UsersDellAppDataLocalProgramsPythonPython36-32newpersonalviews.py", line 6
  4. `
  5. ^
  6.  
  7. File "C:UsersDellAppDataLocalProgramsPythonPython36-32newnewurls.py", line 21, in <module>
  8. url(r'^personal/',include('personal.urls')),
  9. File "C:UsersDellAppDataLocalProgramsPythonPython36-32libsite-packagesdjangourlsconf.py", line 34, in include
  10. urlconf_module = import_module(urlconf_module)
  11. File "C:UsersDellAppDataLocalProgramsPythonPython36-32libimportlib__init__.py", line 126, in import_module
  12. return _bootstrap._gcd_import(name[level:], package, level)
  13.  
  14. from . import views
  15. from django.conf.urls import *
  16. urlpatterns = [
  17.  
  18. url('personal/',views.index,name='index'),
  19.  
  20. ]
  21.  
  22. from django.shortcuts import render
  23. def index(request):
  24. return render(request,'personl/home.html')
  25.  
  26. # Create your views here.
  27. `
  28.  
  29. "
  30.  
  31. ""new URL Configuration
  32.  
  33. The `urlpatterns` list routes URLs to views. For more information please see:
  34. https://docs.djangoproject.com/en/2.0/topics/http/urls/
  35. Examples:
  36. Function views
  37. 1. Add an import: from my_app import views
  38. 2. Add a URL to urlpatterns: path('', views.home, name='home')
  39. Class-based views
  40. 1. Add an import: from other_app.views import Home
  41. 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
  42. Including another URLconf
  43. 1. Import the include() function: from django.urls import include, path
  44. 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
  45. """
  46. from django.contrib import admin
  47. from django.conf.urls import *
  48.  
  49. urlpatterns = [
  50. url(r'^admin/', admin.site.urls),
  51. url(r'^personal/',include('personal.urls')),
  52. url(r'^block/ ',include('block.urls')),
  53.  
  54. ]
Add Comment
Please, Sign In to add comment