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:
>
(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
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
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
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
; 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
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):
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
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)
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
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
11 matches
Mail list logo