Thanks Thusjanthan... That certainly will work.
Now request.META['REMOTE_ADDR'] it seems it would be possible somehow to add a field to our userprofile or auth_user table such as last_ip_used and record that customers last IP when using the system. This makes easier for us to track from the apache access_log where a logged on customer is actually going. _Other than modifying the existing logon routine I'm wondering if their is someway to make a wrapper to do this. _Or is there another mechanism or log in Django that logs the activity of users after they log on? On Jul 6, 11:24 pm, thusjanthan <thusjant...@gmail.com> wrote: > This would be done in the view that calls the registration page. > Suppose its like this > > def index(request): > message = request.META['REMOTE_ADDR'] > ... send message ... > > Basically short of it is the dictionary request.META contains the Key: > REMOTE_ADDR which contains the ip. You would access it as follows: > : > > request.META['REMOTE_ADDR'] > > More information on the META dict can be found > at:http://docs.djangoproject.com/en/dev/ref/request-response/#django.htt... > > Cheers, > Thusjanthan Kubendranathan > > On Jul 6, 2:16 pm, NoviceSortOf <dljonsson2...@gmail.com> wrote: > > > I would like to record the IP numbers of persons registering on our > > Django driven site. The IP can simply be recorded in the form > > generated and sent to us during the registration process, as we have > > custom notifiers sent to us whenever somebody registers. But I'm > > wondering in the registration process how we can capture the IP > > address of the user/registrant? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.