Discussions
Activity
Sign In
How it works
Nicolas Dufour
Activity
Discussions
7
Comments
22
Python3 / Django 2 upgrade?
Thanks tomate! Don't hesitate to tell me when it's ready so that I can help you test your work.
Comment by
Nicolas Dufour
January 2020
permalink
Python3 / Django 2 upgrade?
Hi, According to a previous post, Booktype is no longer developed. It's still moving a bit (some commits in the github page), but nothing to let us think the team or someone else is working on a Python 3/ Django 2 port. And as you wrote, we hav…
Comment by
Nicolas Dufour
November 2019
permalink
Booktype 2.x
Hi Vishal, I confirm Booktype 2 no longer works with the list-books.json file, but uses a rest API to access book content (and more). There's an old discussion about it in this forum: https://forum.sourcefabric.org/discussion/18746/list-books-j…
Comment by
Nicolas Dufour
February 2019
permalink
book export isn't working
Follow-up report: https://dev.sourcefabric.org/browse/BK-2515
Comment by
Nicolas Dufour
December 2018
permalink
book export isn't working
Got it! In the _site/celery.py file, the DJANGO_SETTINGS_MODULE setting is set to dev, whatever we have in the Django base settings file. Changing the value to point to the prod environment and restarting Apache and Supervisor fixed the issue.So it …
Comment by
Nicolas Dufour
December 2018
permalink
book export isn't working
I'm afraid I'm also running into the same issue. Our test server works as expected (dev settings), but when we try to export from our production server (with prod settings), the logs show exactly the same configuration errors. As if the pr…
Comment by
Nicolas Dufour
December 2018
permalink
Booktype 1.6.1 to 2.x upgrade
Checking the database shows that it is missing some tables (including core_permission). So updating permissions on a table that doesn't exist is a bit difficult. I guess the migration didn't work as expected. Note that I first installed th…
Comment by
Nicolas Dufour
October 2018
permalink
Booktype 1.6.1 to 2.x upgrade
Also replaced the DB Engine in the configuration file by django.db.backend.postgresql (no more psycopg2).
Comment by
Nicolas Dufour
October 2018
permalink
Booktype 1.6.1 to 2.x upgrade
I managed to run the first step by using the following command before (column removed in Django 1.8): ALTER TABLE django_content_type DROP COLUMN name So now ./manage.py migrate --fake-initial doesn't return any error, but the following step, .…
Comment by
Nicolas Dufour
October 2018
permalink
Booktype 1.6.1 to 2.x upgrade
I'm currently testing Booktype1.6 to 2.x migration, and it's not straightforward at all. The aforementioned document seems good, but I also have to deal with Django versions because BT16 required Django 1.3, and I have installed BT2x with …
Comment by
Nicolas Dufour
October 2018
permalink
list-books.json with Booktype 2.x
It's fixed! In case someone else has the same problem, the Apache WSGI module had to be properly configured to accept authentication (see http://www.django-rest-framework.org/api-guide/authentication/#apache-mod_wsgi-specific-configuration). Fo…
Comment by
Nicolas Dufour
July 2018
permalink
list-books.json with Booktype 2.x
Not better with the production profile. Since there's no big difference with the dev profile, it's not a surprise.I've also tried to create a different user with specific rights, but it's still failing. I can get the token, but c…
Comment by
Nicolas Dufour
July 2018
permalink
list-books.json with Booktype 2.x
No progress so far. I'm going to switch to a production profile in case there's something blocking in the dev one.
Comment by
Nicolas Dufour
July 2018
permalink
list-books.json with Booktype 2.x
and relying on the api backend fails with the following message: {"non_field_errors":["Unable to log in with provided credentials."]}.
Comment by
Nicolas Dufour
July 2018
permalink
list-books.json with Booktype 2.x
Also note that if I remove 'django.contrib.auth.backends.ModelBackend' I can't login a all (or retrieve a token) even from the web application.
Comment by
Nicolas Dufour
July 2018
permalink
list-books.json with Booktype 2.x
Thanks for your help. I didn't change the content of the server's settings, and thus didn't use the booktype api backend to authenticate. But unfortunately, it still doesn't work. In my settings/base.py, I now have: MIDDLEWARE_C…
Comment by
Nicolas Dufour
July 2018
permalink
list-books.json with Booktype 2.x
I tested all the options provided in the Django Rest Framework documentation, and unfortunately it still doesn't work with coreapi (and the coreapi CLI). Not being able to access the API from a python script is a blocker for us, so some help wo…
Comment by
Nicolas Dufour
July 2018
permalink
list-books.json with Booktype 2.x
I just found out the Booktype API is based on Django Rest Framework, so it should be relatively easy to access it using API clients such as coreapi (see http://www.django-rest-framework.org/topics/api-clients/).
Comment by
Nicolas Dufour
July 2018
permalink
list-books.json with Booktype 2.x
I'm experimenting the new API with curl. Thanks to the API documentation I managed to retrieve an authentification token, but I can't find a way to pass that token to the following request (e.g. _api/v1/books/). I tried to use it in the he…
Comment by
Nicolas Dufour
June 2018
permalink
Booktype detailed documentation
Yes, that's the docsI found, but it doesn't fit my needs unfortunately. Maybe the dev team still has some internal work drawings or draft that could help ;) Thanks for your help!--Nicolas
Comment by
Nicolas Dufour
June 2018
permalink
Booktype 1.6.1 to 2.x upgrade
Thanks Daniel! > I would recommend that you keep a backup of your Booktype 1.6.x system and maybe clone it to a test system before upgrading your production system. That's my plan. I'll let you know about how it works (or doesn'…
Comment by
Nicolas Dufour
June 2018
permalink
Book export not working
Hi, I just ran into the same kind of issue, and fixed it by changing the following setting (in settings/base.py): EXPORT_ALLOWED_HOSTS = ['127.0.0.1', "*"] Maybe it's not exactly the same case, but it's probably worth a…
Comment by
Nicolas Dufour
June 2018
permalink
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Stop following
About
Username
Nicolas Dufour
Joined
December 2012
Visits
0
Last Active
January 2020
Roles
Member
Posts
29
Friends
Followed by 1 person
My Badges
Total Points: 70
Top Posters
Albert FR
1978
Martin Konecny
1860
Andrey Podshivalov
1526
Voisses Tech
1423
John Chewter
899
Daniel James
844
Roger Wilco
784
hoerich
627
Paul Baranowski
389
Cliff Wang
339