ialbert / biostar-central

Biostar Q&A
http://www.biostars.org/
MIT License
581 stars 230 forks source link

Spamming up/down votes causes server error #64

Closed keithj closed 12 years ago

keithj commented 12 years ago

On this page : http://test.biostars.org/post/show/966/how-do-i-create-a-seqrecord-in-biopython/

MultipleObjectsReturned at /vote/

get() returned more than one Vote -- it returned 2! Lookup parameters were {'type': 1, 'author': }

Request Method: POST Request URL: http://test.biostars.org/vote/ Django Version: 1.3.1 Exception Type: MultipleObjectsReturned Exception Value:

get() returned more than one Vote -- it returned 2! Lookup parameters were {'type': 1, 'author': }

Exception Location: /home/ialbert10/webapps/biostar_testing/lib/python2.7/django/db/models/query.py in get, line 351 Python Executable: /usr/local/bin/python Python Version: 2.7.1 Python Path:

['/home/ialbert10/webapps/biostar_testing', '/home/ialbert10/webapps/biostar_testing/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', '/home/ialbert10/webapps/biostar_testing/biostar-central', '/home/ialbert10/webapps/biostar_testing/biostar-central/conf', '/home/ialbert10/webapps/biostar_testing/biostar-central/libs', '/home/ialbert10/webapps/biostar_testing/biostar-central/libs/libraries.zip', '/home/ialbert10/webapps/biostar_testing/biostar-central/libs', '/home/ialbert10/webapps/biostar_testing/biostar-central/libs/libraries.zip']

Server time: Fri, 16 Dec 2011 12:30:29 -0600 Traceback Switch to copy-and-paste view

* /home/ialbert10/webapps/biostar_testing/lib/python2.7/django/core/handlers/base.py in get_response
   104.

                            for middleware_method in self._view_middleware:

   105.

                                response = middleware_method(request, callback, callback_args, callback_kwargs)

   106.

                                if response:

   107.

                                    break

   108.

   109.

                        if response is None:

   110.

                            try:

   111.

                                response = callback(request, *callback_args, **callback_kwargs)

        ...
   112.

                            except Exception, e:

   113.

                                # If the view raised an exception, run it through exception

   114.

                                # middleware, and if the exception middleware returns a

   115.

                                # response, use that. Otherwise, reraise the exception.

   116.

                                for middleware_method in self._exception_middleware:

   117.

                                    response = middleware_method(request, e)

  ▶ Local vars
  Variable  Value
  exceptions    

  <module 'django.core.exceptions' from '/home/ialbert10/webapps/biostar_testing/lib/python2.7/django/core/exceptions.pyc'>

  e     

  MultipleObjectsReturned("get() returned more than one Vote -- it returned 2! Lookup parameters were {'type': 1, 'author': <User: community>}",)

  callback_args     

  ()

  receivers     

  [(<function _rollback_on_exception at 0x89a8a3c>, None)]

  middleware_method     

  <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x88156ec>>

  self  

  <django.core.handlers.wsgi.WSGIHandler object at 0xaf03ac8c>

  settings  

  <django.conf.LazySettings object at 0xaef2f9ac>

  request   

  <WSGIRequest
  GET:<QueryDict: {}>,
  POST:<QueryDict: {u'post': [u'966'], u'type': [u'2']}>,
  COOKIES:{'csrftoken': 'e0d9af9d4bd76d1b1c5cd4cde062f190',
   'sessionid': 'c8e2c205a6911dc78800842ce72a98e6'},
  META:{'CONTENT_LENGTH': '15',
   'CONTENT_TYPE': 'application/x-www-form-urlencoded; charset=UTF-8',
   'CSRF_COOKIE': 'e0d9af9d4bd76d1b1c5cd4cde062f190',
   'DOCUMENT_ROOT': '/usr/local/apache2/htdocs',
   'GATEWAY_INTERFACE': 'CGI/1.1',
   'HTTP_ACCEPT': 'application/json, text/javascript, */*; q=0.01',
   'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
   'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
   'HTTP_ACCEPT_LANGUAGE': 'en-gb,en;q=0.5',
   'HTTP_CACHE_CONTROL': 'no-cache',
   'HTTP_CONNECTION': 'close',
   'HTTP_COOKIE': 'csrftoken=e0d9af9d4bd76d1b1c5cd4cde062f190; sessionid=c8e2c205a6911dc78800842ce72a98e6',
   'HTTP_DNT': '1',
   'HTTP_HOST': 'test.biostars.org',
   'HTTP_PRAGMA': 'no-cache',
   'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; en-GB; rv:1.9.2.24) Gecko/20111103 Firefox/3.6.24',
   'HTTP_X_CSRFTOKEN': 'e0d9af9d4bd76d1b1c5cd4cde062f190',
   'HTTP_X_FORWARDED_FOR': '78.143.195.139',
   'HTTP_X_FORWARDED_HOST': 'test.biostars.org',
   'HTTP_X_FORWARDED_SERVER': 'test.biostars.org',
   'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
   'PATH_INFO': u'/vote/',
   'PATH_TRANSLATED': '/home/ialbert10/webapps/biostar_testing/biostar-central/conf/biostar_test.wsgi/vote/',
   'QUERY_STRING': '',
   'REMOTE_ADDR': '127.0.0.1',
   'REMOTE_PORT': '34859',
   'REQUEST_METHOD': 'POST',
   'REQUEST_URI': '/vote/',
   'SCRIPT_FILENAME': '/home/ialbert10/webapps/biostar_testing/biostar-central/conf/biostar_test.wsgi',
   'SCRIPT_NAME': u'',
   'SERVER_ADDR': '127.0.0.1',
   'SERVER_ADMIN': '[no address given]',
   'SERVER_NAME': 'test.biostars.org',
   'SERVER_PORT': '80',
   'SERVER_PROTOCOL': 'HTTP/1.0',
   'SERVER_SIGNATURE': '',
   'SERVER_SOFTWARE': 'Apache/2.2.17 (Unix) mod_wsgi/3.3 Python/2.7.1',
   'mod_wsgi.application_group': 'web192.webfaction.com|',
   'mod_wsgi.callable_object': 'application',
   'mod_wsgi.handler_script': '',
   'mod_wsgi.input_chunked': '0',
   'mod_wsgi.listener_host': '',
   'mod_wsgi.listener_port': '46930',
   'mod_wsgi.process_group': 'biostar_testing',
   'mod_wsgi.request_handler': 'wsgi-script',
   'mod_wsgi.script_reloading': '1',
   'mod_wsgi.version': (3, 3),
   'wsgi.errors': <mod_wsgi.Log object at 0x942a958>,
   'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x9393410>,
   'wsgi.input': <mod_wsgi.Input object at 0x942a818>,
   'wsgi.multiprocess': True,
   'wsgi.multithread': True,
   'wsgi.run_once': False,
   'wsgi.url_scheme': 'http',
   'wsgi.version': (1, 1)}>

  callback  

  <function vote at 0x93a64fc>

  resolver  

  <RegexURLResolver main.urls (None:None) ^/>

  urlresolvers  

  <module 'django.core.urlresolvers' from '/home/ialbert10/webapps/biostar_testing/lib/python2.7/django/core/urlresolvers.pyc'>

  callback_kwargs   

  {}

  response  

  None

  urlconf   

  'main.urls'

* /home/ialbert10/webapps/biostar_testing/biostar-central/main/server/views.py in vote
   342.

                    return html.json_response({

   343.

                        'status':'success',

   344.

                        'msg':'%s removed' % old_vote.get_type_display()})

   345.

                else:

   346.

                    vote = post.add_vote(author, type)

   347.

                    if type in models.OPPOSING_VOTES: 

   348.

                        # Remove an opposing vote if it exists

   349.

                        post.remove_vote(author, models.OPPOSING_VOTES[type])

        ...
   350.

                    return html.json_response({

   351.

                        'status':'success',

   352.

                        'msg':'%s added' % vote.get_type_display()})

   353.

   354.

   355.

            return html.json_response({'status':'error', 'msg':'POST method must be used'})

  ▶ Local vars
  Variable  Value
  author    

  <User: community>

  request   

  <WSGIRequest
  GET:<QueryDict: {}>,
  POST:<QueryDict: {u'post': [u'966'], u'type': [u'2']}>,
  COOKIES:{'csrftoken': 'e0d9af9d4bd76d1b1c5cd4cde062f190',
   'sessionid': 'c8e2c205a6911dc78800842ce72a98e6'},
  META:{'CONTENT_LENGTH': '15',
   'CONTENT_TYPE': 'application/x-www-form-urlencoded; charset=UTF-8',
   'CSRF_COOKIE': 'e0d9af9d4bd76d1b1c5cd4cde062f190',
   'DOCUMENT_ROOT': '/usr/local/apache2/htdocs',
   'GATEWAY_INTERFACE': 'CGI/1.1',
   'HTTP_ACCEPT': 'application/json, text/javascript, */*; q=0.01',
   'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
   'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
   'HTTP_ACCEPT_LANGUAGE': 'en-gb,en;q=0.5',
   'HTTP_CACHE_CONTROL': 'no-cache',
   'HTTP_CONNECTION': 'close',
   'HTTP_COOKIE': 'csrftoken=e0d9af9d4bd76d1b1c5cd4cde062f190; sessionid=c8e2c205a6911dc78800842ce72a98e6',
   'HTTP_DNT': '1',
   'HTTP_HOST': 'test.biostars.org',
   'HTTP_PRAGMA': 'no-cache',
   'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; en-GB; rv:1.9.2.24) Gecko/20111103 Firefox/3.6.24',
   'HTTP_X_CSRFTOKEN': 'e0d9af9d4bd76d1b1c5cd4cde062f190',
   'HTTP_X_FORWARDED_FOR': '78.143.195.139',
   'HTTP_X_FORWARDED_HOST': 'test.biostars.org',
   'HTTP_X_FORWARDED_SERVER': 'test.biostars.org',
   'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
   'PATH_INFO': u'/vote/',
   'PATH_TRANSLATED': '/home/ialbert10/webapps/biostar_testing/biostar-central/conf/biostar_test.wsgi/vote/',
   'QUERY_STRING': '',
   'REMOTE_ADDR': '127.0.0.1',
   'REMOTE_PORT': '34859',
   'REQUEST_METHOD': 'POST',
   'REQUEST_URI': '/vote/',
   'SCRIPT_FILENAME': '/home/ialbert10/webapps/biostar_testing/biostar-central/conf/biostar_test.wsgi',
   'SCRIPT_NAME': u'',
   'SERVER_ADDR': '127.0.0.1',
   'SERVER_ADMIN': '[no address given]',
   'SERVER_NAME': 'test.biostars.org',
   'SERVER_PORT': '80',
   'SERVER_PROTOCOL': 'HTTP/1.0',
   'SERVER_SIGNATURE': '',
   'SERVER_SOFTWARE': 'Apache/2.2.17 (Unix) mod_wsgi/3.3 Python/2.7.1',
   'mod_wsgi.application_group': 'web192.webfaction.com|',
   'mod_wsgi.callable_object': 'application',
   'mod_wsgi.handler_script': '',
   'mod_wsgi.input_chunked': '0',
   'mod_wsgi.listener_host': '',
   'mod_wsgi.listener_port': '46930',
   'mod_wsgi.process_group': 'biostar_testing',
   'mod_wsgi.request_handler': 'wsgi-script',
   'mod_wsgi.script_reloading': '1',
   'mod_wsgi.version': (3, 3),
   'wsgi.errors': <mod_wsgi.Log object at 0x942a958>,
   'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x9393410>,
   'wsgi.input': <mod_wsgi.Input object at 0x942a818>,
   'wsgi.multiprocess': True,
   'wsgi.multithread': True,
   'wsgi.run_once': False,
   'wsgi.url_scheme': 'http',
   'wsgi.version': (1, 1)}>

  post_id   

  966

  vote  

  <Vote: Vote object>

  post  

  <Post: Post object>

  type  

  2

  old_vote  

  None

* /home/ialbert10/webapps/biostar_testing/biostar-central/main/server/models.py in remove_vote
   241.

                vote = Vote(author=user, type=vote_type, post=self)

   242.

                vote.save()

   243.

                return vote

   244.

   245.

            def remove_vote(self, user, vote_type):

   246.

                ''' Removes a vote from a user of a certain type if it exists

   247.

                Returns True if removed, False if it didn't exist'''

   248.

                vote = self.get_vote(user, vote_type)

        ...
   249.

                if vote:

   250.

                    vote.delete()

   251.

                    return True

   252.

                return False

   253.

   254.

            def get_tag_names(self):

  ▶ Local vars
  Variable  Value
  vote_type     

  1

  user  

  <User: community>

  self  

  <Post: Post object>

* /home/ialbert10/webapps/biostar_testing/biostar-central/main/server/models.py in get_vote
   229.

                else:

   230.

                    return 'open'

   231.

   232.

            def get_vote(self, user, vote_type):

   233.

                if user.is_anonymous():

   234.

                    return None

   235.

                try:

   236.

                    return self.votes.get(author=user, type=vote_type)

        ...
   237.

                except Vote.DoesNotExist:

   238.

                    return None

   239.

   240.

            def add_vote(self, user, vote_type):

   241.

                vote = Vote(author=user, type=vote_type, post=self)

   242.

                vote.save()

  ▶ Local vars
  Variable  Value
  vote_type     

  1

  user  

  <User: community>

  self  

  <Post: Post object>

* /home/ialbert10/webapps/biostar_testing/lib/python2.7/django/db/models/manager.py in get
   125.

            def distinct(self, *args, **kwargs):

   126.

                return self.get_query_set().distinct(*args, **kwargs)

   127.

   128.

            def extra(self, *args, **kwargs):

   129.

                return self.get_query_set().extra(*args, **kwargs)

   130.

   131.

            def get(self, *args, **kwargs):

   132.

                return self.get_query_set().get(*args, **kwargs)

        ...
   133.

   134.

            def get_or_create(self, **kwargs):

   135.

                return self.get_query_set().get_or_create(**kwargs)

   136.

   137.

            def create(self, **kwargs):

   138.

                return self.get_query_set().create(**kwargs)

  ▶ Local vars
  Variable  Value
  self  

  <django.db.models.fields.related.RelatedManager object at 0x95f47ac>

  args  

  ()

  kwargs    

  {'author': <User: community>, 'type': 1}

* /home/ialbert10/webapps/biostar_testing/lib/python2.7/django/db/models/query.py in get
   344.

                num = len(clone)

   345.

                if num == 1:

   346.

                    return clone._result_cache[0]

   347.

                if not num:

   348.

                    raise self.model.DoesNotExist("%s matching query does not exist."

   349.

                            % self.model._meta.object_name)

   350.

                raise self.model.MultipleObjectsReturned("get() returned more than one %s -- it returned %s! Lookup parameters were %s"

   351.

                        % (self.model._meta.object_name, num, kwargs))

        ...
   352.

   353.

            def create(self, **kwargs):

   354.

                """

   355.

                Creates a new object with the given kwargs, saving it to the database

   356.

                and returning the created object.

   357.

                """

  ▶ Local vars
  Variable  Value
  clone     

  [<Vote: Vote object>, <Vote: Vote object>]

  num   

  2

  self  

  [<Vote: Vote object>, <Vote: Vote object>, <Vote: Vote object>, <Vote: Vote object>]

  args  

  ()

  kwargs    

  {'author': <User: community>, 'type': 1}

Environment: Request Method: POST Request URL: http://test.biostars.org/vote/ Django Version: 1.3.1 Python Version: 2.7.1 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'django.contrib.markup', 'django.contrib.messages', 'django.contrib.admin', 'django.contrib.admindocs', 'main.server', 'django_openid_auth', 'mptt'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'main.middleware.LastVisit', 'main.middleware.PermissionsMiddleware') Traceback: File "/home/ialbert10/webapps/biostar_testing/lib/python2.7/django/core/handlers/base.py" in get_response 111. response = callback(request, _callback_args, _callback_kwargs) File "/home/ialbert10/webapps/biostar_testing/biostar-central/main/server/views.py" in vote 349. post.remove_vote(author, models.OPPOSING_VOTES[type]) File "/home/ialbert10/webapps/biostar_testing/biostar-central/main/server/models.py" in remove_vote 248. vote = self.get_vote(user, vote_type) File "/home/ialbert10/webapps/biostar_testing/biostar-central/main/server/models.py" in get_vote 236. return self.votes.get(author=user, type=vote_type) File "/home/ialbert10/webapps/biostar_testing/lib/python2.7/django/db/models/manager.py" in get 132. return self.get_query_set().get(_args, _kwargs) File "/home/ialbert10/webapps/biostar_testing/lib/python2.7/django/db/models/query.py" in get 351. % (self.model._meta.object_name, num, kwargs)) Exception Type: MultipleObjectsReturned at /vote/ Exception Value: get() returned more than one Vote -- it returned 2! Lookup parameters were {'type': 1, 'author': }

Request information GET

No GET data POST Variable Value post

u'966'

type

u'2'

FILES

No FILES data COOKIES Variable Value csrftoken

'e0d9af9d4bd76d1b1c5cd4cde062f190'

sessionid

'c8e2c205a6911dc78800842ce72a98e6'

META Variable Value mod_wsgi.listener_port

'46930'

HTTP_X_FORWARDED_SERVER

'test.biostars.org'

HTTP_COOKIE

'csrftoken=e0d9af9d4bd76d1b1c5cd4cde062f190; sessionid=c8e2c205a6911dc78800842ce72a98e6'

HTTP_X_FORWARDED_HOST

'test.biostars.org'

mod_wsgi.handler_script

''

SERVER_SOFTWARE

'Apache/2.2.17 (Unix) mod_wsgi/3.3 Python/2.7.1'

SCRIPT_NAME

u''

HTTP_X_CSRFTOKEN

'e0d9af9d4bd76d1b1c5cd4cde062f190'

SERVER_SIGNATURE

''

REQUEST_METHOD

'POST'

PATH_INFO

u'/vote/'

SERVER_PROTOCOL

'HTTP/1.0'

QUERY_STRING

''

CONTENT_LENGTH

'15'

HTTP_ACCEPT_CHARSET

'ISO-8859-1,utf-8;q=0.7,*;q=0.7'

HTTP_USER_AGENT

'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; en-GB; rv:1.9.2.24) Gecko/20111103 Firefox/3.6.24'

HTTP_CONNECTION

'close'

SERVER_NAME

'test.biostars.org'

REMOTE_ADDR

'127.0.0.1'

mod_wsgi.request_handler

'wsgi-script'

wsgi.url_scheme

'http'

PATH_TRANSLATED

'/home/ialbert10/webapps/biostar_testing/biostar-central/conf/biostar_test.wsgi/vote/'

SERVER_PORT

'80'

wsgi.multiprocess

True

mod_wsgi.input_chunked

'0'

SERVER_ADDR

'127.0.0.1'

DOCUMENT_ROOT

'/usr/local/apache2/htdocs'

mod_wsgi.process_group

'biostar_testing'

HTTP_PRAGMA

'no-cache'

HTTP_X_REQUESTED_WITH

'XMLHttpRequest'

SCRIPT_FILENAME

'/home/ialbert10/webapps/biostar_testing/biostar-central/conf/biostar_test.wsgi'

SERVER_ADMIN

'[no address given]'

wsgi.input

<mod_wsgi.Input object at 0x942a818>

HTTP_DNT

'1'

HTTP_HOST

'test.biostars.org'

wsgi.multithread

True

mod_wsgi.callable_object

'application'

HTTP_CACHE_CONTROL

'no-cache'

REQUEST_URI

'/vote/'

HTTP_ACCEPT

'application/json, text/javascript, /; q=0.01'

mod_wsgi.listener_host

''

wsgi.version

(1, 1)

GATEWAY_INTERFACE

'CGI/1.1'

HTTP_X_FORWARDED_FOR

'78.143.195.139'

wsgi.errors

<mod_wsgi.Log object at 0x942a958>

REMOTE_PORT

'34859'

HTTP_ACCEPT_LANGUAGE

'en-gb,en;q=0.5'

mod_wsgi.version

(3, 3)

wsgi.run_once

False

CONTENT_TYPE

'application/x-www-form-urlencoded; charset=UTF-8'

mod_wsgi.application_group

'web192.webfaction.com|'

mod_wsgi.script_reloading

'1'

wsgi.file_wrapper

'* MISSING *'

CSRF_COOKIE

'e0d9af9d4bd76d1b1c5cd4cde062f190'

HTTP_ACCEPT_ENCODING

'gzip,deflate'

Settings Using settings module pg_testing Setting Value YEAR_MONTH_FORMAT

'F Y'

USE_L10N

True

TIME_ZONE

'America/Chicago'

LANGUAGE_CODE

'en-us'

ROOT_URLCONF

'main.urls'

MANAGERS

(('Istvan Albert', 'istvan.albert@gmail.com'),)

DEFAULT_CHARSET

'utf-8'

STATIC_ROOT

'/home/ialbert10/webapps/static_testing'

TEST_DATABASE_CHARSET

None

USE_THOUSAND_SEPARATOR

False

MESSAGE_STORAGE

'django.contrib.messages.storage.user_messages.LegacyFallbackStorage'

DATABASE_HOST

''

EMAIL_SUBJECT_PREFIX

'[Django] '

SEND_BROKEN_LINK_EMAILS

False

URL_VALIDATOR_USER_AGENT

'Django/1.3.1 (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.postgresql_psycopg2', 'HOST': 'web192', 'NAME': 'ialbert10_biostar_test', 'OPTIONS': {}, 'PASSWORD': '****', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'America/Chicago', 'USER': 'ialbert10_biostar_test'}}

TEST_DATABASE_NAME

None

FILE_UPLOAD_PERMISSIONS

None

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

[]

WHOOSH_INDEX

'/home/ialbert10/webapps/biostar_testing/biostar-central/main/db/index'

STATICFILES_STORAGE

'django.contrib.staticfiles.storage.StaticFilesStorage'

CACHES

{'default': {'BACKEND': 'django.core.cache.backends.dummy.DummyCache', 'LOCATION': 'unique-snowflake'}}

DATABASE_DIR

'/home/ialbert10/webapps/biostar_testing/biostar-central/main/db'

TEMPLATE_DIR

'/home/ialbert10/webapps/biostar_testing/biostar-central/main/templates'

SERVER_EMAIL

'root@localhost'

SESSION_COOKIE_PATH

'/'

IGNORABLE_404_ENDS

('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')

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', 'main.middleware.LastVisit', 'main.middleware.PermissionsMiddleware')

USE_I18N

True

ALLOW_MIGRATION

True

SECRET_KEY

'****'

LANGUAGE_COOKIE_NAME

'django_language'

FILE_UPLOAD_TEMP_DIR

None

TRANSACTIONS_MANAGED

False

LOGGING_CONFIG

'django.utils.log.dictConfig'

TEMPLATE_LOADERS

('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader')

NEWBIE_MAX_POSTS_PER_DAY

3

TEMPLATE_DEBUG

True

AUTHENTICATION_BACKENDS

('django_openid_auth.auth.OpenIDBackend', 'django.contrib.auth.backends.ModelBackend')

TEST_DATABASE_COLLATION

None

FORCE_SCRIPT_NAME

None

USE_X_FORWARDED_HOST

False

STATIC_DIR

'/home/ialbert10/webapps/biostar_testing/biostar-central/main/static'

SESSION_COOKIE_SECURE

False

HOME_DIR

'/home/ialbert10/webapps/biostar_testing/biostar-central/main'

__CURR_DIR

'/home/ialbert10/webapps/biostar_testing/biostar-central/conf'

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', 'django.contrib.humanize', 'django.contrib.markup', 'django.contrib.messages', 'django.contrib.admin', 'django.contrib.admindocs', 'main.server', 'django_openid_auth', 'mptt']

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'), ('no', 'Norwegian'), ('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'))

DATABASE_ENGINE

''

DATABASE_NAME

'ialbert10_biostar_test'

COMMENTS_FIRST_FEW

0

PREPEND_WWW

False

MINIMUM_REPUTATION

0

SESSION_COOKIE_HTTPONLY

False

DATABASE_PORT

''

DEBUG_PROPAGATE_EXCEPTIONS

False

OPENID_UPDATE_DETAILS_FROM_SREG

True

MONTH_DAY_FORMAT

'F j'

LOGIN_URL

'/openid/login/'

SESSION_EXPIRE_AT_BROWSER_CLOSE

False

PASSWORD_RESET_TIMEOUT_DAYS

'****'

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

'****'

AUTH_PROFILE_MODULE

'server.UserProfile'

CACHE_MIDDLEWARE_ALIAS

'default'

SESSION_SAVE_EVERY_REQUEST

False

ADMIN_MEDIA_PREFIX

'/static/admin/'

NUMBER_GROUPING

0

SESSION_ENGINE

'django.contrib.sessions.backends.db'

CSRF_FAILURE_VIEW

'django.views.csrf.csrf_failure'

COMMENTS_SKETCHY_USERS_GROUP

None

LOGIN_REDIRECT_URL

'/'

LOGGING

{'disable_existing_loggers': False, 'formatters': {'simple': {'format': '%(levelname)s\t%(name)s\t%(funcName)s\t%(asctime)s \t%(message)s'}}, 'handlers': {'console': {'class': 'logging.StreamHandler', 'formatter': 'simple', 'level': 'DEBUG'}}, 'loggers': {'main.server.auth': {'handlers': ['console'], 'level': 'INFO'}, 'main.server.models': {'handlers': ['console'], 'level': 'INFO'}, 'main.server.views': {'handlers': ['console'], 'level': 'INFO'}}, 'version': 1}

CACHE_MIDDLEWARE_KEY_PREFIX

''

SITE_ID

1

LOCALE_PATHS

()

TEMPLATE_STRING_IF_INVALID

'* MISSING *'

COMMENTS_ALLOW_PROFANITIES

False

LOGOUT_URL

'/accounts/logout/'

EMAIL_USE_TLS

False

TEMPLATE_DIRS

('/home/ialbert10/webapps/biostar_testing/biostar-central/main/templates',)

FIXTURE_DIRS

()

EMAIL_HOST

'localhost'

DATE_FORMAT

'N j, Y'

MEDIA_ROOT

'/media/'

ADMINS

(('Istvan Albert', 'istvan.albert@gmail.com'),)

FORMAT_MODULE_PATH

None

DEFAULT_FROM_EMAIL

'webmaster@localhost'

THOUSAND_SEPARATOR

','

STATICFILES_DIRS

('/home/ialbert10/webapps/biostar_testing/biostar-central/main/static',)

MEDIA_URL

'/home/ialbert10/webapps/static_testing'

DATETIME_FORMAT

'N j, Y, P'

IGNORABLE_404_STARTS

('/cgi-bin/', '/_vti_bin', '/_vti_inf')

GIT_REVISION

'unknown'

DISALLOWED_USER_AGENTS

()

ALLOWED_INCLUDE_ROOTS

()

DECIMAL_SEPARATOR

'.'

SHORT_DATE_FORMAT

'm/d/Y'

DATABASE_USER

''

TEST_RUNNER

'server.tests.runner.BiostarTest'

OPENID_CREATE_USERS

True

OPENID_USE_AS_ADMIN_LOGIN

True

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.request', 'django.core.context_processors.static', 'django.contrib.messages.context_processors.messages', 'main.context.extras', 'main.context.popular_tags')

A

<main.settings.A instance at 0x94e168c>

EXPORT_DIR

'/home/ialbert10/webapps/static_testing'

SESSION_COOKIE_AGE

1209600

SETTINGS_MODULE

'pg_testing'

USE_ETAGS

False

LANGUAGES_BIDI

('he', 'ar', 'fa')

DEFAULT_INDEX_TABLESPACE

''

INTERNAL_IPS

('127.0.0.1',)

STATIC_URL

'/static/'

EMAIL_PORT

25

SHORT_DATETIME_FORMAT

'm/d/Y P'

ABSOLUTE_URL_OVERRIDES

{}

DATABASE_OPTIONS

{}

CACHE_MIDDLEWARE_SECONDS

600

BANNED_IPS

()

DATETIME_INPUT_FORMATS

('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M', '%m/%d/%y')

DATABASE_PASSWORD

'****'

COMMENTS_MODERATORS_GROUP

None

PROFANITIES_LIST

'****'

EMAIL_HOST_USER

''

COMMENTS_BANNED_USERS_GROUP

None

ialbert commented 12 years ago

fixed in cee28d1321