django-profiles Questions

3

Solved

I've noticed that after I log in with Django registration it redirects me to accounts/profile/. By default Django registration's url.py doesn't handle accounts/profile/, so I need to create my own....
Salmagundi asked 23/3, 2012 at 7:59

3

Solved

I'm finding conflicting information on whether to use OneToOneField(User) or ForeignKey(User, unique=True) when creating a UserProfile model by extending the Django User model. Is it better to use...
Henton asked 11/7, 2010 at 3:25

1

Solved

My models.py: USER_TYPES = ( ('D', 'Demo' ), ('F', 'Free' ), ('P', 'Premium'), ) class BaseProfile(models.Model): user = models.OneToOneField(User, primary_key=True) user_type = models...
Bibeau asked 22/9, 2010 at 18:39

2

Solved

In my application I have students, professors and staff. Staff members do not need a profile but professors and students each need a different profile. I'd rather not implement it all myself (middl...
Lamarckian asked 24/3, 2009 at 17:50
1

© 2022 - 2024 — McMap. All rights reserved.