asj2008 wrote:
> We are hitting an error that disables the entire website when we have
> more than 255 web pages...this is the error we see..has anyone seen
> this before? It does not seem to be in the documentation....
> 
> ImproperlyConfigured at /products/
> 
> Error while importing URLconf 'company.urls': more than 255 arguments
> (urls.py, line 339)
> Request Method:       GET
> Request URL:  http://www.company.com/products/
> Exception Type:       ImproperlyConfigured
> Exception Value:      Error while importing URLconf 'company.urls': more
> than 255 arguments (urls.py, line 339)
> Exception Location:   /opt/csw/lib/python2.3/site-packages/django/core/
> urlresolvers.py in _get_urlconf_module, line 255
> Python Executable:    /
> Python Version:       2.3.5

It seems you exceeded a Python limit on the number of parameters passed to a 
function.

I cannot find anything in the Python's documentation on such limit (any hints 
would be appreciated), 
but a look at Python's source code shows that this error is raised in a 
function which parses 
parameters list (Python/ast.c, line 1847, in r60723)

So, what are your solutions ?

Try to refactor your urls (more than 255 urls patterns is quite a lot IMHO), or 
split the call to 
the "patterns" function into several calls, like this :

     urlpatterns = patterns('',
         ...
     )
     urlpatterns += patterns('',
         ...
     )


  - Jonathan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to