Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requirements and dependencies undocumented #280

Open
fiee opened this issue Dec 15, 2019 · 2 comments
Open

Requirements and dependencies undocumented #280

fiee opened this issue Dec 15, 2019 · 2 comments

Comments

@fiee
Copy link

fiee commented Dec 15, 2019

  • Longclaw version: 1.0.2
  • Wagtail version: 2.7
  • Django version: 2.2
  • Python version: 3.7

This is my first try with Longclaw/Wagtail, but I got a lot of experience with Python and Django<2.

If you try to setup Longclaw according to https://jamesramm.github.io/longclaw/docs/tutorial/install, i.e. just pip install longclaw,
you get the latest versions, e.g. Django>3, while current Wagtail (2.7) needs Django 2.2.

longclaw start bakery doesn’t create a "requirements.txt" as wagtail start mysite does.
I finally used that "requirements.txt" from a Wagtail test project.
Can’t remember all the problems I solved until I could make migrations (I wanted to use MariaDb and django-dotenv from the start).

Then I ran into import errors, where Longclaw tried to import decorators from rest_framework. I finally found out, Longclaw depends on djangorestframework 3.1.3, while 3.11 is current, and that package seems to be a really moving target. Since the missing decorators detail_route and list_route didn’t depend on anything in rest_framework, I just copied them to my virtualenv installation of longclaw.

@JamesRamm
Copy link
Collaborator

Installing from master (pip install git+https://github.com/JamesRamm/longclaw#egg=longclaw) should resolve these issues.
A 1.1 release will be coming around Xmas

@fiee
Copy link
Author

fiee commented May 4, 2020

Back to trying Longclaw, starting again on a new machine. Pypi still has longclaw 1.0.2. Same problems. Git checkout works so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants