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: mypage.form.content.

If you don't know what kind of Page subclass you're dealing with, you 
can call get_content_model() to figure it out: mypage.get_content_model()


That would return RichTextPage, or Form, or your own custom page types. 
You can chain field access as well: mypage.get_content_model().some_field


On 2017-09-24 2:23 PM, Malik Rumi wrote:



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
programmatically?


update:
i.e., the Page equivalent of
>>> testpage2 = BlogPost.objects.get(title__contains="091517 status")
>>> testpage2.content
text displays
--
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...@googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 files, etc.


Here's the link to the official tutorial: 
http://mezzanine.jupo.org/docs/deployment.html#tutorial


I suggest you wipe your Droplet and follow the steps shown there (you 
are in Case 1: Deploying to a brand new server). Read the instructions 
completely before starting, and if you encounter any errors please 
include a traceback and all the steps you followed until the problem 
appeared.


Good luck!


On 2017-09-24 9:54 PM, francois lemestre wrote:

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-using-fabric, 
same I got *Internal service error*.


I also tried the documentation of mezzanine. I got the same thing. 
However, my website works well locally and also when i create a 
virtualenv on the droplet. The problem appears when i do*fab all



Please help me. 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...@googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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-using-fabric,
 
same I got *Internal service error*.

I also tried the documentation of mezzanine. I got the same thing. However, 
my website works well locally and also when i create a virtualenv on the 
droplet. The problem appears when i do



* fab allPlease help me. 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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 deleted the droplet, and i tried this : 

https://www.digitalocean.com/community/questions/deploying-django-mezzanine-using-fabric
 

I got 
*Internal Server Error" *again. 

One thing to notice is that, the website works perfectly on local server. 
In addition, when i create a virtualenv on the droplet, it also orks 
amazingly. The moment i enter :fab all with the configurations that i have, 
the nightmare starts. I have been trying to solve this for weeks but nobody 
seems to be able to help. Please can u tell how you deployed your website 
to not have an error?

I would really appreciate your answer. I have desperately not been able to 
sleep for days because of this.

On Sunday, September 24, 2017 at 2:51:06 PM UTC-2:30, jenia mtl wrote:
>
> 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 get in the error.log:
>>
>> 
>> 2017/09/24 11:53:40 [error] 21769#21769: *11 
>> "/srv/http/store/store00/static/js/bootstrap.js/*index.html*" is not 
>> found (2: No such file or directory), client: 178.203.185.227, server: =, 
>> request: "GET /static/js/bootstrap.js/ HTTP/1.1", host: "
>> jeniawebsitetesting.com", referrer: "http://jeniawebsitetesting.com/shop/
>> "
>>
>>
>> Here is more of the log: http://dpaste.com/075RTQD
>>
>>
>> What is that index.html doing there at the end? I don't get it.
>>
>> Here is my nginx config: http://dpaste.com/3CQXD9D
>>
>> Here is my urls.py: http://dpaste.com/1GYHK3F
>>
>> And here is my file structure:
>>
>> ls -l /srv/http/store/store00/static/media
>>
>> drwxr-xr-x 3 jenia jenia 4096 Sep 24 11:28 product
>> drwxr-xr-x 4 jenia jenia 4096 Sep 24 11:28 uploads
>>
>>
>> Can someone tell me, how do I configure the routing in nginx/urls.py to 
>> be able to successfully serve the static file?
>>
>> Thanks
>> Jenia
>>
>

-- 
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 Jenia,

Do you mean a web form that people can fill in and send information to you?

Just create a Form page in your page hierarchy. If you've set up the
EMAIL_* related setting fields correctly, and your server can send email,
you can easily get the form contents emailed to you.

Mezzanine's default models/views make use of the Django SMTP backend to
send email. You will need to set up the appropriate fields in your settings:
https://docs.djangoproject.com/en/1.11/topics/email/#smtp-backend

You can use a local SMTP server, or sign up for one of the online ones that
allow you to post email messages via https, such as https://sendgrid.com

Seeya. Danny.

-- 
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 copy those fields into the checkout form (see
https://github.com/stephenmcd/cartridge/blob/master/cartridge/shop/checkout.py#L118
)
This is quite a handy feature. The fields in the user profile should be
named "street", "city", "state", "postcode", "country" and "phone".

Accessing the user's profile is the same as it is in mezzanine, through the
/accounts/update/ URL.

Hope this helps,

Seeya. Danny.




On 25 September 2017 at 08:04, jenia mtl  wrote:

> 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
> instead of "Admin".
>
> Should I create my own login page for that?
>
> And finally, how do users register? How do I differentiate users from
> admins?
>
>
> 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...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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/orders/

You can create a Link in the page hierarchy that points to this URL so
people can see their order.

The template is here:
https://github.com/stephenmcd/cartridge/blob/master/cartridge/shop/templates/shop/order_history.html

So you can override what it contains by creating
yourapp/templates/shop/order_history.html

Customising this per user may depend on you adding specific stuff to the
template that reads fields of the current user's model object and working
things out that way (which you can probably do in a template tag if you
like, read up on Django template tags:
https://docs.djangoproject.com/en/1.11/howto/custom-template-tags/ )

Hope this helps.

Seeya. Danny.




>
> 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 user?
>


>
> 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...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 user?

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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 
instead of "Admin".

Should I create my own login page for that?

And finally, how do users register? How do I differentiate users from 
admins?


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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 template in 
> your_app/templates/shop/product.html. Here's an explanation of Django's 
> template loading: 
> https://docs.djangoproject.com/en/1.11/ref/templates/api/#django.template.loaders.app_directories.Loader
>
> Here are all the Cartridge templates you can override in your own project: 
> https://github.com/stephenmcd/cartridge/tree/master/cartridge/shop/templates
>
> To extend views: You can create your own views and register them in the 
> same URL pattern as the view you want to override. If you want to override 
> the view that renders the checkout page, you can register your own view at 
> the /shop/checkout path. Make sure your overriden views are registered 
> before the Cartridge urlpatterns. For example
>
> url("^shop/checkout/", my_views.my_custom_checkout, name="shop_checkout")
>
> Here's Cartridge's url config which lists all urls managed by Cartridge: 
> https://github.com/stephenmcd/cartridge/blob/master/cartridge/shop/urls.py
>
> To override models you can use Mezzanine's field injection, documented 
> here: http://mezzanine.jupo.org/docs/model-customization.html. Notice 
> this is useful only to add new fields to a model, not to remove or alter 
> existing fields. For that you might need to maintain your own fork.
>
> Finally, remember Cartridge comes with a bunch of settings you can 
> customize to modify it's behavior, you can review them all here: 
> http://cartridge.jupo.org/configuration.html
> On 2017-09-23 5:19 PM, jenia mtl wrote:
>
> Hello. 
>
> I want to change cartridge a little. Change the templates, change the 
> views and do on.
>
> I did it by changing the code of the app itself. But I do not think it's 
> the best idea for obvious reason (when the app will be upgrades, I'll be 
> hard to merge my changes for example).
>
> How do I extend Cartridge? Is there a mechanism to extend, override and so 
> on 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-use...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 
> programmatically?
>

update:
i.e., the Page equivalent of
>>> testpage2 = BlogPost.objects.get(title__contains="091517 status")
>>> testpage2.content
text displays 

-- 
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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.jquery.com/jquery-1.8.3.min.js


(and also 
from 
lib/python3.6/site-packages/mezzanine/core/static/mezzanine/js/jquery-1.8.3.min.js)

and placed it into my static folder.


I don't understand what the problem is frankly. Why is JS throwing this 
error? How can I fix this?

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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 get in the error.log:
>
> 
> 2017/09/24 11:53:40 [error] 21769#21769: *11 
> "/srv/http/store/store00/static/js/bootstrap.js/*index.html*" is not 
> found (2: No such file or directory), client: 178.203.185.227, server: =, 
> request: "GET /static/js/bootstrap.js/ HTTP/1.1", host: "
> jeniawebsitetesting.com", referrer: "http://jeniawebsitetesting.com/shop/;
>
>
> Here is more of the log: http://dpaste.com/075RTQD
>
>
> What is that index.html doing there at the end? I don't get it.
>
> Here is my nginx config: http://dpaste.com/3CQXD9D
>
> Here is my urls.py: http://dpaste.com/1GYHK3F
>
> And here is my file structure:
>
> ls -l /srv/http/store/store00/static/media
>
> drwxr-xr-x 3 jenia jenia 4096 Sep 24 11:28 product
> drwxr-xr-x 4 jenia jenia 4096 Sep 24 11:28 uploads
>
>
> Can someone tell me, how do I configure the routing in nginx/urls.py to be 
> able to successfully serve the static file?
>
> Thanks
> Jenia
>

-- 
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 understand this behaviour. How do I use it correctly? I mean, it's 
impossible that index.html should be appended to each url and a redirect 
issued. Something must be wrong.

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 get in the error.log:
>
> 
> 2017/09/24 11:53:40 [error] 21769#21769: *11 
> "/srv/http/store/store00/static/js/bootstrap.js/*index.html*" is not 
> found (2: No such file or directory), client: 178.203.185.227, server: =, 
> request: "GET /static/js/bootstrap.js/ HTTP/1.1", host: "
> jeniawebsitetesting.com", referrer: "http://jeniawebsitetesting.com/shop/;
>
>
> Here is more of the log: http://dpaste.com/075RTQD
>
>
> What is that index.html doing there at the end? I don't get it.
>
> Here is my nginx config: http://dpaste.com/3CQXD9D
>
> Here is my urls.py: http://dpaste.com/1GYHK3F
>
> And here is my file structure:
>
> ls -l /srv/http/store/store00/static/media
>
> drwxr-xr-x 3 jenia jenia 4096 Sep 24 11:28 product
> drwxr-xr-x 4 jenia jenia 4096 Sep 24 11:28 uploads
>
>
> Can someone tell me, how do I configure the routing in nginx/urls.py to be 
> able to successfully serve the static file?
>
> Thanks
> Jenia
>

-- 
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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.html*" is not found 
(2: No such file or directory), client: 178.203.185.227, server: =, 
request: "GET /static/js/bootstrap.js/ HTTP/1.1", host: 
"jeniawebsitetesting.com", referrer: "http://jeniawebsitetesting.com/shop/;


Here is more of the log: http://dpaste.com/075RTQD


What is that index.html doing there at the end? I don't get it.

Here is my nginx config: http://dpaste.com/3CQXD9D

Here is my urls.py: http://dpaste.com/1GYHK3F

And here is my file structure:

ls -l /srv/http/store/store00/static/media

drwxr-xr-x 3 jenia jenia 4096 Sep 24 11:28 product
drwxr-xr-x 4 jenia jenia 4096 Sep 24 11:28 uploads


Can someone tell me, how do I configure the routing in nginx/urls.py to be 
able to successfully serve the static file?

Thanks
Jenia

-- 
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] trying to deploy mezzanine for weeks! please help

2017-09-24 Thread francois lemestre
Here is the error after restarting nginx a couple times   Job for 
nginx.service failed. See "systemctl status nginx.service" and "journalctl 
-xe" for details.



On Sunday, September 24, 2017 at 4:04:08 AM UTC-2:30, francois lemestre 
wrote:
>
> I deleted the user coursofrancesco, and the database with the same name. 
> Then the installation went on and completed. Then this is what happened: 
>
> So i completed the installation and got a positive message. It did not 
> show any error, completed the process step by step, then said "done" 
> disconnecting.
> I had followed this tutorial 
>
> https://perezprogramming.com/blog/deploy-mezzanine-to-ubuntu-14-server-on-digitalocean-with-fabric/
>
> However, i previously had a local mezzanine site so i had to create  new 
> role (postgres) with a new database. The problem is that  i restarted the 
> server a couple times and saw 
>
> "Internal Server Error" on the frontend.
>
> I went on to do 
> sudo nginx -t
>
> It said that everything was ok. I am confused.
>
> On Sunday, September 24, 2017 at 2:40:11 AM UTC-2:30, francois lemestre 
> wrote:
>>
>>
>> Hi There, thanks for replying. Here is the error that i get. I kept 
>> trying. My problem may be the fact that it tries to create a user that is 
>> "coursofrancesco" which i neve actually tried to create but which in fact 
>> is the name of the mezzanine project that i m trying to put online. 
>>
>> I first followed this 
>> https://perezprogramming.com/blog/deploy-mezzanine-to-ubuntu-14-server-on-digitalocean-with-fabric/
>>   
>> regularly as is. It worked quite well but since i already developped my 
>> website locally with the default sqlite, i could not use it. So i tried 
>> using the existing dev.db database. I got an error as fabfile seems to 
>> request a db with a password and tries to create a user somehow. So i 
>> decide to just go on and start a brand new postgres db. Unlucky for the 
>> past couple days. 
>>
>> Frustrated.
>>
>>
>>
>>
>>
>> On Sunday, September 24, 2017 at 12:47:21 AM UTC-2:30, Eduardo Rivas 
>> wrote:
>>>
>>> What happens when you run "fab deploy"?
>>>
>>> On 2017-09-23 12:07 PM, francois lemestre wrote:
>>>
>>>
>>> hello there,
>>>
>>> i have developped my website locally and asap it was ready i decided to 
>>> deploy it on Digitalocean. however, most of the tutorials i find, talk 
>>> about creating a new project. but i don't want to create a new project 
>>> because i already have the website and just want to deploy it. The big 
>>> dilema is how do i that? Wher do i put my code. I had the fabfile setup 
>>> like this 
>>>
>>> FABRIC = {
>>> "DEPLOY_TOOL": "rsync",  # Deploy with "git", "hg", or "rsync"
>>> "SSH_USER": "created_user",  # VPS SSH username
>>> "HOSTS": ["digitalocean ip"],  # The IP address of your VPS
>>> "DOMAINS": ALLOWED_HOSTS,  # Edit domains in ALLOWED_HOSTS
>>> "REQUIREMENTS_PATH": "requirements.txt",  # Project's pip 
>>> requirements
>>> "LOCALE": "en_US.UTF-8",  # Should end with ".UTF-8"
>>> "DB_PASS": "dbpass",  # Live database password
>>> "ADMIN_PASS": "user_pass",  # Live admin user password
>>> "SECRET_KEY": SECRET_KEY,
>>> "NEVERCACHE_KEY": NEVERCACHE_KEY,
>>> }
>>>
>>> I did not forget to add allowed hosts either. However, I just don't know 
>>> where to put my existing project. Somebody help please, i m so frustrated.
>>>
>>> -- 
>>> 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-use...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>>

-- 
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] trying to deploy mezzanine for weeks! please help

2017-09-24 Thread francois lemestre
I deleted the user coursofrancesco, and the database with the same name. 
Then the installation went on and completed. Then this is what happened: 

So i completed the installation and got a positive message. It did not show 
any error, completed the process step by step, then said "done" 
disconnecting.
I had followed this tutorial 
https://perezprogramming.com/blog/deploy-mezzanine-to-ubuntu-14-server-on-digitalocean-with-fabric/

However, i previously had a local mezzanine site so i had to create  new 
role (postgres) with a new database. The problem is that  i restarted the 
server a couple times and saw 

"Internal Server Error" on the frontend.

I went on to do 
sudo nginx -t

It said that everything was ok. I am confused.

On Sunday, September 24, 2017 at 2:40:11 AM UTC-2:30, francois lemestre 
wrote:
>
>
> Hi There, thanks for replying. Here is the error that i get. I kept 
> trying. My problem may be the fact that it tries to create a user that is 
> "coursofrancesco" which i neve actually tried to create but which in fact 
> is the name of the mezzanine project that i m trying to put online. 
>
> I first followed this 
> https://perezprogramming.com/blog/deploy-mezzanine-to-ubuntu-14-server-on-digitalocean-with-fabric/
>   
> regularly as is. It worked quite well but since i already developped my 
> website locally with the default sqlite, i could not use it. So i tried 
> using the existing dev.db database. I got an error as fabfile seems to 
> request a db with a password and tries to create a user somehow. So i 
> decide to just go on and start a brand new postgres db. Unlucky for the 
> past couple days. 
>
> Frustrated.
>
>
>
>
>
> On Sunday, September 24, 2017 at 12:47:21 AM UTC-2:30, Eduardo Rivas wrote:
>>
>> What happens when you run "fab deploy"?
>>
>> On 2017-09-23 12:07 PM, francois lemestre wrote:
>>
>>
>> hello there,
>>
>> i have developped my website locally and asap it was ready i decided to 
>> deploy it on Digitalocean. however, most of the tutorials i find, talk 
>> about creating a new project. but i don't want to create a new project 
>> because i already have the website and just want to deploy it. The big 
>> dilema is how do i that? Wher do i put my code. I had the fabfile setup 
>> like this 
>>
>> FABRIC = {
>> "DEPLOY_TOOL": "rsync",  # Deploy with "git", "hg", or "rsync"
>> "SSH_USER": "created_user",  # VPS SSH username
>> "HOSTS": ["digitalocean ip"],  # The IP address of your VPS
>> "DOMAINS": ALLOWED_HOSTS,  # Edit domains in ALLOWED_HOSTS
>> "REQUIREMENTS_PATH": "requirements.txt",  # Project's pip requirements
>> "LOCALE": "en_US.UTF-8",  # Should end with ".UTF-8"
>> "DB_PASS": "dbpass",  # Live database password
>> "ADMIN_PASS": "user_pass",  # Live admin user password
>> "SECRET_KEY": SECRET_KEY,
>> "NEVERCACHE_KEY": NEVERCACHE_KEY,
>> }
>>
>> I did not forget to add allowed hosts either. However, I just don't know 
>> where to put my existing project. Somebody help please, i m so frustrated.
>>
>> -- 
>> 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-use...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>

-- 
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.