[FM Discuss] installation procedure
aerkalov at gmail.com
Mon Oct 25 16:02:26 PDT 2010
> 1) manage.py would miss module sputnik. I have copied the sputnik dir into
> the /lib/booki dir and changed "sputnik" to "booki.sputnik" in settings.py,
> this worked. I have probably some path setup incorrect?
you can find file env.sh.original in repository. You can copy it to
env.sh and with
". ./env.sh" load before running Booki (good while doing development or just
testing. You don't have to define global setup or define this every
time you want to
start booki). You should have in PYTHONPATH your "booki/lib/"
directory. Also, you
should define environment variable DJANGO_SETTINGS_MODULE=booki.settings.
If you tried to install booki with pypi before you might have problem.
Pypi installed it
under /usr/lib something and we changed structure of modules in newer version.
Before it used to be "booki.sputnik", but now it is "booki" and
"sputnik" as two modules.
If you only used latest source from git repository you should not have
> 2) With sqlite it seemed to work now, but when trying to use mysql as a
> database, I get
> Error: One or more models did not validate:
> editor.book: "url_title": CharField cannot have a "max_length" greater than
> 255 when using "unique=True".
I will check this with MySQL. We use PostgreSQL, but you can use
sqlite also (hard to do
schema upgrades with sqlite, when doing upgrades). Right now, there
are only couple of
places where we use raw SQL (because Django ORM does not support
JOINS), so support
for MySQL is possible.
Also, probably it is not very smart to have unique url title longer
then 255, i changed that in
hurry for one event, because while doing import of archive.org books i
realized their titles
can be extremely long. Will look into this.
> Is there some page where I can find more detailed information about
> installation and setup?
There is no special page. But now, after couple of mails on the list,
i think i will write install page for different
operating systems and situations. While we all wait, if you have any
problems, please ask them on the list.
More information about the Discuss