在/profile/create/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']

有人知道如何纠正这个错误吗?

通过读取错误:

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

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

相关内容

最新更新