django ajax select

2011-10-30 Thread pradnya
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

django-easyfilters examples?

2011-10-30 Thread Alan
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

django-easyfilters for filtering data in a view

2011-10-30 Thread Alan
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:

Re: I can't activate the admin site

2011-10-30 Thread vaishnav1...@gmail.com
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

Re: new formwizard - how to pass data between forms

2011-10-30 Thread Kurtis Mullins
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

Re: TabularInline "Add another" link not clickable

2011-10-30 Thread Lee
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

I can't activate the admin site

2011-10-30 Thread Juan Kepler
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

TabularInline "Add another" link not clickable

2011-10-30 Thread Lee
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

Re: Django Standalone Template

2011-10-30 Thread SmileyChris
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

Re: variables in a dict in a template

2011-10-30 Thread Kurtis Mullins
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

variables in a dict in a template

2011-10-30 Thread kenneth gonsalves
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:

DatabaseError when running unit tests after upgrade to Django 1.3.1

2011-10-30 Thread Florian Hahn
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': '',

Re: django request.POST data caching

2011-10-30 Thread Kurtis Mullins
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

Re: Name Error in django class method

2011-10-30 Thread Navaneethan R
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

Re: Name Error in django class method

2011-10-30 Thread Navaneethan R
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