Editing custom user profiles information in the admin panel

31 views
Skip to first unread message

abisson

unread,
Apr 5, 2012, 11:56:45 PM4/5/12
to Django users
Good evening,

I just tried the following https://docs.djangoproject.com/en/1.4/topics/auth/
in order to add some custom fields to my users. I just looked in the
DB and admin panel, and these new fields were not added to the
auth_user table, nor the User Admin Panel. I created a new app that
contains the UserProfile Model that I want to add. I set the
AUTH_PROFILE_MODULE and so far no errors.

Do I need to include the new app itself in the INSTALLED_APPS section
or not? Are these new fields stored in the auth_users table or a new
table? [Will it therefore always do JOINS?] How can I edit them for
each user?


Thanks!

Ejah

unread,
Apr 6, 2012, 12:11:37 PM4/6/12
to Django users
Hi,
You must add your app to the installed apps. Editting through the
admin requires you to register an admin form for your profile. Syncdb
and you can edit.
Hth

On 6 apr, 05:56, abisson <antoine...@gmail.com> wrote:
> Good evening,
>
> I just tried the followinghttps://docs.djangoproject.com/en/1.4/topics/auth/

abisson

unread,
Apr 6, 2012, 9:46:14 PM4/6/12
to Django users
Okay... and how is the SQL in the back? Does it do joins between the
two tables or what? That slows down a lot no?

On Apr 6, 9:11 am, Ejah <ej.huijb...@gmail.com> wrote:
> Hi,
> You must add your app to the installed apps. Editting through the
> admin requires you to register an admin form for your profile. Syncdb
> and you can edit.
> Hth
>

Ejah

unread,
Apr 7, 2012, 2:31:11 AM4/7/12
to Django users
I believe not, as user is a fk in the profile class, and you can only
access the profile through get_profile, it seems a query to me.
Reply all
Reply to author
Forward
0 new messages