MultipleObjectsReturned at /noar.html

MultipleObjectsReturned at /noar.html

get() returned more than one Programa -- it returned 2!
Request Method: GET
Request URL: http://sucesso.fm/noar.html
Django Version: 1.5.4
Exception Type: MultipleObjectsReturned
Exception Value:
get() returned more than one Programa -- it returned 2!
Exception Location: /home/liororiz/webapps/sucesso_django/lib/python2.7/django/db/models/query.py in get, line 407
Python Executable: /usr/local/bin/python
Python Version: 2.7.5
Python Path:
['/home/liororiz/webapps/sucesso_django',
 '/home/liororiz/webapps/sucesso_django/sucessofm',
 '/home/liororiz/webapps/sucesso_django/lib/python2.7',
 '/home/liororiz/lib/python2.7/pip-1.4.1-py2.7.egg',
 '/home/liororiz/lib/python2.7',
 '/usr/local/lib/python27.zip',
 '/usr/local/lib/python2.7',
 '/usr/local/lib/python2.7/plat-linux2',
 '/usr/local/lib/python2.7/lib-tk',
 '/usr/local/lib/python2.7/lib-old',
 '/usr/local/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/site-packages',
 '/usr/local/lib/python2.7/site-packages/PIL']
Server time: Qua, 16 Abr 2014 04:33:07 -0300

Traceback Switch to copy-and-paste view



Request information

GET

No GET data

POST

No POST data

FILES

No FILES data

No cookie data

META

Variable Value
mod_wsgi.listener_port
'12082'
HTTP_X_FORWARDED_SERVER
'sucesso.fm'
HTTP_ACCEPT_LANGUAGE
'en-us,en-gb,en;q=0.7,*;q=0.3'
SERVER_PROTOCOL
'INCLUDED'
SERVER_SOFTWARE
'Apache/2.2.17 (Unix) mod_wsgi/3.4 Python/2.7.5'
SCRIPT_NAME
u''
mod_wsgi.enable_sendfile
'0'
mod_wsgi.handler_script
''
SERVER_SIGNATURE
''
REQUEST_METHOD
'GET'
HTTP_HTTPS
'off'
PATH_INFO
u'/noar.html'
HTTP_X_FORWARDED_SSL
'off'
QUERY_STRING
''
DOCUMENT_NAME
'index.html'
DATE_GMT
''
HTTP_USER_AGENT
'CCBot/2.0 (http://commoncrawl.org/faq/)'
HTTP_CONNECTION
'close'
SERVER_NAME
'sucesso.fm'
REMOTE_ADDR
'127.0.0.1'
mod_wsgi.queue_start
'1397633587358446'
mod_wsgi.request_handler
'wsgi-script'
HTTP_HTTP_X_FORWARDED_PROTO
'http'
wsgi.url_scheme
'http'
PATH_TRANSLATED
'/home/liororiz/webapps/sucesso_django/sucessofm/sucessofm/wsgi.py/noar.html'
SERVER_PORT
'80'
mod_wsgi.listener_host
''
USER_NAME
''
SERVER_ADDR
'127.0.0.1'
DOCUMENT_ROOT
'/home/liororiz/webapps/sucesso/apache2/htdocs'
mod_wsgi.process_group
'sucesso'
HTTP_X_FORWARDED_PROTO
'http'
SCRIPT_FILENAME
'/home/liororiz/webapps/sucesso_django/sucessofm/sucessofm/wsgi.py'
SERVER_ADMIN
'[no address given]'
SCRIPT_URI
'http://sucesso.fm/'
wsgi.input
<mod_wsgi.Input object at 0x7fc7fc083730>
LAST_MODIFIED
''
HTTP_HOST
'sucesso.fm'
SCRIPT_URL
'/'
wsgi.multithread
True
mod_wsgi.callable_object
'application'
REQUEST_URI
'/'
HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
DOCUMENT_URI
'/index.html'
HTTP_FORWARDED_REQUEST_URI
'/'
wsgi.version
(1, 0)
GATEWAY_INTERFACE
'CGI/1.1'
HTTP_X_FORWARDED_FOR
'54.196.196.72'
mod_wsgi.input_chunked
'0'
wsgi.errors
<mod_wsgi.Log object at 0x7fc7fc083430>
REMOTE_PORT
'54635'
HTTP_X_FORWARDED_HOST
'sucesso.fm'
mod_wsgi.version
(3, 4)
wsgi.run_once
False
wsgi.multiprocess
True
DATE_LOCAL
''
mod_wsgi.application_group
'web402.webfaction.com|/django.wsgi'
mod_wsgi.script_reloading
'1'
wsgi.file_wrapper
''
HTTP_ACCEPT_ENCODING
'x-gzip, gzip, deflate'

Settings

Using settings module sucessofm.settings

Setting Value
COMPRESS_URL
'/static/'
COMPRESS_OUTPUT_DIR
'CACHE'
COMPRESS_TEMPLATE_FILTER_CONTEXT
{'STATIC_URL': '/static/'}
USE_L10N
True
COMPRESS_DATA_URI_MAX_SIZE
1024
CSRF_COOKIE_SECURE
False
LANGUAGE_CODE
'pt-br'
ROOT_URLCONF
'sucessofm.urls'
MANAGERS
(('Ronni Roriz', 'ronniroriz@gmail.com'),)
COMPRESS_CSS_HASHING_METHOD
'hash'
DEFAULT_CHARSET
'utf-8'
SESSION_SERIALIZER
'django.contrib.sessions.serializers.PickleSerializer'
STATIC_ROOT
'/home/liororiz/webapps/static/'
COMPRESS_CLOSURE_COMPILER_ARGUMENTS
''
USE_THOUSAND_SEPARATOR
False
COMPRESS_OFFLINE_MANIFEST
'manifest.json'
ALLOWED_HOSTS
['sucesso.fm', 'www.sucesso.fm']
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
EMAIL_SUBJECT_PREFIX
'[Django] '
SEND_BROKEN_LINK_EMAILS
False
STATICFILES_FINDERS
('django.contrib.staticfiles.finders.FileSystemFinder',
 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
 'compressor.finders.CompressorFinder')
SESSION_CACHE_ALIAS
'default'
COMPRESS_CSSTIDY_ARGUMENTS
'--template=highest'
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_NAME
'sessionid'
ADMIN_FOR
()
TIME_INPUT_FORMATS
('%H:%M:%S', '%H:%M')
DATABASES
{'default': {'ENGINE': 'django.db.backends.mysql',
             'HOST': '',
             'NAME': 'sucesso',
             'OPTIONS': {},
             'PASSWORD': u'********************',
             'PORT': '',
             'TEST_CHARSET': None,
             'TEST_COLLATION': None,
             'TEST_MIRROR': None,
             'TEST_NAME': None,
             'TIME_ZONE': 'UTC',
             'USER': 'sucesso'}}
COMPRESS_YUI_BINARY
'java -jar yuicompressor.jar'
FILE_UPLOAD_PERMISSIONS
None
FILE_UPLOAD_HANDLERS
('django.core.files.uploadhandler.MemoryFileUploadHandler',
 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
DEFAULT_CONTENT_TYPE
'text/html'
COMPRESS_CSS_COMPRESSOR
'compressor.css.CssCompressor'
APPEND_SLASH
True
FIRST_DAY_OF_WEEK
0
DATABASE_ROUTERS
[]
YEAR_MONTH_FORMAT
'F Y'
COMPRESS_OFFLINE_TIMEOUT
31536000
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
CACHES
{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
SERVER_EMAIL
'root@localhost'
SESSION_COOKIE_PATH
'/'
COMPRESS_PARSER
'compressor.parser.AutoSelectParser'
COMPRESS_OFFLINE_CONTEXT
{'STATIC_URL': '/static/'}
STATIC_GENERATOR_ANONYMOUS_ONLY
False
COMPRESS_CACHE_BACKEND
'default'
MIDDLEWARE_CLASSES
('staticgenerator.middleware.StaticGeneratorMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware')
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'
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
TEMPLATE_LOADERS
('django.template.loaders.filesystem.Loader',
 'django.template.loaders.app_directories.Loader')
WSGI_APPLICATION
'sucessofm.wsgi.application'
TEMPLATE_DEBUG
True
X_FRAME_OPTIONS
'SAMEORIGIN'
CSRF_COOKIE_NAME
'csrftoken'
FORCE_SCRIPT_NAME
None
USE_X_FORWARDED_HOST
False
COMPRESS_CSSTIDY_BINARY
'csstidy'
SESSION_COOKIE_SECURE
False
COMPRESS_DEBUG_TOGGLE
'None'
CACHE_MIDDLEWARE_KEY_PREFIX
u'********************'
COMPRESS_VERBOSE
False
CSRF_COOKIE_DOMAIN
None
FILE_CHARSET
'utf-8'
DEBUG
True
SESSION_FILE_PATH
None
COMPRESS_JS_FILTERS
['compressor.filters.jsmin.JSMinFilter']
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',
 'django.contrib.redirects',
 'grappelli',
 'django.contrib.admin',
 'core',
 'compressor')
STATIC_GENERATOR_URLS
('^(.*)$',)
LANGUAGES_BIDI
('he', 'ar', 'fa')
COMMENTS_ALLOW_PROFANITIES
False
COMPRESS_YUI_CSS_ARGUMENTS
''
STATICFILES_DIRS
(Path('/home/liororiz/webapps/sucesso_django/sucessofm/static_dev'),)
STATIC_GENERATOR_EXCLUDE_URLS
('^/gestor',
 '^/grappelli',
 '^/media',
 '^/static',
 '^/pedido/$',
 '^/noar.html',
 '^/mais_ouvidas.html')
PREPEND_WWW
False
SECURE_PROXY_SSL_HEADER
None
PASSWORD_RESET_TIMEOUT_DAYS
u'********************'
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'
COMPRESS_STORAGE
'compressor.storage.CompressorFileStorage'
AUTH_USER_MODEL
'auth.User'
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')
COMPRESS_CSS_FILTERS
['compressor.filters.cssmin.CSSMinFilter']
AUTHENTICATION_BACKENDS
('django.contrib.auth.backends.ModelBackend',)
EMAIL_HOST_PASSWORD
u'********************'
COMPRESS_REBUILD_TIMEOUT
31536000
GRAPPELLI_ADMIN_TITLE
u'R\xe1dio Sucesso FM'
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
'/'
COMPRESS_CACHE_KEY_FUNCTION
u'********************'
LOGIN_REDIRECT_URL
'/accounts/profile/'
DECIMAL_SEPARATOR
'.'
COMPRESS_PRECOMPILERS
()
COMPRESS_MTIME_DELAY
10
SITE_ID
1
LOCALE_PATHS
()
TEMPLATE_STRING_IF_INVALID
''
LOGOUT_URL
'/accounts/logout/'
EMAIL_USE_TLS
False
TEMPLATE_DIRS
(Path('/home/liororiz/webapps/sucesso_django/sucessofm/templates'),)
FIXTURE_DIRS
()
EMAIL_HOST
'localhost'
DATE_FORMAT
'N j, Y'
MEDIA_ROOT
'/home/liororiz/webapps/media/'
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
ADMINS
(('Ronni Roriz', 'ronniroriz@gmail.com'),)
FORMAT_MODULE_PATH
None
DEFAULT_FROM_EMAIL
'webmaster@localhost'
COMPRESS_ROOT
'/home/liororiz/webapps/static'
MEDIA_URL
'/media/'
DATETIME_FORMAT
'N j, Y, P'
COMPRESS_YUI_JS_ARGUMENTS
''
COMPRESS_JS_COMPRESSOR
'compressor.js.JsCompressor'
DISALLOWED_USER_AGENTS
()
ALLOWED_INCLUDE_ROOTS
()
COMPRESS_MINT_DELAY
30
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}
PROJECT_DIR
Path('/home/liororiz/webapps/sucesso_django/sucessofm')
TEST_RUNNER
'django.test.simple.DjangoTestSuiteRunner'
COMPRESS_ENABLED
True
SHORT_DATE_FORMAT
'm/d/Y'
IGNORABLE_404_URLS
()
COMPRESS_OFFLINE
False
TIME_ZONE
'America/Sao_Paulo'
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
WEB_ROOT
'/home/liororiz/webapps/sucesso/apache2/htdocs'
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
'sucessofm.settings'
USE_ETAGS
False
LANGUAGES
(('af', 'Afrikaans'),
 ('ar', 'Arabic'),
 ('az', 'Azerbaijani'),
 ('bg', 'Bulgarian'),
 ('be', 'Belarusian'),
 ('bn', 'Bengali'),
 ('br', 'Breton'),
 ('bs', 'Bosnian'),
 ('ca', 'Catalan'),
 ('cs', 'Czech'),
 ('cy', 'Welsh'),
 ('da', 'Danish'),
 ('de', 'German'),
 ('el', 'Greek'),
 ('en', 'English'),
 ('en-gb', 'British English'),
 ('eo', 'Esperanto'),
 ('es', 'Spanish'),
 ('es-ar', 'Argentinian Spanish'),
 ('es-mx', 'Mexican Spanish'),
 ('es-ni', 'Nicaraguan Spanish'),
 ('es-ve', 'Venezuelan 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'),
 ('ia', 'Interlingua'),
 ('id', 'Indonesian'),
 ('is', 'Icelandic'),
 ('it', 'Italian'),
 ('ja', 'Japanese'),
 ('ka', 'Georgian'),
 ('kk', 'Kazakh'),
 ('km', 'Khmer'),
 ('kn', 'Kannada'),
 ('ko', 'Korean'),
 ('lb', 'Luxembourgish'),
 ('lt', 'Lithuanian'),
 ('lv', 'Latvian'),
 ('mk', 'Macedonian'),
 ('ml', 'Malayalam'),
 ('mn', 'Mongolian'),
 ('nb', 'Norwegian Bokmal'),
 ('ne', 'Nepali'),
 ('nl', 'Dutch'),
 ('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'),
 ('sw', 'Swahili'),
 ('ta', 'Tamil'),
 ('te', 'Telugu'),
 ('th', 'Thai'),
 ('tr', 'Turkish'),
 ('tt', 'Tatar'),
 ('udm', 'Udmurt'),
 ('uk', 'Ukrainian'),
 ('ur', 'Urdu'),
 ('vi', 'Vietnamese'),
 ('zh-cn', 'Simplified Chinese'),
 ('zh-tw', 'Traditional Chinese'))
COMPRESS_CLOSURE_COMPILER_BINARY
'java -jar compiler.jar'
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.

Sucesso no Facebook
Copyright © 2014 Rádio Sucesso FM - ZYS 779 - 88.5 MHz - Serra do Ramalho - Bahia
Todos os direitos reservados