Using django-fitler on django 1.4 beta.

138 views
Skip to first unread message

Andres Quiroga

unread,
Feb 29, 2012, 9:09:20 AM2/29/12
to django-filter
Hi, I'm new here... I'm from Bogotá, Colombia, and I'm a django dev.
(Excuse me for my English)

Now I use the dev version of django 1.4, and I'm tryin to use django-
filter for show my lists and filter these.

I have a file named filters into my app, and I'm defining my filters
here, but when I import thse on my view,
i found an error. "ViewDoesNotExist". On the beta vesion of django
1.4, the error messages are diferent to
the real error... In this case, only tryin to export the filters from
another file, the app exploits.

¿There is another way to use django-filter on django 1.4?¿the django-
filter is not supported yet on djago 1.4 beta?

Thanks everybody for your help...

Mathieu Leplatre

unread,
Feb 29, 2012, 10:45:27 AM2/29/12
to django...@googlegroups.com
Hi Andres,

If you precise your django version, I guess that you have the same
error with django 1.3, right ?
Can you post your exact error (and maybe some simple code ?) ?

And try to run :

python manage.py test django_filters

You can use http://friendpaste.com to post the output.

Suerte :)
Mathieu.

--
Mathieu Leplatre

Andres Quiroga

unread,
Feb 29, 2012, 12:49:20 PM2/29/12
to django-filter
Hi Mathieu...

On another projects with django 1.3, the django-filters run
perfectly...

Then, on my django 1.4 project, using virtualenvwraper, I install the
django filter with the command pip install django-filter.

But, when I run the shell_plus and try:

>>> import django_filters

or

>>> from django_filters import FilterSet

I find the error following output: http://friendpaste.com/3czLBj74lfV4GtjhLfhI3m


The problem is in the import .... although, I send my app code if you
have any suggestions...

http://friendpaste.com/3haNGZbnmT5BP2CovDiN4K

All files are into the account folder (the app name)...


Thankyou so much....









On 29 feb, 10:45, Mathieu Leplatre <leplat...@gmail.com> wrote:
> Hi Andres,
>
> If you precise your django version, I guess that you have the same
> error with django 1.3, right ?
> Can you post your exact error (and maybe some simple code ?) ?
>
> And try to run :
>
>   python manage.py test django_filters
>
> You can usehttp://friendpaste.comto post the output.

Camilo Nova

unread,
Mar 1, 2012, 7:08:25 AM3/1/12
to django...@googlegroups.com
Hi

I'm pretty sure XML field was deprecated in django 1.4, does anyone knows how was replaced?
--
Camilo Nova
http://camilonova.com

Steve

unread,
Mar 1, 2012, 9:42:24 AM3/1/12
to django...@googlegroups.com
Check here or other forks


Alex, the creator of django-filters, has taken on a lot of other high profile projects and this one hasn't been kept up, but there are many forks on github which fill in the blanks.

Also, as of 1.4 django-filters will effectively be built into the admin, so you may not need them at all.

-Steve

Camilo Nova

unread,
Mar 2, 2012, 2:03:53 PM3/2/12
to django...@googlegroups.com
Steve, how is that, django-filters will be included in the contrib of Django?

Steve

unread,
Mar 2, 2012, 2:06:46 PM3/2/12
to django...@googlegroups.com
Well a django-filters like feature will replace the current admin list_filter, so you can have your own custom FilterSpec objects which essentially operate in a style similar to django-filters

-Steve

Camilo Nova

unread,
Mar 2, 2012, 2:08:01 PM3/2/12
to django...@googlegroups.com
You can also use that outside the admin site?

Steve

unread,
Mar 2, 2012, 2:12:08 PM3/2/12
to django...@googlegroups.com
I don't think so, no. Check out the admin docs:  https://docs.djangoproject.com/en/dev/ref/contrib/admin/ 
Reply all
Reply to author
Forward
0 new messages