python - trying to figure out error while working on Django framework -


I'm new to Djnago and getting error when opening URL - 127.0.0.1 / Halo out ... module There is some error in the path but how to solve it. Import / Error on / Import Error Not Module Name Default Request Method: Get Request URL: http://127.0.0.1:8000/HelloDesigno Version: 1.6.2 Exception Type: ImportEair Exception Value: No module is defaulted exception location: /home/mkp/Desktop/djcode/mysite/mysite/urls.py & lt; Module & gt; Line 14 Python Executable: / usr / bin / python Python Version: 2.7.3 Python Path: ['/ home / mkp / desktop / djcode / mysite', '/usr/lib/python2.7' , '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/ usr / lib / python2.7 / lib-dynload ',' /usr/local/lib/python2.7/dist-packages ',' /usr/lib/python2.7/dist-packages ',' / usr / lib / python2 .7 / dist-packages / PIL ',' / Usr / lib / python2.7 / dist-packages / gst-0.10 ',' /usr/lib/python2.7/dist-packages/gtk-2.0 ',' / usr / lib / python2.7 / dist-packages / ubuntu-sso-client ',' /usr/lib/python2.7/dist-packages/ubuntuone-client ',' / usr / lib / python2.7 / dist- packages / ubuntuone-control-panel ',' /usr/lib/python2.7/dist-packages/ubuntuone-couch ',' /usr/lib/python2.7/dist-packages/ Ubuntuone-installer ',' / usr /lib/python2.7/dist-packages/ubuntuone-storage-protocol '] Server Timing: Dyango.conf, 20 April 2014 16:42:25 +0000

urls.py - -

  import urls.defaults pattern, include, import url from mysite.views urlpatterns = pattern ('', url (r '^ hello / $', hello),)   

< strong> views.py - - <("Hello World")

=" Text ">

You have to fix your code in urls.py . Replace: django.conf.urls.defaults import pattern, including url

from:

 :  
 < code> Django.conf.urls import pattern, include, url    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -