cannot import name ListFilter
Request Method: | GET |
---|---|
Request URL: | http://localhost:8000/admin |
Django Version: | 1.4b1 |
Exception Type: | ImportError |
Exception Value: | cannot import name ListFilter |
Exception Location: | /Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/site-packages/django/contrib/admin/validation.py in <module>, line 6 |
Python Executable: | /Users/fjavieralba/virtualenvs/personal_page/bin/python |
Python Version: | 2.7.1 |
Python Path: | ['/Users/fjavieralba/github/fjavieralba_com', '/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg', '/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg', '/Users/fjavieralba/virtualenvs/personal_page/lib/python27.zip', '/Library/Python/2.7/site-packages/pip-1.0.2-py2.7.egg', '/Library/Python/2.7/site-packages/virtualenv-1.6.4-py2.7.egg', '/Library/Python/2.7/site-packages/django_threaded_multihost-1.3_2-py2.5.egg', '/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7', '/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/plat-darwin', '/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/plat-mac', '/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/plat-mac/lib-scriptpackages', '/Users/fjavieralba/virtualenvs/personal_page/Extras/lib/python', '/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/lib-tk', '/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/lib-old', '/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/site-packages', '/Library/Python/2.7/site-packages', '/Library/Python/2.7/site-packages/PIL', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC'] |
Server time: | Thu, 16 Feb 2012 17:02:15 +0100 |
/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
urlconf = settings.ROOT_URLCONF
urlresolvers.set_urlconf(urlconf)
resolver = urlresolvers.RegexURLResolver(r'^/', urlconf)
try:
response = None
# Apply request middleware
for middleware_method in self._request_middleware:
response = middleware_method(request)...
if response:
break
if response is None:
if hasattr(request, "urlconf"):
# Reset url resolver with a custom urlconf.
/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/site-packages/django/middleware/common.py
in process_request
if (not _is_valid_path(request.path_info, urlconf) and...
/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/site-packages/django/middleware/common.py
in _is_valid_path
urlresolvers.resolve(path, urlconf)...
/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/site-packages/django/core/urlresolvers.py
in resolve
return get_resolver(urlconf).resolve(path)...
/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/site-packages/django/core/urlresolvers.py
in resolve
for pattern in self.url_patterns:...
/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/site-packages/django/core/urlresolvers.py
in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)...
/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/site-packages/django/core/urlresolvers.py
in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)...
/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/site-packages/django/utils/importlib.py
in import_module
__import__(name)...
/Users/fjavieralba/github/fjavieralba_com/fjavieralba_com/urls.py
in <module>
admin.autodiscover()...
/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/site-packages/django/contrib/admin/__init__.py
in autodiscover
import_module('%s.admin' % app)...
/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/site-packages/django/utils/importlib.py
in import_module
__import__(name)...
/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/site-packages/django/contrib/auth/admin.py
in <module>
admin.site.register(Group, GroupAdmin)...
/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/site-packages/django/contrib/admin/sites.py
in register
from django.contrib.admin.validation import validate...
/Users/fjavieralba/virtualenvs/personal_page/lib/python2.7/site-packages/django/contrib/admin/validation.py
in <module>
from django.core.exceptions import ImproperlyConfigured
from django.db import models
from django.db.models.fields import FieldDoesNotExist
from django.forms.models import (BaseModelForm, BaseModelFormSet, fields_for_model,
_get_foreign_key)
from django.contrib.admin import ListFilter, FieldListFilter...
from django.contrib.admin.util import get_fields_from_path, NotRelationField
from django.contrib.admin.options import (flatten_fieldsets, BaseModelAdmin,
HORIZONTAL, VERTICAL)
__all__ = ['validate']
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
wsgi.multiprocess | False |
RUN_MAIN | 'true' |
rvm_version | '1.10.0' |
HTTP_ACCEPT_LANGUAGE | 'en-US,en;q=0.8' |
VERSIONER_PYTHON_PREFER_32_BIT | 'no' |
SERVER_SOFTWARE | 'WSGIServer/0.1 Python/2.7.1' |
rvm_path | '/Users/fjavieralba/.rvm' |
TERM_PROGRAM_VERSION | '303' |
escape_flag | '1' |
REQUEST_METHOD | 'GET' |
LOGNAME | 'fjavieralba' |
USER | 'fjavieralba' |
PATH | '/Users/fjavieralba/virtualenvs/personal_page/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin:/Users/fjavieralba/.rvm/bin' |
QUERY_STRING | '' |
HOME | '/Users/fjavieralba' |
PS1 | '(personal_page)\\h:\\W \\u\\$ ' |
DISPLAY | '/tmp/launch-mP4tgn/org.x:0' |
rvm_verbose_flag | '0' |
LANG | 'es_ES.UTF-8' |
HTTP_ACCEPT_CHARSET | 'ISO-8859-1,utf-8;q=0.7,*;q=0.3' |
TERM | 'xterm-256color' |
SHELL | '/bin/bash' |
TZ | 'Europe/Madrid' |
_first | '0' |
SERVER_NAME | '1.0.0.127.in-addr.arpa' |
VERSIONER_PYTHON_VERSION | '2.7' |
SHLVL | '1' |
__array_start | '0' |
SECURITYSESSIONID | '186a5' |
wsgi.url_scheme | 'http' |
rvm_debug_flag | '0' |
CONTENT_LENGTH | '' |
_ | '/Users/fjavieralba/virtualenvs/personal_page/bin/python' |
SERVER_PORT | '8000' |
rvm_reload_flag | '0' |
HTTP_ACCEPT | 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' |
TERM_PROGRAM | 'Apple_Terminal' |
rvm_bin_path | '/Users/fjavieralba/.rvm/bin' |
PATH_INFO | u'/admin' |
WORKON_HOME | '/Users/fjavieralba/virtualenvs' |
TERM_SESSION_ID | 'B408EF2E-235B-482B-8BAF-4E3854F02215' |
rvm_prefix | '/Users/fjavieralba' |
rvm_dump_environment_flag | '0' |
SSH_AUTH_SOCK | '/tmp/launch-UBq3xG/Listeners' |
VIRTUAL_ENV | '/Users/fjavieralba/virtualenvs/personal_page' |
rvm_trace_flag | '0' |
Apple_PubSub_Socket_Render | '/tmp/launch-EY3qCC/Render' |
HTTP_HOST | 'localhost:8000' |
SCRIPT_NAME | u'' |
wsgi.multithread | True |
HTTP_CONNECTION | 'keep-alive' |
rvm_clang_flag | '0' |
TMPDIR | '/var/folders/py/lsxmb3_d2r3fwtlzvccr4fzc0000gn/T/' |
VIRTUALENVWRAPPER_HOOK_DIR | '/Users/fjavieralba/virtualenvs' |
_second | '1' |
LSCOLORS | 'ExFxCxDxBxegedabagacad' |
wsgi.version | (1, 0) |
NLTK_DATA | '/usr/share/nltk' |
GATEWAY_INTERFACE | 'CGI/1.1' |
wsgi.run_once | False |
OLDPWD | '/Users/fjavieralba/github/fjavieralba_com/fjavieralba_com' |
REMOTE_ADDR | '127.0.0.1' |
HTTP_USER_AGENT | 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11' |
wsgi.input | <socket._fileobject object at 0x1059ae1d0> |
wsgi.errors | <open file '<stderr>', mode 'w' at 0x104c68270> |
CLICOLOR | '1' |
__CF_USER_TEXT_ENCODING | '0x1F5:0:0' |
Apple_Ubiquity_Message | '/tmp/launch-mBY1vs/Apple_Ubiquity_Message' |
PWD | '/Users/fjavieralba/github/fjavieralba_com' |
SERVER_PROTOCOL | 'HTTP/1.1' |
DJANGO_SETTINGS_MODULE | 'fjavieralba_com.settings' |
CONTENT_TYPE | 'text/plain' |
VIRTUALENVWRAPPER_LOG_DIR | '/Users/fjavieralba/virtualenvs' |
wsgi.file_wrapper | '' |
REMOTE_HOST | '' |
HTTP_ACCEPT_ENCODING | 'gzip,deflate,sdch' |
COMMAND_MODE | 'unix2003' |
fjavieralba_com.settings
Setting | Value |
---|---|
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'en-us' |
ROOT_URLCONF | 'fjavieralba_com.urls' |
MANAGERS | () |
DEFAULT_CHARSET | 'utf-8' |
STATIC_ROOT | '' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
FILE_UPLOAD_PERMISSIONS | None |
URL_VALIDATOR_USER_AGENT | 'Django/1.4b1 (http://www.djangoproject.com)' |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
ADMIN_FOR | () |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M') |
DATABASES | {'default': {'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': '/Users/fjavieralba/github/fjavieralba_com/database/fjavieralba.db', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'UTC', 'USER': ''}} |
SERVER_EMAIL | 'root@localhost' |
FILE_UPLOAD_HANDLERS | ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') |
DEFAULT_CONTENT_TYPE | 'text/html' |
APPEND_SLASH | True |
FIRST_DAY_OF_WEEK | 0 |
DATABASE_ROUTERS | [] |
YEAR_MONTH_FORMAT | 'F Y' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'LOCATION': ''}} |
SESSION_COOKIE_PATH | '/' |
USE_X_FORWARDED_HOST | False |
MIDDLEWARE_CLASSES | ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') |
USE_I18N | True |
THOUSAND_SEPARATOR | ',' |
SECRET_KEY | u'********************' |
LANGUAGE_COOKIE_NAME | 'django_language' |
DEFAULT_INDEX_TABLESPACE | '' |
TRANSACTIONS_MANAGED | False |
LOGGING_CONFIG | 'django.utils.log.dictConfig' |
SEND_BROKEN_LINK_EMAILS | False |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
WSGI_APPLICATION | 'fjavieralba_com.wsgi.application' |
TEMPLATE_DEBUG | True |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend',) |
FORCE_SCRIPT_NAME | None |
CACHE_BACKEND | 'locmem://' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SESSION_COOKIE_SECURE | False |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
SESSION_FILE_PATH | None |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
INSTALLED_APPS | ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'fjavieralba_com.web', 'django.contrib.admin') |
LANGUAGES | (('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')) |
COMMENTS_ALLOW_PROFANITIES | False |
STATICFILES_DIRS | () |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | None |
SESSION_COOKIE_HTTPONLY | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
MONTH_DAY_FORMAT | 'F j' |
LOGIN_URL | '/accounts/login/' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
TIME_FORMAT | 'P' |
DATE_INPUT_FORMATS | ('%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y') |
CSRF_COOKIE_NAME | 'csrftoken' |
EMAIL_HOST_PASSWORD | u'********************' |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
CACHE_MIDDLEWARE_ALIAS | 'default' |
SESSION_SAVE_EVERY_REQUEST | False |
NUMBER_GROUPING | 0 |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_COOKIE_PATH | '/' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGGING | {'disable_existing_loggers': False, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'level': 'ERROR'}}, 'loggers': {'django.request': {'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True}}, 'version': 1} |
IGNORABLE_404_URLS | () |
LOCALE_PATHS | () |
TEMPLATE_STRING_IF_INVALID | '' |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | False |
FIXTURE_DIRS | () |
EMAIL_HOST | 'localhost' |
DATE_FORMAT | 'N j, Y' |
MEDIA_ROOT | '' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | () |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
MEDIA_URL | '' |
DATETIME_FORMAT | 'N j, Y, P' |
TEMPLATE_DIRS | () |
SITE_ID | 1 |
DISALLOWED_USER_AGENTS | () |
ALLOWED_INCLUDE_ROOTS | () |
DECIMAL_SEPARATOR | '.' |
SHORT_DATE_FORMAT | 'm/d/Y' |
TEST_RUNNER | 'django.test.simple.DjangoTestSuiteRunner' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
TIME_ZONE | 'Europe/Madrid' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
DEFAULT_TABLESPACE | '' |
TEMPLATE_CONTEXT_PROCESSORS | ('django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.core.context_processors.tz', 'django.contrib.messages.context_processors.messages') |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'fjavieralba_com.settings' |
USE_ETAGS | False |
LANGUAGES_BIDI | ('he', 'ar', 'fa') |
FILE_UPLOAD_TEMP_DIR | None |
INTERNAL_IPS | () |
STATIC_URL | '/static/' |
EMAIL_PORT | 25 |
USE_TZ | True |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
PASSWORD_HASHERS | u'********************' |
ABSOLUTE_URL_OVERRIDES | {} |
CACHE_MIDDLEWARE_SECONDS | 600 |
DATETIME_INPUT_FORMATS | ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y') |
EMAIL_HOST_USER | '' |
PROFANITIES_LIST | u'********************' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard 500 page.