Comments (6)
Mezzanine 4.1.0 was only released 9 days ago. I suspect that your version of Mezzanine may be currently incompatible as the API has not been tested with this new version yet. You may have better luck with Mezzanine 4.0.x. In the meantime, I will look at all the change logs for the API dependencies and begin upgrading the API to use more recent dependency versions, or at least be tested against them.
from mezzanine-api.
Are you sure that you followed all of the installation instructions, such as step 4 here: http://gcushen.github.io/mezzanine-api/
Add the following code in your Mezzanine urls.py somewhere after the urlpatterns = [] line:
# REST API URLs
urlpatterns += patterns("",
("^api/", include("mezzanine_api.urls")),
)
from mezzanine-api.
@gcushen
Yeah I copied that in then fiddled with it a bunch of different ways. It's the main reason I posted here. I was baffled for about an hour as to why the urls weren't being recognized. I also ran upgrades on django-rest-swagger and DRF as they were throwing errors. Next chance i have I'll give Mezz 4.0.x a shot. Thanks, George.
from mezzanine-api.
Thanks for the details @zaneadix. I reproduced a similar issue by installing Mezzanine 4.1.0 in a new build. There was actually a python error accessing API urls, perhaps why you saw 404 error. The latest master has been updated to add compatibility for Mezzanine 4.1.0 and remove support for older versions. To install latest master from GIT:
pip install -e git+https://github.com/gcushen/mezzanine-api.git#egg=mezzanine_api
The remaining installation procedure is the same as http://gcushen.github.io/mezzanine-api/ , except the Mezzanine urls.py can be modified to add url("^api/", include("mezzanine_api.urls")),
after the existing urlpatterns += [
(approx line 29) like below:
urlpatterns += [
# API URLs
url("^api/", include("mezzanine_api.urls")),
...
The official new 0.4.0 API will be released sometime soon once a few other features are completed and fully tested.
from mezzanine-api.
Regarding Mezzanine's urls.py, I meant to say add url("^api/", include("mezzanine_api.urls")),
after urlpatterns += [
(approx line 29) for Mezzanine 4.1.0 as there were changes to the url system in 4.1.0.
from mezzanine-api.
Version 0.4.0 (f95a23b) is now available. To check out the release notes and to upgrade: http://gcushen.github.io/mezzanine-api/release-notes/ .
If installing/upgrading with Mezzanine 4.1.0 and above, the Mezzanine API url declaration requires changing as per Step 4 at http://gcushen.github.io/mezzanine-api/#installation .
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
- 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
- Fix API URL bug in CLI HOT 5
- 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.