WebFaction
Community site: login faq

Something is happening (or isn't) with popups forms when I try to enter new data for two models with a one-to-many relationship in Django's Admin. Works fine on my computer, it happens when the application runs on my Webfaction service.

Suppose a Machinery-Manufacturer relationship. While entering data for a Machinery record, it's time to pressing the green cross icon in order to add a new related record for Manufacturer. Instead of a popup window, the related form takes the same browser's view of Machinery. No popup at all.

Then, I can add a new record (Manufacturer), but after saving data, it never returns to the previous model (Machinery) and the browser's view remains blank without any error message. So the flow of entering data fails miserably.

The URL for my empty page remains as

...add/?_to_field=id&_popup=1

I made two different projects and the problem is the same.

It would be nice if someone can tell me what I'm missing.

asked 27 Apr '15, 18:47

mariodevcom
1113
accept rate: 100%


Fool of me. It was a wrong configuration for STATIC_ROOT. After running 'collectstatic' command, it has been fixed. The missing file was:

...static/admin/js/related-widget-wrapper.js
permanent link

answered 27 Apr '15, 21:12

mariodevcom
1113
accept rate: 100%

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

Question tags:

×40
×2
×1
×1
×1

question asked: 27 Apr '15, 18:47

question was seen: 3,068 times

last updated: 27 Apr '15, 21:12

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM