这不是Django的问题。你先把Python搞明白。

On Sunday, November 9, 2014 11:29:58 PM UTC+8, zhoumin...@gmail.com wrote:
>
> NameError at /
>
> name 'hello' is not defined
>
>   Request Method: GET Request URL: http://127.0.0.1:8000/ Django Version: 
> 1.7.1 Exception Type: NameError Exception Value: 
>
> name 'hello' is not defined
>
>  Exception Location: E:\djcode\mysite\mysite\urls.py in <module>, line 5 
> Python 
> Executable: C:\Python27\python.exe Python Version: 2.7.6 Python Path: 
>
> ['E:\\djcode\\mysite',
>  'C:\\Python27\\lib\\site-packages\\setuptools-1.1.4-py2.7.egg',
>  'C:\\Python27\\lib\\site-packages\\swampy-2.1.7-py2.7.egg',
>  'C:\\Python27\\lib\\site-packages\\django-1.7.1-py2.7.egg',
>  'C:\\windows\\system32\\python27.zip',
>  'C:\\Python27\\DLLs',
>  'C:\\Python27\\lib',
>  'C:\\Python27\\lib\\plat-win',
>  'C:\\Python27\\lib\\lib-tk',
>  'C:\\Python27',
>  'C:\\Python27\\lib\\site-packages']
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8cf2f5d7-2906-4dad-88ab-0d6bd290008c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to