Hi, I've just pushed pull request to batpad branch. I splited views/urls/serializers into folders. So access for blog post is /api/blog/blog_post
Generally I have been focusing on view blog posts to display list of post in my page. Only works GET request. To add something you have to do it by mezzanine.admin page. I had to set in model "Site" field "site" to editable=True because of that: https://github.com/tomchristie/django-rest-framework/issues/1604 What else? I moved some rest methods to appropriate folders like blogsViews into blog, userView into core and pagesViews into pages. Could someone review it in order to check correctness of names, urls, views and indicate what correct? Best regards, Andrzej Grymkowski On Sunday, June 1, 2014 7:29:38 PM UTC+2, Fredrik Blomqvist wrote: > > Hi, > > I want to create a website that uses both Mezzanine as its CMS and Angular > for the user experience (and because I just took a course on it and it > seems awesome so far). > I read a great tutorial > <http://blog.kevinastone.com/getting-started-with-django-rest-framework-and-angularjs.html> > > on how to create a Django + Angular app, which didn't seem too hard, but I > am unsure how to approach Mezzanine though. > > The part I don't understand is how to create the API (the front-end is > kinda obvious, just modify the templates). I would really appreciate a > pointer in the right direction, an explanation, or even better some code > examples (any demo site like this?)! > > Best Regards, > Fredrik Blomqvist > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
