2005/12/31, Vladimir Labath <[EMAIL PROTECTED]>:
> here is my solutions
>
> create folder 'registration' in 'templates'
> copy
> django_src/django/contrib/admin/templates/admin/login.html
> to templates/registartion
> change {% extends "admin/base_site" %}
>
> for example into views.py:
> from django.views.decorators.auth import login_required
> ..
> ....
> def add_entry(request):
> .....
> ...
> add_entry = login_required(add_entry)
>
> good luck
> Vlado
>
>
>
>
> On 12/27/05, Alice <[EMAIL PROTECTED]> wrote:
> >
> > yes, and that doesn't contain anything on using the existing templates
> > and views - if they should be used at all.
> >
> > Alice
I found that you can use admin's login function:
from django.contrib.admin.views.decorators import staff_member_required
@staff_member_required
def upload(request):
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit