Before going to answer of your question i am really sure that you have
not read the docs of django-registration and django docs any
way........

if you want to make it use django-registration(default) then install
it and write in settings.py 'registration'(below of your appname)
in your site url

 (r'^accounts/', include('registration.urls')),

now you need to create registration_form.html (you go to in
registration packages and see all the views they have mentioned there
required html page)

create a folder named 'registration' and put your
'registration_form.html' inside that.

first create a simple template with only plain html
and write their User name : {{form.user}}
                Password : {{form.password1}}

On Apr 20, 4:28 pm, TP <tommi.pres...@gmail.com> wrote:
> Thanks for the continued help.
>
> I have written the URLS.py now they are as below:
>
> urlpatterns = patterns('',
>                        # Activation keys get matched by \w+ instead of
> the more specific
>                        # [a-fA-F0-9]{40} because a bad activation key
> should still get to the view;
>                        # that way it can return a sensible "invalid
> key" message instead of a
>                        # confusing 404.
>                        url(r'^activate/(?P<activation_key>\w+)/$',
>                            activate,
>                            name='registration_activate'),
>                        url(r'^login/$',
>                            auth_views.login,
>                            {'template_name': 'registration/
> login.html'},
>                            name='auth_login'),
>                        url(r'^logout/$',
>                            auth_views.logout,
>                            {'template_name': 'registration/
> logout.html'},
>                            name='auth_logout'),
>                        url(r'^password/change/$',
>                            auth_views.password_change,
>                            name='auth_password_change'),
>                        url(r'^password/change/done/$',
>                            auth_views.password_change_done,
>                            name='auth_password_change_done'),
>                        url(r'^password/reset/$',
>                            auth_views.password_reset,
>                            name='auth_password_reset'),
>                        url(r'^password/reset/confirm/(?P<uidb36>[0-9A-
> Za-z]+)-(?P<token>.+)/$',
>                            auth_views.password_reset_confirm,
>                            name='auth_password_reset_confirm'),
>                        url(r'^password/reset/complete/$',
>                            auth_views.password_reset_complete,
>                            name='auth_password_reset_complete'),
>                        url(r'^password/reset/done/$',
>                            auth_views.password_reset_done,
>                            name='auth_password_reset_done'),
>                        url(r'^register/$',
>                            register,
>                            name='registration_register'),
>                        url(r'^register/complete/$',
>                            direct_to_template,
>                            {'template': 'registration/
> registration_complete.html'},
>                            name='registration_complete'),
>                        )
>
> I think that is correct.
>
> When I load the HTML page I still cannot see a form and only see:
>
> {% load i18n %}
> {% block header %} {% trans "Home" %} | {% if user.is_authenticated %}
> {% trans "Logged in" %}: {{ user.username }} ({% trans "Log out" %} |
> {% trans "Change password" %}) {% else %} {% trans "Log in" %} {%
> endif %} {% endblock %}
> {% block content %}{% endblock %}
> {% block footer %} {% endblock %}
>
> I think I am quite close to getting this working, just having a hard
> time with linking the HTML.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to