How to install Infogami
So you want to run Infogami on your computer? Here's how (more documentation to come).
A computer with any POSIX-compatible OS (unix, linux, BSD, etc.). Infogami has been successfully run on the following systems: todo.
Install web.py . You may also want to read the documentation at webpy.org, as it's quite helpful. This also assumes you have already installed Python.
You don't need to use anything in the 'Production' section of web.py's installation guide if you only want to run Infogami on your local machine. If you want to use it for larger projects you may have to do some further reading.
Install a database system. Infogami is currently compatible with postgres, sqlite, and mysql, so choose the one that works best for you. You may also need to install the python package for your database (python-psycopg, python-sqlite2, or mysql-python).
Set up your database tables. Table definitions can be found in the infogami/tdb/schema.sql folder. Once your database program has been installed, create a database and set up the tables.
createdb infogami psql infogami < infogami/tdb/schema.sql
To be written.
Create a 'run.py'. This is the file you will run using web.py to launch Infogami. Create a new file in your /site/infogami folder and type
infogami.config.db_parameters = dict(dbn='postgres', db="infogami", user='yourname', pw='') #use your settings infogami.config.site = 'sitename.local'
if name == "main":
You can also find sample_run.py in the infogami codebase.
Install infogami. Once you have your run.py set up, just type '
python run.py install'.
Run infogami. Type 'python run.py'. Just like running anything with web.py, you should see output that looks like 'http://localhost:8080/'. Visit that site in your web browser to see your infogami installation!
I get an error message that says "DatabaseException file is encrypted or is not a database."
sqlite databases created with version 2 are not compatible with sqlite version 3, and vice versa. You have probably created your infogami database with one version of sqlite but are trying to access it using a different version.
Make sure you have the same sqlite version for both the binary you are using to create the database and the python sqlite package. If you are using 'sqlite3' to create your database, make sure you have the python-sqlite3 library installed. Otherwise, be sure to create your infogami database using 'sqlite' instead of 'sqlite3'.