Django Gramps no module named web.settings

I am using Gramps 3.3.1 under Ubuntu 12.04 and trying to export / import Django. The installation is all right, but when I look at the installed add-ons, she says that it did not work: "There is no module named web.settings."

I can’t understand in my whole life how to fix this. I am assuming this line in a python script:

import web.settings as default_settings 

Does anyone have any ideas? I try to get this data into a MySQL database as well, but I can't seem to.

Thanks!

+4
source share
1 answer

When you encounter an error when Python tells you β€œNo module named blah”, it really means that it cannot find the β€œblah”.

I would check your pythonpath and file system permissions against the stuff of your path.

Edit

Your problem seems to be a known issue: http://www.gramps-project.org/bugs/view.php?id=5464

This is not caused by running Gramps from the source, next to as far as I can tell. It doesn't look like a Python Path issue, as Gramps Django is developing assumptions where your Django settings will be (but I could be wrong).

As for the Python Path, there are many resources that describe how to do this. The easiest way to test your Python path is to run echo $PYTHONPATH in a terminal. If you do not see it, Python may not find it.

+3
source

Source: https://habr.com/ru/post/1433439/


All Articles