Open MajPay opened 7 years ago
hi @MajPay
i think there are quite a few more steps required to use tastypie.
Firstly you would need to specify resources - see here https://django-tastypie.readthedocs.io/en/latest/tutorial.html#creating-resources
You would also need to add a url config https://django-tastypie.readthedocs.io/en/latest/tutorial.html#hooking-up-the-resource-s
Pootle has a minimal api already - but only for managing certain types of resources
Feel free to ping us on https://gitter.im/translate/dev if you wish to discuss further
Hello,
i am sorry if i missed the documentation part but i would not ask if i was not sure, that i read it all...
I am completely new to pootle and have very little experience with python. I wanted to setup a pootle server to manage translations for different projects. My goal is a build task (in another project), that pulls the current translations from the pootle server i am planning to have. Now - getting started - was not as easy as expected, the installation instructions turned out to be not so straight-forward as i hoped it to be but still - i managed to have a working pootle installation via a vagrant setup.
Now to my actual problem:
I want to access translations via a http api, pootle seems to have that built-in (more or less), so i installed the required "django-tastypie" package (pip install django-tastypie), added the configuration options to my pootle.conf
and restarted everything.
Now - when accessing the api via httpie
it will only return the 404 page of pootle.
My setup is powered by MySQL and nginx.
I dont think the MySQL part is of any importance but my nginx config is like:
(the port 8084 is tunneled via Vagrant/VirtualBox)
pip freeze says:
There must be one point that i missed...
Thank you in advance