Stronginthearm
First Post
Disclaimer: I own literally every D&D 3.0/3.5 source book (some 5 foot of shelf space), so I don't intend to disrespect anybody's IP rights.
Also I hope this is the right forum, since the topic is somehow D&D, but mostly technology.
So yeah, dndtools.eu is down, which sucks because it was an awesome site if you didn't wanted to dig through all of your books to find that one feat.
Fortunately the sourcecode of the site is available (linked on the site) and one can find at least two versions of the site database at dropbox (mysql from 2013 and sqlite from 2014) and since I like both D&D and computers I tried to set up a local mirror for myself.
Unfortunately I know primarily linux and secondarily php but not python (or django), so it kind of works, but not quite *sigh*.
So my question is, has anybody managed to properly install it?
If somebody want's to try his/her luck, this is what I've done so far (basically the installation instructions from github):
- Debian Wheezy, python and some addons installed via apt
- python
- python-imaging
- python-textile
- python-mysqldb
- python-sqlite
- python-recaptcha
- django and addons installed via pip:
- Django==1.2.7
- South==1.0.1
- django-debug-toolbar==0.9.4
- django-pagination==1.0.7
- recaptcha-client==1.0.6
- django-reversion 1.3.3 installed via git-checkout and setup.py install (since the newest version in pip was 1.5.1)
- imported the 2013 mysql-db: mysql -u root -p -h localhost dndtools < dndtools_prod_backup_2013_03_02_clear_accounts_no_reversions.sql
- git clone the dndtools
- edited the db settings in local.py
- finally python manage.py runserver
...and now I have on port 8000 something that looks like dndtools (except for exceptions when I click on magic or bestiary) ... and that's about as far as I get.
I still have the following problems:
- I guess the remaining exceptions result from wrong versions of a component, I'll iterate about the possible combinations a bit, but if anybody knows which versions exactly to use, I'd be happy to hear
- how do I embed a django project in my normal apache? manage.py runserver on port 8000 can not be the real solution
- the github install file mentions a reset of the admin account, but when I try "users = User.objects.all()" on the django shell I get "NameError: name 'User' is not defined"
- also I don't see where I could log in on that site
- I don't know how complete the 2013 db is, so I'd like to try the 2014 db, but it's sqlite. I've managed to dump the db to sql and ran it through a converter python script, so it should now be mysql compatible, but it isn't, mysql doesn't like the CONSTRAINT or REFERENCE syntax of the tables, but I don't see why
- alternatively I tried to reference the original sqlite file in the local.py, but that breaks the site
Any input is greatly appreciated.
Also I hope this is the right forum, since the topic is somehow D&D, but mostly technology.
So yeah, dndtools.eu is down, which sucks because it was an awesome site if you didn't wanted to dig through all of your books to find that one feat.
Fortunately the sourcecode of the site is available (linked on the site) and one can find at least two versions of the site database at dropbox (mysql from 2013 and sqlite from 2014) and since I like both D&D and computers I tried to set up a local mirror for myself.
Unfortunately I know primarily linux and secondarily php but not python (or django), so it kind of works, but not quite *sigh*.
So my question is, has anybody managed to properly install it?
If somebody want's to try his/her luck, this is what I've done so far (basically the installation instructions from github):
- Debian Wheezy, python and some addons installed via apt
- python
- python-imaging
- python-textile
- python-mysqldb
- python-sqlite
- python-recaptcha
- django and addons installed via pip:
- Django==1.2.7
- South==1.0.1
- django-debug-toolbar==0.9.4
- django-pagination==1.0.7
- recaptcha-client==1.0.6
- django-reversion 1.3.3 installed via git-checkout and setup.py install (since the newest version in pip was 1.5.1)
- imported the 2013 mysql-db: mysql -u root -p -h localhost dndtools < dndtools_prod_backup_2013_03_02_clear_accounts_no_reversions.sql
- git clone the dndtools
- edited the db settings in local.py
- finally python manage.py runserver
...and now I have on port 8000 something that looks like dndtools (except for exceptions when I click on magic or bestiary) ... and that's about as far as I get.
I still have the following problems:
- I guess the remaining exceptions result from wrong versions of a component, I'll iterate about the possible combinations a bit, but if anybody knows which versions exactly to use, I'd be happy to hear
- how do I embed a django project in my normal apache? manage.py runserver on port 8000 can not be the real solution
- the github install file mentions a reset of the admin account, but when I try "users = User.objects.all()" on the django shell I get "NameError: name 'User' is not defined"
- also I don't see where I could log in on that site
- I don't know how complete the 2013 db is, so I'd like to try the 2014 db, but it's sqlite. I've managed to dump the db to sql and ran it through a converter python script, so it should now be mysql compatible, but it isn't, mysql doesn't like the CONSTRAINT or REFERENCE syntax of the tables, but I don't see why
- alternatively I tried to reference the original sqlite file in the local.py, but that breaks the site
Any input is greatly appreciated.