Closed Bug 740065 Opened 12 years ago Closed 12 years ago

Traceback: Robots.txt errors

Categories

(developer.mozilla.org Graveyard :: Wiki pages, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: retornam, Assigned: groovecoder)

Details

(Whiteboard: u=user c=bug p=1 s=2012-04-10 t=2012-04-10)

Traceback (most recent call last):

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django/django/core/handlers/base.py", line 127, in get_response
    return callback(request, **param_dict)

  File "/data/www/django/kuma-stage.mozilla.org/kuma/../kuma/urls.py", line 62, in <lambda>
    handler404 = lambda r: _error_page(r, 404)

  File "/data/www/django/kuma-stage.mozilla.org/kuma/../kuma/urls.py", line 61, in _error_page
    return jingo.render(request, '%d.html' % status, status=status)

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/jingo/jingo/__init__.py", line 78, in render
    rendered = render_to_string(request, template, context)

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/jingo/jingo/__init__.py", line 96, in render_to_string
    return template.render(**get_context())

  File "/usr/lib/python2.6/site-packages/jinja2/environment.py", line 891, in render
    return self.environment.handle_exception(exc_info, True)

  File "/data/www/django/kuma-stage.mozilla.org/kuma/templates/404.html", line 1, in top-level template code
    {% extends "base.html" %}

  File "/data/www/django/kuma-stage.mozilla.org/kuma/templates/base.html", line 13, in top-level template code
    <link rel="home" href="{{ url('home') }}">

  File "/data/www/django/kuma-stage.mozilla.org/kuma/apps/sumo/helpers.py", line 39, in url
    return reverse(viewname, args=args, kwargs=kwargs)

  File "/data/www/django/kuma-stage.mozilla.org/kuma/apps/sumo/urlresolvers.py", line 51, in reverse
    url = django_reverse(viewname, urlconf, args, kwargs, prefix)

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django/django/core/urlresolvers.py", line 351, in reverse
    *args, **kwargs)))

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django/django/core/urlresolvers.py", line 272, in reverse
    possibilities = self.reverse_dict.getlist(lookup_view)

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django/django/core/urlresolvers.py", line 194, in _get_reverse_dict
    self._populate()

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django/django/core/urlresolvers.py", line 173, in _populate
    for name in pattern.reverse_dict:

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django/django/core/urlresolvers.py", line 194, in _get_reverse_dict
    self._populate()

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django/django/core/urlresolvers.py", line 185, in _populate
    lookups.appendlist(pattern.callback, (bits, p_pattern))

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django/django/core/urlresolvers.py", line 129, in _get_callback
    self._callback = get_callable(self._callback_str)

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django/django/utils/functional.py", line 124, in wrapper
    result = func(*args)

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django/django/core/urlresolvers.py", line 56, in get_callable
    lookup_view = getattr(import_module(mod_name), func_name)

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django/django/utils/importlib.py", line 35, in import_module
    __import__(name)

  File "/data/www/django/kuma-stage.mozilla.org/kuma/apps/demos/views.py", line 37, in <module>
    from demos.forms import SubmissionNewForm, SubmissionEditForm

  File "/data/www/django/kuma-stage.mozilla.org/kuma/apps/demos/forms.py", line 76, in <module>
    class SubmissionEditForm(MyModelForm):

  File "/data/www/django/kuma-stage.mozilla.org/kuma/apps/demos/forms.py", line 113, in SubmissionEditForm
    constance.config.DEMOS_DEVDERBY_CHALLENGE_CHOICE_TAGS,

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django-constance/constance/config.py", line 16, in __getattr__
    result = self._backend.get(key)

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django-constance/constance/backends/database/__init__.py", line 41, in get
    value = self._model._default_manager.get(key=key).value

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django/django/db/models/manager.py", line 132, in get
    return self.get_query_set().get(*args, **kwargs)

  File "/data/www/django/kuma-stage.mozilla.org/kuma/vendor/src/django/django/db/models/query.py", line 349, in get
    % (self.model._meta.object_name, num, kwargs))

MultipleObjectsReturned: get() returned more than one Constance -- it returned 2! Lookup parameters were {'key': 'DEMOS_DEVDERBY_CHALLENGE_CHOICE_TAGS'}
Whiteboard: u=user c=bug p=1 s=2012-04-10 t=2012-04-10
note: kuma-stage server only
Assignee: nobody → lcrouch
Commit pushed to 740065-constance-config-unique-key at https://github.com/mozilla/kuma

https://github.com/mozilla/kuma/commit/e85d07e553426404f2482e2b38ee177d64592834
Fix Bug 740065 remove duplicate constance config keys and add unique constraint
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
commit pushed to wrong repos. this is still pending https://github.com/mozilla/kuma/pull/148
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Commit pushed to master at https://github.com/mozilla/kuma

https://github.com/mozilla/kuma/commit/0ca883a849d425e5e7be74f1c86629d38153395c
Merge pull request #148 from groovecoder/740065-constance-config-unique-key

Fix Bug 740065 remove duplicate constance config keys and add unique con...
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Version: MDN → unspecified
Component: Website → Landing pages
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.