Ask Your Question
2

Admin settings (as superuser) are not saving

asked 2012-09-18 17:59:06 -0600

iliketotallyloveit gravatar image

updated 2012-09-18 18:10:50 -0600

Evgeny gravatar image

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?

edit retag flag offensive close merge delete

Comments

Do you have your own installation?

Evgeny gravatar imageEvgeny ( 2012-09-18 18:08:46 -0600 )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 gravatar imageiliketotallyloveit ( 2012-09-18 18:09:06 -0600 )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 gravatar imageiliketotallyloveit ( 2012-09-18 18:10:30 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-09-18 18:10:18 -0600

Evgeny gravatar image

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"?

edit flag offensive delete link more

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 gravatar imageiliketotallyloveit ( 2012-09-18 18:17:51 -0600 )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 gravatar imageEvgeny ( 2012-09-18 18:20:45 -0600 )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 gravatar imageiliketotallyloveit ( 2012-09-18 19:20:18 -0600 )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 gravatar imageEvgeny ( 2012-09-18 19:26:16 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-09-18 17:59:06 -0600

Seen: 186 times

Last updated: Sep 18 '12