Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No module named filterspecs

Tags:

eclipse

django

In eclipse,when i create new project, i got an error like,

       Error creating Django project     
    settings.py file not created     
    Stdout:
    Stderr:

If i synchronize present project and runserver, iam getting Error: No module named filterspecs.But i haven't used filterspecs in my project. Already filterspecs.py installed in usr/local/lib/python2.7/dist-packages/django/contrib/admin.

Kindly advise to rectify the error.

like image 436
Raji Avatar asked Apr 09 '12 08:04

Raji


2 Answers

You may be using django.contrib.admin.filterspecs to create custom filters for your admin pages, such as outlined here: Custom Filter in Django Admin on Django 1.3 or below

Unfortunatelly, you will have to rewrite these using the new list_filter module functionality.

See the manual here:

https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter

like image 146
postrational Avatar answered Nov 09 '22 16:11

postrational


This happened to me as well, even though my code wasn't directly using any filterspecs.

Run python manage.py runserver --traceback to see exactly where the error is coming from.

This module was removed in Django 1.4, but other external modules you have listed in your settings.py might still be using it, so make sure you upgrade everything in your INSTALLED_APPS list. In my case, I was using an outdated version of FeinCMS, but after I upgraded it, the error went away.

like image 4
Cerin Avatar answered Nov 09 '22 16:11

Cerin