Can somebody tell me why i get a syntax error with this named URL
pattern?
urlpatterns = patterns('',
url(r'^feed/(?P<url>.*)/$',
'django.contrib.syndication.views.feed',
{'feed_dict': feeds}
name="feed"),
)
This is the traceback:
Traceback:
File "C:\Python26\lib\site-packages\django\core\handlers\base.py" in
get_response
83. request.path_info)
File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in
resolve
216. for pattern in self.url_patterns:
File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in
_get_url_patterns
245. patterns = getattr(self.urlconf_module, "urlpatterns",
self.urlconf_module)
File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in
_get_urlconf_module
240. self._urlconf_module = import_module
(self.urlconf_name)
File "C:\Python26\lib\site-packages\django\utils\importlib.py" in
import_module
35. __import__(name)
Exception Type: SyntaxError at /
Exception Value: ('invalid syntax', ('C:\\Apache2.2\\myapp\\urls.py',
28, 73, ' {\'feed_dict
\': feeds} name="feed"),\n'))
Thanks,
Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---