Re: template url tag issue

2009-08-30 Thread selcukcihan
Hi, i resolved the problem by creating a custom url tag named app1_url. I copied the code from URLNode and related url method (of defaulttags.py) and modified the calls to reverse so that it gets the argument urlconf. On Aug 29, 9:06 pm, selcukcihan <selcukci...@gmail.com> wrote: >

template url tag issue

2009-08-29 Thread selcukcihan
(Django release 1.1) Hi, i have an application within my project, call it app1. It has urls.py within its directory. That project.app1.urls does not get included within ROOT_URLCONF(which points to 'project.urls'). I needed project.app1.urls be isolated from other urls. Then i wrote a middleware

django way for managing similarities between models

2009-08-21 Thread selcukcihan
Hi, i have certain models like Article, Message and Comment. I want to be able to track changes to instances of these models. Specifically, I would like to store the date of creation and date of last modification. I can do this within each model separately, but that is just depressing. How should

Re: how to, complex filters in admin

2009-08-03 Thread selcukcihan
Admin, self).queryset(request) >         qs = qs.filter(some_integer_field__gt=10) >         return qs > > admin.site.register(Thing, ThingAdmin) > > On 3 Aug, 10:52, selcukcihan <selcukci...@gmail.com> wrote: > > > Hi, is there a ready to go solution within dja

how to, complex filters in admin

2009-08-03 Thread selcukcihan
Hi, is there a ready to go solution within django for providing complex filters(besides the date filters and others) on models within the admin? For instance, there is a model with an integer field, i would like to be able to apply filters of the form "greater than or equal to" or "between this

Re: custom admin actions

2009-07-31 Thread selcukcihan
; modeladmin.model == OurModel. > > On Thu, Jul 30, 2009 at 1:22 PM, selcukcihan<selcukci...@gmail.com> wrote: > > > Hi, i have django 1.1 > > > I have a user profile model, call it OurUser. I have defined a custom > > action, "send mail". This action is avail

custom admin actions

2009-07-30 Thread selcukcihan
Hi, i have django 1.1 I have a user profile model, call it OurUser. I have defined a custom action, "send mail". This action is available in OurUser and django auth's User models. It is handled via a global function with this signature def send_mail_to_users(modeladmin, request, queryset):

Re: email as username, issue with admin page

2009-07-18 Thread selcukcihan
ly i could derive from UserCreationForm and UserChangeForm to reflect the changes, but i could not get it working with inheritance and i am a relatively novice python programmer On Jul 18, 3:01 pm, selcukcihan <selcukci...@gmail.com> wrote: > Hi, thanks for the tip. I decide

Re: email as username, issue with admin page

2009-07-18 Thread selcukcihan
Hi, thanks for the tip. I decided to just replicate auth.forms.UserCreationForm and auth.forms.UserChangeForm as OurUserCreationForm and OurUserChangeForm Ofcourse with the difference of having username as a forms.EmailField In admin.py of my application i did admin.site.unregister(User)

email as username, issue with admin page

2009-07-16 Thread selcukcihan
Hi, i am using email as username. Both username and email fields in User model always have the same value which is an email. >From previous posts and code snippets, i got logins authentication and other stuff working. However, i just can't seem to get the admin page to create/modify user's whose

Re: ImportError: No module named urls

2009-07-11 Thread selcukcihan
Using trunk with apache + mod_wsgi, Hi, i also have url problems with admin. First of all, if i use the depreciated method(r'^admin/(.*)', admin.site.root) everything works fine. Well, since there is a new method, i switched to it; using (r'^admin/', include(admin.site.urls)). The problem is