How to get the last item of array in a built-in template tag?

2009-12-05 Thread workingbird
in built-in template tags, i just know to get item of array by index,just like: {{ my_array.2 }} but if i want to get the last, how should i do? i've tried {{ my_array.-1 }}, but it seems something wrong. any help will be greatly appreciated. -- You received this message because you are subscr

django-filebrowser throw out an exception "WindowsError"

2009-09-30 Thread workingbird
/ (3, '') Request Method: GET Request URL:http://localhost:8000/admin/filebrowser/media/uploads/?pop=1 Exception Type: WindowsError Exception Value:(3, '') Exception Location: C:\Users\workingbird\Desktop\Tourial\test_proj \filebrowser\views.py in in

Re: how to use site administration?

2009-02-04 Thread workingbird
@Daniel thanks a lot. it works! following the document, i add file 'admin.py' under 'myapp', and input "admin.site.register(Account)",it is ok now. On Feb 4, 5:15 pm, Daniel Roseman wrote: > On Feb 4, 8:56 am, workingbird wrote: > > > > > i

Re: how to use site administration?

2009-02-04 Thread workingbird
the django documents said super user can edit data in site administration. but i can not find how to enter. did i miss something? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

how to use site administration?

2009-02-04 Thread workingbird
i the database is created successfully, and i can sign in as a super_user. and in model documentation (http://localhost:8000/admin/doc/models/), the 'Account' model can be found. the problem is that, the on Site administration home page ,it is only 2 groups and their models: Auth, Sites. there is

Re: MultiValueDictKeyError when accessing POST items

2009-01-22 Thread workingbird
"login_username" should be the attribute named "name", not "id". On Dec 23 2008, 11:03 am, DragonSlayre wrote: > I've created my own form: > > >   Login: >   Username: >   >   Password: >   >   > > > I am mappying /accounts/login/ to a view of mine, which is then > calling: > > if request.