Ask Your Question
0

Changes to local_settings.py not effective

asked 2017-02-22 15:32:37 -0500

anonymous user

Anonymous

updated 2017-02-22 16:17:57 -0500

My local_settings.py is under/usr/share/dashboard/dashboard/local/ and is linked to /etc/dashboard/local_settings.py and I made a change to use memcached based session_engine instead of cookies. I restarted the Apache server on Ubuntu.

I see that local_settings.pyc not updated and my changes are not effective. If I remove local_settings.pyc Apache complains that local_setting is missing but it is not creating a new one even after restart.

How should I resolve this error? I'm new to Apache/Django.

edit retag flag offensive close merge delete

Comments

See for logs in /var/log/apache2/error.log. There you will see where you are going wrong

jarvis@openstack gravatar imagejarvis@openstack ( 2017-02-24 03:15:33 -0500 )edit

There were not any errors in the logs.

hem gravatar imagehem ( 2017-03-03 11:35:43 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-02-24 13:21:29 -0500

Like Jarvis said, check your logs and another thing comes into my mind: what are the file permission settings? Apache/horizon should run as a specific user and can not write the *.pyc file if it's owned by root and only root can write it.

edit flag offensive delete link more

Comments

That could be a reason. I tried manually compiling with python -m compileall and copying the .pyc over but it opened up a lot other problems. Finally configured a new env that is working. Thank you.

hem gravatar imagehem ( 2017-03-03 11:36:57 -0500 )edit

Your Answer

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

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-02-22 15:32:37 -0500

Seen: 209 times

Last updated: Feb 24 '17