Hi, Could someone please explain (just a quick overview) how the authentication process works for the Django admin site ?
Looking through the source I see methods for index and app_index, and login & display_login_form ... however I cannot see how, when I first boot up the server and navigate to the '/admin' address (which maps to the index method) the user is authenticated ? All I can see in those methods (index and app_index) is that the user is taken from request.user ? Is it to do with the authentication middleware ? Any help will be greatly appreciated. Thanks, -Mic ---------- Forwarded message ---------- From: Mic Pringle <micprin...@gmail.com> Date: 2009/4/7 Subject: RE: Embedded Django ... To: django-users@googlegroups.com Hi, I've been having a look through the docs and source code and if I'm right, I could achieve what I need by subclassing AdminSite and implementing my own 'index' and 'urls' methods. Can someone confirm whether or not I'm on the right track ? Thanks, -Mic ---------- Forwarded message ---------- From: Mic Pringle <micprin...@gmail.com> Date: 2009/4/7 Subject: Embedded Django ... To: django-users@googlegroups.com Hi, I am currently developing a database creation and manipulation tool for the Mac (similar to Filemaker, Bento, ModelBaker etc) and I'm looking at embedding Django and using the admin interface for data input and retrieval. The only concern I have is that I don't require users, groups, permissions or sessions, and as I understand it, all this is baked into the admin application, non-optional. So my question is, how easy/difficult would it be to strip out all of the above from the admin application ? Would you start by copying the admin folder from contrib into your own application and just start ripping this stuff out, line by line, or is there perhaps an easier way ? Any help would be greatly appreciated. Thanks -Mic --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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 -~----------~----~----~----~------~----~------~--~---