To use a leveldb (python database) for my I need the database to be loaded only when I start the server and not each time a user uses my website.
Previously I used web.py and the if __name__ == '__main__'
statement to make that happen. Once I switched to Apache the __name__
variable is always modwsgi_....
.
Can someone provide me with an alternative that would work with Apache and modwsgi please?