Convert binder to stand alone application
Hi, I'm hoping its possible to convert binder to a standalone application. I am looking to integrate it with an existing django site and it would be easier if that was the case.
(Its possible it can be done but the documentation makes it sound like that isn't the case - if I discover a way I will update here).
It can almost be done at the moment though i've hit a few problems which I'll have to come back and solve another time. my notes so far:
- copy binder app from the binder directory (directory with requirements.txt)
- install requirements in virtualenv with new parent site
- add to installed_apps and url patterns of new parent site
- stripped binders settings.py and local_settings.py, removing anything duplicating the new parent site.
- copied RECORD_TYPE_CHOICES and TTL_CHOICES into parent sites local_settings; i suspect whatever is causing issues with migrations (see final note) is causing issues here too.
- created a new templates/binder subdirectory and moved everything in templates/ in to it
- python manage.py makemigrations
- python manage.py migrate
- python manage.py collectstatic
I think that was all i did, might have missed some stuff though.
My problem appears to be that 'binder' isn't recognised since i placed it in my existing apps add-on directory so its python path is addons.binder where binder attempts to import 'binder'. Not sure what the best solution to that is at the moment or how intrusive the change/s would be (I suspect the solution will be to make it a python package and install it to the python packages directory).