First time here? Check out the FAQ!
0

"502 Bad Gateway" when editing badge awards in admin
 

When I try to edit a badge award in Django Admin (e.g., navigate to /admin/askbot/award/3/) on my hosted site, I get a "502 Bad Gateway" error.

The error only seems to occur when I reference an existing badge award record. If I try to go to e.g., /admin/askbot/award/4/ when record 4 does not exist, I get a 404 page as expected.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
todofixthis's avatar
1.3k
todofixthis
asked 13 years ago, updated 13 years ago

Comments

see more comments

1 Answer

1

Users should not be editing admin interface really - I never do, only very occasionall

Of course this is a bug, but really should not be exposed to the UI. Are you trying to create new badges? It's impossible (except maybe some special cases) - because badges come with some code that cannot be edited via the UI.

Also - the objects you were trying to edit are actually badge awards - they link badges with the users who receive them.

I think we should disable the largest part of the admin interface and leave only the "safe parts" for the site admins to edit.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 13 years ago
link

Comments

I'm inclined to agree with that last sentence. I came across the behavior while I was exploring the admin side of things. I had no specific intentions; it was more like, "Ooh, shiny! I wonder what it does...."

todofixthis's avatar todofixthis (13 years ago)
see more comments