After clicking on "switch to django style interface" in the administration panel, I cannot access the administration panel anymore. It just gives a 500 server error. How do I get back to the OSQA style interface?

        EXCEPTION INFO:
            Traceback (most recent call last):
      File "C:\\Python27\\lib\\site-packages\\django-1.3-py2.7.egg\\django\\core\\handlers\\base.py", line 111, in get_response
        response = callback(request, *callback_args, **callback_kwargs)
      File "c:/www/osqa\\forum\\views\\admin.py", line 28, in wrapper
        return fn(request, *args, **kwargs)
      File "c:/www/osqa\\forum\\views\\admin.py", line 55, in wrapper
        return render_to_response(template, context, context_instance=RequestContext(request))
      File "C:\\Python27\\lib\\site-packages\\django-1.3-py2.7.egg\\django\\shortcuts\\__init__.py", line 20, in render_to_response
        return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
      File "C:\\Python27\\lib\\site-packages\\django-1.3-py2.7.egg\\django\\template\\loader.py", line 188, in render_to_string
        return t.render(context_instance)
      File "C:\\Python27\\lib\\site-packages\\django-1.3-py2.7.egg\\django\\template\\base.py", line 123, in render
        return self._render(context)
      File "C:\\Python27\\lib\\site-packages\\django-1.3-py2.7.egg\\django\\template\\base.py", line 117, in _render
        return self.nodelist.render(context)
      File "C:\\Python27\\lib\\site-packages\\django-1.3-py2.7.egg\\django\\template\\base.py", line 744, in render
        bits.append(self.render_node(node, context))
      File "C:\\Python27\\lib\\site-packages\\django-1.3-py2.7.egg\\django\\template\\base.py", line 757, in render_node
        return node.render(context)
      File "C:\\Python27\\lib\\site-packages\\django-1.3-py2.7.egg\\django\\template\\loader_tags.py", line 127, in render
        return compiled_parent._render(context)
      File "C:\\Python27\\lib\\site-packages\\django-1.3-py2.7.egg\\django\\template\\base.py", line 117, in _render
        return self.nodelist.render(context)
      File "C:\\Python27\\lib\\site-packages\\django-1.3-py2.7.egg\\django\\template\\base.py", line 744, in render
        bits.append(self.render_node(node, context))
      File "C:\\Python27\\lib\\site-packages\\django-1.3-py2.7.egg\\django\\template\\base.py", line 757, in render_node
        return node.render(context)
      File "C:\\Python27\\lib\\site-packages\\django-1.3-py2.7.egg\\django\\template\\defaulttags.py", line 311, in render
        return self.nodelist_true.render(context)
      File "C:\\Python27\\lib\\site-packages\\django-1.3-py2.7.egg\\django\\template\\base.py", line 744, in render
        bits.append(self.render_node(node, context))
      File "C:\\Python27\\lib\\site-packages\\django-1.3-py2.7.egg\\django\\template\\base.py", line 757, in render_node
        return node.render(context)
      File "C:\\Python27\\lib\\site-packages\\django-1.3-py2.7.egg\\django\\template\\defaulttags.py", line 450, in render
        raise e
    NoReverseMatch: Reverse for 'admin_set' with arguments '('',)' and keyword arguments '{}' not found.

asked 10 May '11, 17:39

JGuo's gravatar image

JGuo
2136
accept rate: 0%

edited 10 May '11, 17:41


Log in as admin.

Then enter the following URL into your browser address bar, after replacing YOUR-OSQA-WEBSITE with your osqa website address.

http://YOUR-OSQA-WEBSITE/admin/switch_interface/?to=default

And hit Enter. That should return it to the default admin screen.

link

answered 11 May '11, 02:06

Andrew_S's gravatar image

Andrew_S ♦
5.6k45674
accept rate: 21%

1

Thanks. Also you can force OSQA to use the default admin interface by altering the context['basetemplate'] to use "osqaadmin/base.html" in forum/views/admin.py

(12 May '11, 13:11) JGuo
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×18
×9

Asked: 10 May '11, 17:39

Seen: 446 times

Last updated: 12 May '11, 13:11

powered by OSQA