I posted this on stack, but I feel like I would get better help here:

I am trying to connect my urls together after installing the 
django-registration 
app <https://django-registration.readthedocs.org/en/latest/index.html> via 
pip install. 

My main project is called Club , here is *club/club/urls.py:*

from django.conf.urls import patterns, include, urlfrom blog import views# 
Uncomment the next two lines to enable the admin:from django.contrib import 
admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'club.views.home', name='home'),
    # url(r'^club/', include('club.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    url(r'^addauthor$', views.addauthorView),
    url(r'^thanks/$', views.thanksView),
    url(r'^displayauthors/$', views.displayauthors),
    # registration links below
    url(r'^reg/', include('club.registration.urls')),
)   

And here is my *club/registration/urls.py:*

from django.conf.urls import patterns, include, url

urlpatterns = patterns('',
url(r'^accounts/', include('registration.backends.default.urls')),)

Am I connecting these two correctly? Or is there another way to do it?

When trying to visit http://127.0.0.1:8000/reg/accounts/login/ in browser I 
get an error message:

ImportError at /reg/accounts/login/No module named registration.urls

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3312541c-c15b-456c-b634-a064b79320dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to