Hi
my urls.py is
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns(”,
# Example:
# (r’^xxxx/’, include(‘xxxx.foo.urls’)),
(r’^accounts/’, include(‘registration.backends.default.urls’)),
# Uncomment the admin/doc line below and add
‘django.contrib.admindocs’
# to INSTALLED_APPS to enable admin documentation:
# (r’^admin/doc/’, include(‘django.contrib.admindocs.urls’)),
#(r’^accounts/’, include(‘xxxx.newapp.urls’)),
# Uncomment the next line to enable the admin:
(r’^admin/’, include(admin.site.urls)),
(r’^accounts/register/$’,register,
{‘form_class’:RegistrationForm,’profile_callback’:UserProfile.objects.profile_callback},name
= ‘registration_register’),
)
but when I try looking under accounts/register I get this error
“”
SyntaxError at /accounts/logout/
(‘invalid syntax’, (‘/home/andy/src/python/django/xxxx/../xxxx/
urls.py’, 17, 132, ” (r’^accounts/register/$’,register,
{‘form_class’:RegistrationForm,’profile_callback’:UserProfile.objects.profile_callback},name
= ‘registration_register’),\n”))
“”
Can anyone help me with this.
Thanks in advance
Andy
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to
django...@googlegroups.com.
To unsubscribe from this group, send email to
django-users...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.