NoReverseMatch位于/profile/create/djang

2024-03-28 17:10:50 发布

您现在位置:Python中文网/ 问答频道 /正文

突然间,我用来创建一个新帐户的表单停止工作了

    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']

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


Tags: noneforlibpackagesusrcreatewithexception
1条回答
网友
1楼 · 发布于 2024-03-28 17:10:50

通过读取错误:

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

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

相关问题 更多 >