Comments (5)
I'm using, specifically, the "mezzanine-client-examples" (posts_list.py et al.), and they always go to 127.0.0.1:8000, even after:
mezzanine-cli config api_url http://192.168.99.100/api
If there's an optional parameter to either the Mezzanine() api constructor or the resultant object's .get_posts() call, then they should be used to show how to override the URL.
from mezzanine-api.
@ssteinerx , thanks for reporting this issue with the API CLI. The CLI project is actually in a separate Github repo dedicated to just the CLI and SDK.
The issue seems to be that line 55 of https://github.com/gcushen/mezzanine-client-python/blob/master/mezzanine_client/api.py was originally designed for the use via the API Python SDK and appears I may have forgotten to update it to check if the API URL has been set in the settings
object in the case of CLI access.
Hence if you provide API URL via the SDK it should work fine, but the small fix mentioned above may be needed for the CLI.
from mezzanine-api.
For example, settings.api_url
should be checked in line 55 of https://github.com/gcushen/mezzanine-client-python/blob/master/mezzanine_client/api.py .
Feel free to submit a pull request to the CLI/SDK Repo at https://github.com/gcushen/mezzanine-client-python if you fix it, otherwise I'll try to to fix it when I get a moment.
from mezzanine-api.
Thanks for this API, great work! Is there a way to post featured image and/or set it for any post?
Update:
Added 'featured_image' under Meta of serializer.py, I am able to post with image now.
from mezzanine-api.
This CLI bug has been fixed in v0.2.2 of Mezzanine Client: https://github.com/gcushen/mezzanine-client-python/releases/tag/0.2.2 .
To update the API client using pip: pip install -U mezzanine-client
from mezzanine-api.
Related Issues (14)
- New release soon? HOT 3
- Published blog posts queryset is not updating HOT 1
- ApiMiddleware and MiddlewareMixin
- how to custom
- mezzanine_api - Could not import 'rest_framework.filters.DjangoFilterBackend' HOT 1
- Add Support for Mezzanine 4.1.0 HOT 6
- Support Mezzanine user account app HOT 3
- Documentation needs inclusion/update about managing endpoints HOT 1
- Add compatibility for Django v2 HOT 1
- can not create mezzanine project with mezzanine-api HOT 3
- Support for Cartridge Rest API HOT 1
- KeyError with vanilla install? HOT 2
- Reverse for 'api-root' not found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mezzanine-api.