On Sun, 2011-10-30 at 12:00 -0400, Kurtis Mullins wrote:
> One way to go about it is to create multiple, nested objects. For
> example:
>
> Score - Rounds Holes
>
> Then in your template, you'd do something along the lines of:
>
> {% for round in game.rounds %} {% for hole in round.holes
Hi,
i m using ajax select plugin in my project which i got from
https://github.com/crucialfelix/django-ajax-selects .
now i want to know how can i use it in django admin's tabular inline ?
Thanks
Pradnya
--
You received this message because you are subscribed to the Google Groups
"Django use
Does anyone know of any examples for django-easyfilters (apart from
the official documentation, which is a little lacking)?
I'm having trouble understanding how to create a custom filter for a
many-to-many relationship (the default ManyToManyFilter appears as
"MyType object (x)" in the template (w
I'm trying to put together a view that filters data similar to the
admin interface's change lists for a model.
Does anyone use django-easyfilters for this purpose?
The documentation is very terse on how to use the get_template()
method:
http://packages.python.org/django-easyfilters/filterset.html
Hey lucas, its due to some indentation problem in coding as python strongly
relies
Cheers, sent from my nokia mobile
--Original message--
From: Juan Kepler
To: "Django users"
Date: Sunday, October 30, 2011 6:42:03 PM GMT-0700
Subject: I can't activate the admin site
I've done what the
I haven't read that particular back ports docs but when I looked at the dev
docs for the new form wizard a little while back, I believe that it stores all
previous data as hidden fields throughout the process. So I would think
form.cleaned_data should contain everything. Hopefully that helps a l
More info: actually the *last* "Add another" link on the page is
clickable (I have multiple TabularInlines, one for each related
table), the others are not.
Lee
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email t
I've done what the "Writing your first Django app, part 1" said. It
works.
But in the part 2:
*I add "django.contrib.admin" to my INSTALLED_APPS setting.
*I run python manage.py syncdb.
And I have this error:
"File "...Python26\lib\site-packages\django\contrib\admin\sites.py",
line 250
ret
The "Add another" links in my TabularInlines suddenly stopped being
clickable. My browser pointer does not change shape like usual when I
hover over the link either. I can tab to the link and press ENTER and
it works as expected. The source behind the links is
Add another MyModelName
I checked CS
Take a read through this section of the docs:
https://docs.djangoproject.com/en/1.3/ref/templates/api/#loading-templates
Specifically, those templates are found via the app_directories.Loader.
So you'd run loader.get_template('admin/base.html') to get that template.
The reason that it's in a subd
One way to go about it is to create multiple, nested objects. For example:
Score
- Rounds
Holes
Then in your template, you'd do something along the lines of:
{% for round in game.rounds %}
{% for hole in round.holes %}
{{ hole.score }}
{% endfor %}
{% endfor%}
Hopefully that helps a little
hi,
I have a dict which I use to store golf scores to display. Template
syntax is:
{{pl.1.1.scores.1.sc}} for the first hole of the first round
{{pl.1.2.scores.1.sc}} for the first hole of the second round
{{pl.1.1.scores.2.sc}} for the second hole of the first round
etc
I want to do:
{{pl.1.rou
Hi,
upgrading to Django 1.3.1 somehow breaks my unit tests.
I'm using django.contrib.gis.db.backends.spatialite as a database
engine with two databases;
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.spatialite',
'NAME': 'sqlite.db',
'USER': '',
I apologize if this answer doesn't help much -- I'm confused by your
question.
request.POST doesn't cache anything. It's simply filled with data submitted
by the browser on that specific request.
If you click "Back" on your browser, many times the browsers will simply
re-fill those form fields in
yes-sure i ll follow the instructions note.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/KprOvRmbsXYJ.
To post to this group, send email to django-users@
yes i had imported os module.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/Uo4NIB7To7EJ.
To post to this group, send email to django-users@googlegroups.c
16 matches
Mail list logo