2013-11-21 34 views
0

忽然,我創建新帳戶的形式已經停止了,來了就是NoReverseMatch在/資料/創建/ Django的

NoReverseMatch at /profile/create/ 
    NoReverseMatch at /profile/create/ 

Reverse for 'None' with arguments '()' and keyword arguments '{}' not found. 

    Request Method:  POST 
    Request URL: http://visionsofearth.co.uk/profile/create/ 
    Django Version:  1.3.1 
    Exception Type:  NoReverseMatch 
    Exception Value:  

    Reverse for 'None' with arguments '()' and keyword arguments '{}' not found. 

    Exception Location:  /usr/lib/python2.4/site-packages/django/core/urlresolvers.py in reverse, line 336 
    Python Executable: /usr/bin/python 
    Python Version:  2.4.3 
    Python Path:  

    ['/usr/lib/python2.4/site-packages/pip-0.8.2-py2.4.egg', 
    '/usr/lib/python2.4/site-packages/django_filebrowser-3.0-py2.4.egg', 
    '/usr/lib64/python24.zip', 
    '/usr/lib64/python2.4', 
    '/usr/lib64/python2.4/plat-linux2', 
    '/usr/lib64/python2.4/lib-tk', 
    '/usr/lib64/python2.4/lib-dynload', 
    '/usr/lib64/python2.4/site-packages', 
    '/usr/lib64/python2.4/site-packages/PIL', 
    '/usr/lib/python2.4/site-packages', 
    '/home/visionso/kitchen'] 

會有人知道如何修復錯誤working..the錯誤?

+2

此異常由不正確的參數引起' reverse()'或'{%url%}'。你需要向我們展示代碼。 –

+1

..還有你的'urls.py'。 –

回答

0

通過閱讀錯誤:

Reverse for 'None' with arguments '()' and keyword arguments '{}' not found. 

你傳入一個變量來反向(),它實際上是None,沒有kwargs(即:reverse(NULL_VARIABLE, {})