django又出错了!我完全按照教程来的,居然这么多问题,很不解啊!、
SyntaxError at /now/
('invalid syntax', ('C:\\PyProject\\mysite\\..\\mysite\\views.py', 1, 10, 'Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)] on win32\n'))
Request Method: | GET |
---|---|
Request URL: | http://127.0.0.1:9527/ |
Exception Type: | SyntaxError |
Exception Value: |
('invalid syntax', ('C:\\PyProject\\mysite\\..\\mysite\\views.py', 1, 10, 'Python 2.6 |
Exception Location: | C:\PyProject\mysite\..\mysite\urls.py in <module>, line 2 |
Python Executable: | C:\Python26\python.exe |
Python Version: | 2.6.0 |
Python Path: | ['C:\\PyProject\\mysite', 'C:\\Python26\\python26.zip', 'C:\\Python26\\DLLs', 'C:\\Python26\\lib', 'C:\\Python26\\lib\\plat-win', 'C:\\Python26\\lib\\lib-tk', 'C:\\Python26', 'C:\\Python26\\lib\\site-packages', 'C:\\Python26\\lib\\site-packages\\win32', 'C:\\Python26\\lib\\site-packages\\win32\\lib', 'C:\\Python26\\lib\\site-packages\\Pythonwin'] |
Server time: | Mon, 24 May 2010 23:26:25 +0800 |
为什么异常路径是:C:\\PyProject\\mysite\\..\\mysite\\views.py,python搜索路径设置问题还是我的view有问题?求解答。