Not clearly understand what do you need.

If you want to modify Admin index page to add your action links or widgets,
take a look at django-grappelli or django-admin-tools.

If you want to add custom view for your models, then read this
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_urls

On Wed, Apr 27, 2011 at 3:42 AM, kelvinfix <kelvin...@ymail.com> wrote:

> I have a view in view.py:
>
> def question_list(request):
>    #questions = Question.objects.filter(topic__icontains = 1)
>    questions = Question.objects.all()
>    return render_to_response('admin/question_list.html',
> {'questions':questions})
> question_list = staff_member_required(question_list)
>
> How can I add the view into admin.py? So that it can be view in the
> admin index page.
>
> --
> 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.
>
>

-- 
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.

Reply via email to