Add customize app filed to add user page

17 views
Skip to first unread message

yillkid

unread,
Mar 16, 2012, 4:52:47 AM3/16/12
to django...@googlegroups.com
Hi all:

I want add a filed in app to add user page (/admin/auth/user/ ),

or

Actually I just want to add a valid date (DateTIme Filed) in add user page,

and this Filed I have create in UserProfile class already, then how I should do ?

thanks.

Joel Goldstick

unread,
Mar 16, 2012, 5:31:13 AM3/16/12
to django...@googlegroups.com
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/tbvw5Nc8e9IJ.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

Django has a way to extend user information with User Profiles. Here
is one of the first items that pops up on google:

http://www.turnkeylinux.org/blog/django-profile

If you are using v1.3 here is the section in the docs:
https://docs.djangoproject.com/en/1.3/topics/auth/#storing-additional-information-about-users

Apparently this is an area that is changing in v1.4 so take note

--
Joel Goldstick

yillkid

unread,
Mar 16, 2012, 5:48:28 AM3/16/12
to django...@googlegroups.com
Thanks for reply ... ... :)

But I have extent my UserProfile class success already.

Now I can find the new column in UserProfile Table in database.

But I want to add this extent data into my "add user" page. and access it.

For example:

I want to add a "valid duration" data  when I add a new user.

And the data have add in UserProfile already,

but if I want to add the filed on "add user" page, how I should do ?


yillkid於 2012年3月16日星期五UTC+8下午4時52分47秒寫道:

yillkid

unread,
Mar 16, 2012, 7:03:02 AM3/16/12
to django...@googlegroups.com
Thanks for reply.

Yes I have did it. But my question is add the data to the "add user" page.

It looks link the interface "admin.site.register" but it actually in "user add template (/templates/admin/auth/user/add_form),

thanks :)

Joel Goldstick於 2012年3月16日星期五UTC+8下午5時31分13秒寫道:
On Fri, Mar 16, 2012 at 4:52 AM, yillkid <yil...@gmail.com> wrote:
> Hi all:
>
> I want add a filed in app to add user page (/admin/auth/user/ ),
>
> or
>
> Actually I just want to add a valid date (DateTIme Filed) in add user page,
>
> and this Filed I have create in UserProfile class already, then how I should
> do ?
>
> thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/tbvw5Nc8e9IJ.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscribe@googlegroups.com.

> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

Django has a way to extend user information with User Profiles.  Here
is one of the first items that pops up on google:

http://www.turnkeylinux.org/blog/django-profile

If you are using v1.3 here is the section in the docs:
https://docs.djangoproject.com/en/1.3/topics/auth/#storing-additional-information-about-users

Apparently this is an area that is changing in v1.4 so take note

--
Joel Goldstick


Joel Goldstick於 2012年3月16日星期五UTC+8下午5時31分13秒寫道:
On Fri, Mar 16, 2012 at 4:52 AM, yillkid <yil...@gmail.com> wrote:
> Hi all:
>
> I want add a filed in app to add user page (/admin/auth/user/ ),
>
> or
>
> Actually I just want to add a valid date (DateTIme Filed) in add user page,
>
> and this Filed I have create in UserProfile class already, then how I should
> do ?
>
> thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/tbvw5Nc8e9IJ.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscribe@googlegroups.com.

> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

Django has a way to extend user information with User Profiles.  Here
is one of the first items that pops up on google:

http://www.turnkeylinux.org/blog/django-profile

If you are using v1.3 here is the section in the docs:
https://docs.djangoproject.com/en/1.3/topics/auth/#storing-additional-information-about-users

Apparently this is an area that is changing in v1.4 so take note

--
Joel Goldstick


Joel Goldstick於 2012年3月16日星期五UTC+8下午5時31分13秒寫道:
On Fri, Mar 16, 2012 at 4:52 AM, yillkid <yil...@gmail.com> wrote:
> Hi all:
>
> I want add a filed in app to add user page (/admin/auth/user/ ),
>
> or
>
> Actually I just want to add a valid date (DateTIme Filed) in add user page,
>
> and this Filed I have create in UserProfile class already, then how I should
> do ?
>
> thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/tbvw5Nc8e9IJ.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages