Re: [mezzanine-users] Does Cartridge has customer center?

2014-10-13 Thread Wesley
Hi Stephen,
   Thanks for your reply.,
I got the place.

Wesley

在 2014年10月13日星期一UTC+8上午3时29分48秒,Stephen McDonald写道:
>
> Mezzanine has public user accounts with profiles via the 
> "mezzanine.accounts" app: 
>
> http://mezzanine.jupo.org/docs/user-accounts.html
>
> Cartridge extends it with the ability to view your past orders.
>
> On Mon, Oct 13, 2014 at 1:03 AM, Wesley > 
> wrote:
>
>> Hi guys,
>>   I setup a shop based on Mezzanine and Cartridge.
>> Is there any existing page like customer center, I mean, here customer 
>> who is buying anything from the shop can maintain his/her our profile,
>> for example, change password, email address, and also can see his/her own 
>> order history.
>>
>> I see I can develop such interface, just wanna if there is existing one 
>> integrated to Mezzanine/Cartridge.
>>
>> Thanks.
>> Wesley
>>
>> -- 
>> 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.
>>
>
>
>
> -- 
> Stephen McDonald
> http://jupo.org 
>

-- 
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] Dealing with a large number of pages

2014-10-13 Thread Stephen McDonald
PS: Here's the code I used for generating the page tree.

https://gist.github.com/stephenmcd/f0673790525f1c40d2ca

On Tue, Oct 14, 2014 at 6:55 AM, Stephen McDonald  wrote:

> I don't know of one, but I'll just counter one anecdote with another.
>
> I generated 1463 pages evenly spread (11 primary pages, each with 11
> children, which each have 11 children), and on my macbook air the admin
> interface takes about 6 seconds to render, the front-end which renders a
> full tree as well as some limited trees takes about 3 seconds.
>
> 90 seconds on your machine vs < 10 seconds on a consumer grade laptop
> seems unreasonable. What type of machine are you running on?
>
> You might also like to dig into some profiling tools, like
> django-debug-toolbar and pycallgraph, but be warned adding these will
> certainly make things slower, so don't be deceived.
>
>
>
> On Tue, Oct 14, 2014 at 2:16 AM, Jeff Heard 
> wrote:
>
>> Is there a mod that dynamically loads or paginates the pages section in
>> the admin?  I have 1559 pages and I always get a 504 timeout on rendering.
>> When I don’t, it still takes like a minute and a half to render the pages
>> admin menu...
>>
>> --
>> 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.
>>
>
>
>
> --
> Stephen McDonald
> http://jupo.org
>



-- 
Stephen McDonald
http://jupo.org

-- 
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] Dealing with a large number of pages

2014-10-13 Thread Stephen McDonald
I don't know of one, but I'll just counter one anecdote with another.

I generated 1463 pages evenly spread (11 primary pages, each with 11
children, which each have 11 children), and on my macbook air the admin
interface takes about 6 seconds to render, the front-end which renders a
full tree as well as some limited trees takes about 3 seconds.

90 seconds on your machine vs < 10 seconds on a consumer grade laptop seems
unreasonable. What type of machine are you running on?

You might also like to dig into some profiling tools, like
django-debug-toolbar and pycallgraph, but be warned adding these will
certainly make things slower, so don't be deceived.



On Tue, Oct 14, 2014 at 2:16 AM, Jeff Heard 
wrote:

> Is there a mod that dynamically loads or paginates the pages section in
> the admin?  I have 1559 pages and I always get a 504 timeout on rendering.
> When I don’t, it still takes like a minute and a half to render the pages
> admin menu...
>
> --
> 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.
>



-- 
Stephen McDonald
http://jupo.org

-- 
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] Help With Mezzanine/Django Filebrowser and Amazon S3 Integration?

2014-10-13 Thread Billy

I'm currently working on a mezzanine cartridge site and I'm trying to use 
Amazon S3 to serve large (200Mb+) digital download files. 

Has anyone had success with using Amazon S3 with Mezzanine/Django 
Filebrowser? I've been looking around all morning for some help and I can't 
seem to get filebrowser to upload files correctly to my S3 bucket. I 
continue to get an http error while trying to post uploads and I can't 
figure out what I'm missing.


A few things:

   - I can browse the files and select ones that I've manually uploaded to 
   S3 and they work fine.
   - I can upload files from non Mezzanine File Fields (IE: Product 
   Images), but I cannot get anything that uses 
   mezzanine.core.fields.Filefield to upload through Django-Filebrowser
   - I've tried django-storages default and s3boto backends as my 
   DEFAULT_FILE_STORAGE
   - I've tried a custom file storage backend that I found at the bottom of 
This 
   Post 
   - I do not want to serve my static files from Amazon S3, only media 
   uploads for my products such as images and downloadable files.
   
Has anyone had success getting filebrowser to correctly work with mezzanine 
and also host thumbnails?

Current settings.py:
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
AWS_S3_SECURE_URLS = True # use http instead of https
AWS_QUERYSTRING_AUTH = False # don't add complex authentication-related 
query parameters for requests
AWS_S3_ACCESS_KEY_ID = 'my_key' # enter your access key id
AWS_S3_SECRET_ACCESS_KEY = 'my_secret_key' # enter your secret access key
AWS_STORAGE_BUCKET_NAME = 'dev'
AWS_S3_CUSTOM_DOMAIN = 's3.amazonaws.com/%s' % AWS_STORAGE_BUCKET_NAME
S3_URL = 'https://s3.amazonaws.com/%s/' % AWS_STORAGE_BUCKET_NAME
MEDIA_URL = S3_URL

# MEDIA_ROOT = 'media/uploads'
FILEBROWSER_DIRECTORY = 'media/uploads'



S3 Privacy Settings (I have not created a user and group, I was just trying 
to get it working first):

{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:*",
"Resource": "arn:aws:s3:::luab/*"
}
]
}

Amazon S3 CORS Policy:


http://s3.amazonaws.com/doc/2006-03-01/";>

*
PUT
POST
GET
DELETE
3000
*



-- 
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] Dealing with a large number of pages

2014-10-13 Thread Jeff Heard
Is there a mod that dynamically loads or paginates the pages section in the
admin?  I have 1559 pages and I always get a 504 timeout on rendering.
When I don’t, it still takes like a minute and a half to render the pages
admin menu...

-- 
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] Custom menu in Mezzanine

2014-10-13 Thread Alexander Tyapkov
Good day to everybody!

There is an example about how to customize the mezzanine menu:

{% load pages_tags %}

{% for page in page_branch %}
{% if page.in_menu %}
{% if page.is_current_or_ascendant or not page.is_primary %}

{% if not page.is_primary %}
{{ page.title }}
{% endif %}
{% page_menu page %}

{% endif %}
{% endif %}
{% endfor %}


I am applying some styles to the root ul and don't want it to be shown when the 
list is empty.
Is there a way to check is with mezzanine?



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