First time here? Check out the FAQ!
2

Admin settings (as superuser) are not saving

I am logged into the admin panel as a superuser, any entry or tickbox i select/deselect just returns to it's previous value when i press save.

It's basically reading the db values, but not writing. Any suggestions?

iliketotallyloveit's avatar
11
iliketotallyloveit
asked 2012-09-18 17:59:06 -0500
Evgeny's avatar
13.2k
Evgeny
updated 2012-09-18 18:10:50 -0500
edit flag offensive 0 remove flag close merge delete

Comments

Do you have your own installation?

Evgeny's avatar Evgeny (2012-09-18 18:08:46 -0500) edit

Actually that isn't quite true, after just testing a bit. It is actually updating the tables as i turned on and off the logos and actually added some content via those methods. It's really offputting because you can't see if the changes have taken place, as it reloads the page with the default values, not the actual values of what is in the db. Any suggestions?

iliketotallyloveit's avatar iliketotallyloveit (2012-09-18 18:09:06 -0500) edit

Yes, i have my own installation. Oddly i think this might be connected to another issue. It seems some javascript parts are not working on the installation. For example i can't actually use this "add comment" button on my own site. But that doesn't explain the admin panel, though somehow i think someone is going to tell me it is related.

iliketotallyloveit's avatar iliketotallyloveit (2012-09-18 18:10:30 -0500) edit
add a comment see more comments

1 Answer

1

This most likely indicates incorrect setup of cache. If you are using "locmem" cache in production, then in some situations settings will appear as not being updated upon changes.

Do you see the same problem when you use django's "runserver"?

Evgeny's avatar
13.2k
Evgeny
answered 2012-09-18 18:10:18 -0500
edit flag offensive 0 remove flag delete link

Comments

Works fine in the django admin panel, if that is what you mean. I am not so technical myself, though i am familiar enough with plodding along to get things working. Data entry works fine inside the django interface. Is that what you describe as runserver?

iliketotallyloveit's avatar iliketotallyloveit (2012-09-18 18:17:51 -0500) edit

Runserver is a simple web server that comes with django that you start from the command line. Please set up production cache - the best place to look is in the django documentation.

Evgeny's avatar Evgeny (2012-09-18 18:20:45 -0500) edit

Thanks for the pointer and i can see what you mean regarding testing on a different web server. I haven't got to starting it up and playing with it yet. I noticed on another page inside the admin the values did actually update, which freaked me out a little so i went back to the pages that didn't and used f5. Something differs on some of the admin panel pages to force the browser to update on some pages and not on others. Pressing F5 on those that don't update shows the corrected data just fine.

iliketotallyloveit's avatar iliketotallyloveit (2012-09-18 19:20:18 -0500) edit

This is probably a manifestation of several processes running side-by-side, where each has it's own cache. So you may see several versions of the same content. With common cache, such as memcached or redis-server this will be fixed.

Evgeny's avatar Evgeny (2012-09-18 19:26:16 -0500) edit
add a comment see more comments