Re: [mezzanine-users] Re: how to access page content programmatically?

2017-09-24 Thread Eduardo Rivas
Let's start with the get() call from mezzanine.pages.models import Page mypage = Page.objects.get(title="My title") Since the "content" field is part of the RichTextPage subclass, we need to access it through the relation: mypage.richtextpage.content. If the page were a Form, it would be: myp

Re: [mezzanine-users] Re: How to create comments section?

2017-09-24 Thread Eduardo Rivas
Mezzanine provides a generic ThreadedComment model exactly for this. You'll need to inject CommentField into the Product model, but everything else should be smooth sailing. See http://mezzanine.jupo.org/docs/utilities.html#threaded-comments On 2017-09-24 4:27 PM, jenia mtl wrote: (Per produc

Re: [mezzanine-users] WHy does deploying mezzanine on digital ocean shows INternal service error?

2017-09-24 Thread Eduardo Rivas
It looks like you've followed a third-party tutorial that has instructed you to install all the dependencies manually. Have you tried following the official Mezzanine tutorial? It will automate all the installation steps, including the dependency installation, database configuration, static fil

[mezzanine-users] WHy does deploying mezzanine on digital ocean shows INternal service error?

2017-09-24 Thread francois lemestre
Hi everyone, I am desperate. I tried to deploy mezanine, following this https://perezprogramming.com/blog/deploy-mezzanine-to-ubuntu-14-server-on-digitalocean-with-fabric/ but i got *Internal service error*. I tried this also https://www.digitalocean.com/community/questions/deploying-django-

[mezzanine-users] Re: Routing problems in deployed app

2017-09-24 Thread francois lemestre
Hi Ther, I know that this is off topic but I m hoping that you can help me. I have been trying to deploy my mezzanine app. This is what i tried: https://perezprogramming.com/blog/deploy-mezzanine-to-ubuntu-14-server-on-digitalocean-with-fabric/, then i got " *Internal Server Error"* then i del

Re: [mezzanine-users] How to setup a contact service?

2017-09-24 Thread Danny
On 25 September 2017 at 07:59, jenia mtl wrote: > Hello. > > How do I setup a contact service? > > Right now I get this error: > >POST /contact/ HTTP/1.1" 500 118061 > > > Do I need to implement the view myself that will be sending the email? Or > is there a Django app for this? > Hi Je

Re: [mezzanine-users] Where is the login page?

2017-09-24 Thread Danny
Hi Jenia, Cartridge and Mezzanine use the mezzanine.accounts app for public user login. See: http://mezzanine.jupo.org/docs/user-accounts.html Note that if you create a Profile model that contains address fields that match what the Cartridge checkout form wants, the checkout process will try and

Re: [mezzanine-users] Cartridge, how can the user view their purchasing history?

2017-09-24 Thread Danny
On 25 September 2017 at 08:17, jenia mtl wrote: > Hello. > > How do I create the purchasing history page? > I just added this to my urls.py: url("^account/orders/$", order_history, name="shop_order_history"), (after including cartridge.shop.urls) Then the history is at yoursite.com/account/ord

[mezzanine-users] Cartridge, how can the user view their purchasing history?

2017-09-24 Thread jenia mtl
Hello. How do I create the purchasing history page? I suppose I'll need to create something along these lines: http://mezzanine.jupo.org/docs/content-architecture.html#creating-custom-content-types? But how can I make it display something different for each user? How do I customize it per

[mezzanine-users] Where is the login page?

2017-09-24 Thread jenia mtl
Hello. I can't find the login page in Cartridge. For example, when the user wants to rate a product, they need to login. There should be some login functionality I suppose. Is it this: admin/login/?next=/admin/? If so, how do I set the button there at the bottom to be "Site" by default inst

[mezzanine-users] How to setup a contact service?

2017-09-24 Thread jenia mtl
Hello. How do I setup a contact service? Right now I get this error: POST /contact/ HTTP/1.1" 500 118061 Do I need to implement the view myself that will be sending the email? Or is there a Django app for this? Thanks Jenia -- You received this message because you are subscribed to

[mezzanine-users] Re: How to create comments section?

2017-09-24 Thread jenia mtl
(Per product) On Sunday, September 24, 2017 at 6:27:34 PM UTC-4, jenia mtl wrote: > > Hello. > > > What is the simplest way to create a comments section in Cartridge? > > > Thanks > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscr

[mezzanine-users] How to create comments section?

2017-09-24 Thread jenia mtl
Hello. What is the simplest way to create a comments section in Cartridge? Thanks -- 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 mezzanine-users+unsubscr

Re: [mezzanine-users] How to extend cartridge?

2017-09-24 Thread jenia mtl
Thanks kindly for your help! On Saturday, September 23, 2017 at 11:14:30 PM UTC-4, Eduardo Rivas wrote: > > To extend templates: Create a template in your project under the same path > as the Cartridge template. For example, if you want to provide your own > template for Products, create a templ

[mezzanine-users] Re: how to access page content programmatically?

2017-09-24 Thread Malik Rumi
On Sunday, September 24, 2017 at 1:19:51 PM UTC-7, Malik Rumi wrote: > > > I have seen this post: > https://groups.google.com/forum/#!searchin/mezzanine-users/shell%7Csort:relevance/mezzanine-users/BhEelJ3gvf4/4g4QZwwXNPQJ > > > > It does not answer the question, how to access page content >

[mezzanine-users] how to access page content programmatically?

2017-09-24 Thread Malik Rumi
I have seen this post: https://groups.google.com/forum/#!searchin/mezzanine-users/shell%7Csort:relevance/mezzanine-users/BhEelJ3gvf4/4g4QZwwXNPQJ It does not answer the question, how to access page content programmatically? -- You received this message because you are subscribed to the G

[mezzanine-users] I get "Bootstrap's JavaScript requires jQuery(…)"

2017-09-24 Thread jenia mtl
Hello. I get this error on my website http://jeniawebsitetesting.com/: jquery-1.8.3.min.js:2 Uncaught TypeError: p.setAttribute is not a function(…) Jquery is there: http://jeniawebsitetesting.com/static/mezzanine/js/jquery-1.8.3.min.js And I simply got it from: http://code.jq

[mezzanine-users] Re: Routing problems in deployed app

2017-09-24 Thread jenia mtl
I somehow made it work. Don't ask me how :) On Sunday, September 24, 2017 at 12:01:48 PM UTC-4, jenia mtl wrote: > > Hello everyone. > > I'm having trouble deploying the app to my server: > > >http://jeniawebsitetesting.com/shop/ > > > As you can see, I'm missing all the static files. > > > I

[mezzanine-users] Re: Routing problems in deployed app

2017-09-24 Thread jenia mtl
Even if I go to this url directly: http://jeniawebsitetesting.com/static/media/uploads/product/.thumbnails/monitors.png/monitors-148x148.png I still get redirected to: http://jeniawebsitetesting.com/static/media/uploads/product/.thumbnails/monitors.png/monitors-148x148.png/index.html I don't un

[mezzanine-users] Routing problems in deployed app

2017-09-24 Thread jenia mtl
Hello everyone. I'm having trouble deploying the app to my server: http://jeniawebsitetesting.com/shop/ As you can see, I'm missing all the static files. I get in the error.log: 2017/09/24 11:53:40 [error] 21769#21769: *11 "/srv/http/store/store00/static/js/bootstrap.js/*index.