• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Embedded Django ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Embedded Django ...


  • Subject: RE: Embedded Django ...
  • From: Mic Pringle <email@hidden>
  • Date: Tue, 7 Apr 2009 10:50:17 +0100

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 ?

Any help will be greatly appreciated.

Thanks,

-Mic


---------- Forwarded message ----------
From: Mic Pringle <email@hidden>
Date: 2009/4/7
Subject: RE: Embedded Django ...
To: email@hidden


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 <email@hidden>
Date: 2009/4/7
Subject: Embedded Django ...
To: email@hidden


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
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Embedded Django ...
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: Re: PDFView in layer backed view appears white
  • Next by Date: Re: Embedded Django ...
  • Previous by thread: Re: Accessing remote database
  • Next by thread: Re: Embedded Django ...
  • Index(es):
    • Date
    • Thread