在/ profile / create / django中的NoReverseMatch

时间:2013-11-21 11:15:50

标签: python 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']

有人知道如何修复错误吗?

1 个答案:

答案 0 :(得分:0)

通过阅读错误:

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

您正在将变量传递给reverse(),实际上是None并且没有kwargs(即:reverse(NULL_VARIABLE, {})