I am getting the bad charecter in group name error when using a form. Environment:
Request Method: GET Request URL: http://localhost:8000/search-form/ Django Version: 1.2.3 Python Version: 2.7.1 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'my_clts', 'books', 'django.contrib.admin'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File "C:\Python27\lib\site-packages\django\core\handlers\base.py" in get_response 91. request.path_info) File "C:\Python27\lib\site-packages\django\core\urlresolvers.py" in resolve 215. for pattern in self.url_patterns: File "C:\Python27\lib\site-packages\django\core\urlresolvers.py" in _get_url_patterns 244. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "C:\Python27\lib\site-packages\django\core\urlresolvers.py" in _get_urlconf_module 239. self._urlconf_module = import_module(self.urlconf_name) File "C:\Python27\lib\site-packages\django\utils\importlib.py" in import_module 35. __import__(name) File "C:\Python27\Projects\mysite\..\mysite\urls.py" in <module> 27. (r'^admin/', include(admin.site.urls)), File "C:\Python27\lib\site-packages\django\conf\urls\defaults.py" in patterns 24. t = url(prefix=prefix, *t) File "C:\Python27\lib\site-packages\django\conf\urls\defaults.py" in url 41. return RegexURLPattern(regex, view, kwargs, name) File "C:\Python27\lib\site-packages\django\core\urlresolvers.py" in __init__ 89. self.regex = re.compile(regex, re.UNICODE) File "C:\Python27\lib\re.py" in compile 190. return _compile(pattern, flags) File "C:\Python27\lib\re.py" in _compile 245. raise error, v # invalid expression Exception Type: error at /search-form/ Exception Value: bad character in group name Below is my code. <html> <head> <title>Search</title> </head> <body> <form action="/search/" method="get"> <input type="text" name="q"> <input type="submit" value="Search"> </form> </body> </html> I am lost any help would be great. -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.