Re: [mezzanine-users] Templating

2015-07-02 Thread automotiveace
Thanks, still can't seem to get it to work correctly. Spend a bit more time 
on it tomorrow and if I can't get it to work, will go with Angular's 
$interpolateProvider 
fix 
.
 
 I'm really only using Angular on one page right now, attempting to make my 
first SPA, but I need to user authentication on it and its included with 
Mezzanine.

On Thursday, July 2, 2015 at 6:25:34 PM UTC-4, Kenneth Bolton wrote:
>
> `{% load verbatim %}` should produce a template error. The `verbatim` tag 
> is built into Django and available in all of your templates, afaik.
>
> Make every reasonable effort to only include the loading of custom tags in 
> the templates that require them. Be kind to your future self!
>
> -ken
>
> On Thu, Jul 2, 2015 at 4:50 PM, > wrote:
>
>> Quick question.
>>
>> Can the Django tag {%load verbatim%} be on just the page I'm using 
>> Angular or should I put that on base.html?
>>
>>
>> On Thursday, July 2, 2015 at 3:45:46 PM UTC-4, automo...@gmail.com wrote:
>>>
>>> Yes, thank you! Its quick and easy for now and not too messy. I'm 
>>> reading on how I can change AngularJS's template tags to something of my 
>>> own choice via the $interpolateProvider.
>>>
>>> On Thursday, July 2, 2015 at 3:24:03 PM UTC-4, Kenneth Bolton wrote:

 Does the verbatim 
 
  
 templatetag do the trick for you?

 On Thu, Jul 2, 2015 at 3:20 PM,  wrote:

> How can I get Mezzanine and AngularJS to work nicely together since 
> they both use 
> {{ }}
>
> (double curly brackets) as their template tags? Any suggestions?
>
> -- 
> 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-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] Templating

2015-07-02 Thread Ken Bolton
`{% load verbatim %}` should produce a template error. The `verbatim` tag
is built into Django and available in all of your templates, afaik.

Make every reasonable effort to only include the loading of custom tags in
the templates that require them. Be kind to your future self!

-ken

On Thu, Jul 2, 2015 at 4:50 PM,  wrote:

> Quick question.
>
> Can the Django tag {%load verbatim%} be on just the page I'm using Angular
> or should I put that on base.html?
>
>
> On Thursday, July 2, 2015 at 3:45:46 PM UTC-4, automo...@gmail.com wrote:
>>
>> Yes, thank you! Its quick and easy for now and not too messy. I'm reading
>> on how I can change AngularJS's template tags to something of my own choice
>> via the $interpolateProvider.
>>
>> On Thursday, July 2, 2015 at 3:24:03 PM UTC-4, Kenneth Bolton wrote:
>>>
>>> Does the verbatim
>>> 
>>> templatetag do the trick for you?
>>>
>>> On Thu, Jul 2, 2015 at 3:20 PM,  wrote:
>>>
 How can I get Mezzanine and AngularJS to work nicely together since
 they both use
 {{ }}

 (double curly brackets) as their template tags? Any suggestions?

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

-- 
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] Templating

2015-07-02 Thread automotiveace
Quick question.

Can the Django tag {%load verbatim%} be on just the page I'm using Angular 
or should I put that on base.html?

On Thursday, July 2, 2015 at 3:45:46 PM UTC-4, automo...@gmail.com wrote:
>
> Yes, thank you! Its quick and easy for now and not too messy. I'm reading 
> on how I can change AngularJS's template tags to something of my own choice 
> via the $interpolateProvider.
>
> On Thursday, July 2, 2015 at 3:24:03 PM UTC-4, Kenneth Bolton wrote:
>>
>> Does the verbatim 
>> 
>>  
>> templatetag do the trick for you?
>>
>> On Thu, Jul 2, 2015 at 3:20 PM,  wrote:
>>
>>> How can I get Mezzanine and AngularJS to work nicely together since they 
>>> both use 
>>> {{ }}
>>>
>>> (double curly brackets) as their template tags? Any suggestions?
>>>
>>> -- 
>>> 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] Templating

2015-07-02 Thread automotiveace
Yes, thank you! Its quick and easy for now and not too messy. I'm reading 
on how I can change AngularJS's template tags to something of my own choice 
via the $interpolateProvider.

On Thursday, July 2, 2015 at 3:24:03 PM UTC-4, Kenneth Bolton wrote:
>
> Does the verbatim 
> 
>  
> templatetag do the trick for you?
>
> On Thu, Jul 2, 2015 at 3:20 PM, > wrote:
>
>> How can I get Mezzanine and AngularJS to work nicely together since they 
>> both use 
>> {{ }}
>>
>> (double curly brackets) as their template tags? Any suggestions?
>>
>> -- 
>> 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] Templating

2015-07-02 Thread Ken Bolton
Does the verbatim

templatetag do the trick for you?

On Thu, Jul 2, 2015 at 3:20 PM,  wrote:

> How can I get Mezzanine and AngularJS to work nicely together since they
> both use
> {{ }}
>
> (double curly brackets) as their template tags? Any suggestions?
>
> --
> 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] Templating

2015-07-02 Thread automotiveace
How can I get Mezzanine and AngularJS to work nicely together since they 
both use 
{{ }}

(double curly brackets) as their template tags? Any suggestions?

-- 
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] https or SSL redirect for whole site in Cartridge

2015-07-02 Thread vikraw
I chose the nginx approach and currently it is working fine. tweaked the 
nginx.conf for cipher and protocol settings to improve the security

On Thursday, July 2, 2015 at 4:05:42 AM UTC+5:30, Josh Cartmell wrote:
>
> I would redirect with nginx and then set SSL_FORCED_PREFIXES_ONLY, 
> https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/core/defaults.py#L440,
>  
> to False in your settings.py file.  That way Mezzanine won't try to 
> redirect away from SSL ever.
>
> Alternatively you could probably do this in your settings.py:
> SSL_FORCE_URL_PREFIXES = ('/',)
>
> Good luck!
>
> On Wed, Jul 1, 2015 at 2:11 PM, vikraw > 
> wrote:
>
>> I was trying to configure SSL redirect for whole site using nginx.conf 
>> but was running into errors "redirecting in ways that request will never be 
>> completed". After reading the mezzanine docs and django 
>> SECURE_PROXY_SSL_HEADER, I came with following way to enable SSL for whole 
>> site - the site pages are now being server over HTTPS but I am wary that it 
>> could creates big security holes as i change a default setting which is 
>> used in the SSLMiddleware logic by mezzanine. Here are my changes
>>
>> In my projects 'settings.py' - set SSL_FORCED_PREFIXES_ONLY = False
>>
>> modify 'nginx.conf' in deploy folder as follows
>>
>> add following server block
>> server {
>> listen 80;
>> return 301 https://%(domains_nginx)s$request_uri;
>> }
>>
>> modify default/provided server 
>> server {
>> ### listen 
>> 80;  
>>  
>> comment it out
>> listen 443 ssl;
>> proxy_set_headerX-Forwarded-Protocol
>> https;  set it to https
>> }
>>
>>
>> Approach - 2 - The "Recommended" way I saw was to add all of the major 
>> prefixes to following setting
>> SSL_FORCE_URL_PREFIXES 
>>SSL_ENABLED = True
>>
>> Any feedback on which one to use and why? I am not full aware of so many 
>> security options and protocols. I ran my site against QualSys - 
>> https://www.ssllabs.com/ssltest/analyze.html with the default 
>> fabric/cartridge deploy settings. The site gave a rating of C 
>>
>>
>>  -- 
>> 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.