Coder Social home page Coder Social logo

Comments (6)

gcushen avatar gcushen commented on June 24, 2024

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.

gcushen avatar gcushen commented on June 24, 2024

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.

zaneadix avatar zaneadix commented on June 24, 2024

@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.

gcushen avatar gcushen commented on June 24, 2024

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.

gcushen avatar gcushen commented on June 24, 2024

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.

gcushen avatar gcushen commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.