Django 1.0/django-registration .07 problems continue
***************************************************************************************
Issue 1 - No module named urls occuring during registration form
completion.
Via the methodology listed by Karen above I was able to trace my
missing url error.
The only way I could correct the error in registration was to hardcode
modify
line 142 in ...site-packages.registration.views.py to point to
"complete"
For now though this is what it took to get it working.
( r'^accounts/', include ( 'registration.urls' ) ),
is in my url.py file but somehow this "complete" link is not part of
that set.
No worries, I want to draw close to my main goal.
****************************************************************************************
Issue 2. * Objective, how to add records to my custom UserProfile
table?
I've read the django-registration docs numerous times and still can't
figure out how it is supposed to work.
So I attempted adding my own code to create_inactive_user in
registration.models.py
# Original code
def create_inactive_user(self, username, password, email,
send_email=True):
...
from registration.signals import user_registered
new_user = User.objects.create_user(username, email, password)
new_user.is_active = False
new_user.save()
registration_profile = self.create_profile(new_user)
# My code to add records to the custom mysite.myproject.userprofile
table
get_user_id = int(registration_profile.id) # returning long
integer like 140L must be converted to int
from mysite.myproject.models import UserProfile
p1 = UserProfile( user_id = get_user_id )
p1.save()
*********************************************************************************
Results = No errors, but no records added via the process to auth_user
or my own
UserProfile table either.
To quote the django-registration documentation .07 docs
"a mechanism for automatically creating an instance of a
site-specific profile model is provided via
the ``create_inactive_user`` on ``RegistrationManager``.
Can someone tell me where is that automatic mechanism?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---