[mezzanine-users] IPv6-only

2016-06-15 Thread Akhlaq Rao


I am testing my services on IPv6 only but it seems like I am missing a lot 
as no static working on IPv6-only networks. What do I need to do beside 
configuring nginx?


Please urgent help is required as I am at WWDC 2016 and this is one of the 
blocker before I can get my next release approved.


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: IPv6-only

2016-06-15 Thread Akhlaq Rao
I've resolved it, all I was missing the following two lines in my app nginx 
configurations.

listen [::]:80;
listen [::]:443 ssl;

Thanks

On Wednesday, June 15, 2016 at 12:18:58 PM UTC-7, Akhlaq Rao wrote:
>
> I am testing my services on IPv6 only but it seems like I am missing a lot 
> as no static working on IPv6-only networks. What do I need to do beside 
> configuring nginx?
>
>
> Please urgent help is required as I am at WWDC 2016 and this is one of the 
> blocker before I can get my next release approved.
>
>
> 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] Account activation email is not being sent to the users

2016-07-17 Thread Akhlaq Rao
Hello Ryan,

Thanks for the quick response, I am totally aware of spam blockers but the
problem was somewhere else as it did get resolved after restarting nginx. I
am not sure what was it but it worked.

Thanks
Akhlaq

On Jul 16, 2016 9:40 PM, "Ryne Everett" <ryneever...@gmail.com> wrote:

> If mailgun shows it as delivered then it was probably picked up by the
> user's spam blocker. I've seen this a lot from mailgun, presumably because
> their api's are often used for mass mailing.
>
> On Sat, Jul 16, 2016 at 8:19 PM, Akhlaq Rao <akhlaq@gmail.com> wrote:
>
>> It's a weird problem, I am stumped to find the starting point.
>>
>> I am using mezzanine Accounts feature, when a user signup I receive an
>> email that an account requires activation, when I activate the account user
>> doesn't get the email about account activation. I tried different email
>> addresses but none of them are receiving emails, when I use the same email
>> as ACCOUNTS_APPROVAL_EMAILS then I receive the email.
>>
>> The mailgun shows me the email was deleiverd but user never receive the
>> email. I tried mailgun API to send the email directly to different
>> addresses and it works fine, please help me to find the solution as I
>> already spent hours to find the problem.
>>
>> ACCOUNTS_ENABLED = True
>> ACCOUNTS_APPROVAL_REQUIRED = True
>> ACCOUNTS_VERIFICATION_REQUIRED = True
>>
>>
>> EMAIL_USE_TLS = True
>> EMAIL_HOST = 'smtp.mailgun.org'
>> EMAIL_HOST_USER = 'postmas...@mg.com'
>> EMAIL_HOST_PASSWORD = '...'
>> EMAIL_PORT = 587
>>
>> --
>> 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.
>

-- 
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] ngnix configurations overwritten

2016-06-28 Thread Akhlaq Rao
Yes, exactly I see it as the length of env.domains determines the value of
ssl_disable. Could you please help me to understand how to produce
ssl_disable = false by the following statement.

I am trying to set SSL so which ever way it produces true.

env.ssl_disabled = "#" if len(env.domains) > 1 else ""


*Thanks,*


On Tue, Jun 28, 2016 at 3:51 PM, Eduardo Rivas 
wrote:

> Check the fabfile. All environment variables are defined there. Some are
> taken directly from the FABRIC dictionary in settings, others are defined
> conditionally.
>
> The SSL variable depends on the amount of domains you have configured.
> However, most of the times I just remove it completely from the nginx
> template and just define my own SSL configuration.
>
> --
> 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] ngnix configurations overwritten

2016-06-28 Thread Akhlaq Rao
Everytime I deploy my project to DigitalOcean through Fabric, it over 
writes my (app).conf settings. I enabled SSL through settings then after 
deployment I see the SSL is all commented out.  What could be wrong?

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] ngnix configurations overwritten

2016-06-28 Thread Akhlaq Rao
Hi Rivas,

I am directly modifying the file on server, I have no clue how do I use the
template because I can't find it in my project. Any idea where do I find
the template for nginx?

Thanks.

On Tue, Jun 28, 2016 at 3:24 PM, Eduardo Rivas 
wrote:

> Are you applying your changes to the nginx template in your repo? The idea
> with Fabric is that you edit all configuration files in the included
> templates instead of doing it directly on the server.
>
> --
> 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] ngnix configurations overwritten

2016-06-28 Thread Akhlaq Rao
Ok, great explanation. I have a very clear view now how things are working
on Fabric side.

I really appreciated your help.

Thanks alot!

On Tue, Jun 28, 2016 at 4:19 PM, Eduardo Rivas 
wrote:

> Sure, I hope this clears it up:
>
> The idea is that the SSL cert should only be used when the site is being
> accessed through a single domain (because the cheapest and most common
> certs are single-domain anyways). For that reason, the ssl_disabled
> environment variable depends on the length of env.domains (which is just
> settings.FABRIC["DOMAINS"]).
>
> env.ssl_disabled is not a boolean, instead if just toggles between "#" and
> the empty string. The # is what comments-out the SSL settings in the nginx
> template.
>
> In other words, if you want enable SSL make sure you have only one domain
> listed in settings.FABRIC["DOMAINS"]. You'll also have to make sure you've
> pointed your nginx conf to the location of your certificate and key.
>
> I previously suggested that you simply overwrite the whole SSL
> configuration in the nginx template because it sounded like you already had
> a working implementation in the server, so you could have used that.
>
>
> --
> 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] Rich Text Page insert image/link source is blank.

2017-01-22 Thread Akhlaq Rao
Hello everyone,

I am wondering if anyone else is experiencing this issue. I've attached a 
screenshot please have a look. I can't insert an image in the Text Rich 
Page Editor as the image picker/insert link is unable to connect with the 
source.


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: Rich Text Page insert image/link source is blank.

2017-01-22 Thread Akhlaq Rao
It works in development mode but it doesn't work in production.

Thanks

On Sunday, January 22, 2017 at 4:47:20 PM UTC-5, Akhlaq Rao wrote:
>
> Hello everyone,
>
> I am wondering if anyone else is experiencing this issue. I've attached a 
> screenshot please have a look. I can't insert an image in the Text Rich 
> Page Editor as the image picker/insert link is unable to connect with the 
> source.
>
>
> <https://lh3.googleusercontent.com/-ImBojiYX-GU/WIUnienl3NI/GEg/eKeWVzTBzUoFZhaTb6mFQDaIfxWy-_h_gCLcB/s1600/Screen%2BShot%2B2017-01-22%2Bat%2B4.39.53%2BPM.png>
> 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] Re: Rich Text Page insert image/link source is blank.

2017-01-23 Thread Akhlaq Rao
Thanks Melvyn,

If I run the development server with DEBUG = False then none of the statics
work. Hence, I don't even see the editor to upload to media library. I am
not sure where to look for the errors as I've tried nginx logs but it
doesn't show anything.

Thanks.

On Mon, Jan 23, 2017 at 9:08 AM, Melvyn Sopacua <m.r.sopa...@gmail.com>
wrote:

> Does it work in development mode with DEBUG=False?
>
>
>
> Showing network traffic errors would probably also help you find the issue.
>
>
>
> On Sunday 22 January 2017 18:20:36 Akhlaq Rao wrote:
>
> > It works in development mode but it doesn't work in production.
>
> >
>
> > Thanks
>
> >
>
> > On Sunday, January 22, 2017 at 4:47:20 PM UTC-5, Akhlaq Rao wrote:
>
> > > Hello everyone,
>
> > >
>
> > > I am wondering if anyone else is experiencing this issue. I've
>
> > > attached a screenshot please have a look. I can't insert an image
>
> > > in the Text Rich Page Editor as the image picker/insert link is
>
> > > unable to connect with the source.
>
> > >
>
> > >
>
> > > <https://lh3.googleusercontent.com/-ImBojiYX-GU/WIUnienl3NI/
>
> > > GEg/eKeWVzTBzUoFZhaTb6mFQDaIfxWy-_h_gCLcB/s1600/Screen%2BShot%2B2017
>
> > > -01-22%2Bat%2B4.39.53%2BPM.png> Thanks
>
>
>
> --
>
> Melvyn Sopacua
>
> --
> 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] staff member unable to login to admin

2017-01-28 Thread Akhlaq Rao
Create super user programmatically.

AR

On Jan 28, 2017 7:45 PM, "CJWalther"  wrote:

> Hi
>
> This is a brand new mezzanine installation (4.2.2 und Ubuntu 16.04). When
> I give staff status to  a newly created user, I get
>
> You don't have permission to access the admin for this site.
>
> Site permissions are identical to the account which was created at
> installation time (127.0.0.1:8000)
>
> Finally I want to give external authors access to the blog interface only.
>
> Any help/hints/tips are welcome! TIA!
>
>
>
> --
> 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] staff member unable to login to admin

2017-01-28 Thread Akhlaq Rao
Sorry I miss interpreted, did you select the site while creating this user?

On Jan 28, 2017 8:02 PM, "CJWalther" <cjwalt...@gmail.com> wrote:

How would creating super user programmatically affect accounts with staff
privilege? Any how would I do this anyway?


On Sunday, January 29, 2017 at 1:53:07 AM UTC+1, Akhlaq Rao wrote:

> Create super user programmatically.
>
> AR
>
> On Jan 28, 2017 7:45 PM, "CJWalther" <cjwa...@gmail.com> wrote:
>
>> Hi
>>
>> This is a brand new mezzanine installation (4.2.2 und Ubuntu 16.04). When
>> I give staff status to  a newly created user, I get
>>
>> You don't have permission to access the admin for this site.
>>
>> Site permissions are identical to the account which was created at
>> installation time (127.0.0.1:8000)
>>
>> Finally I want to give external authors access to the blog interface only.
>>
>> Any help/hints/tips are welcome! TIA!
>>
>>
>>
>> --
>> 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] Live Demo Code

2016-10-08 Thread Akhlaq Rao
Thanks Stephen, Ed helped me good. I was interested to see what's inside
the Shop app and how all these components are working together.

Akhlaq

On Sat, Oct 8, 2016 at 2:09 AM, Stephen McDonald <st...@jupo.org> wrote:

> FYI the source is available here: https://github.com/
> stephenmcd/mezzanine.jupo.org
>
> As Ed said it's mostly just default Mezzanine/Cartridge - there are a few
> custom bits in the project for the homepage, sites gallery and the demo
> user and content.
>
> On Sat, Oct 8, 2016 at 12:42 PM, Akhlaq Rao <akhlaq@gmail.com> wrote:
>
>> exactly what I was looking for.
>>
>> Thanks!
>>
>> On Fri, Oct 7, 2016 at 5:36 PM, Eduardo Rivas <jerivasmel...@gmail.com>
>> wrote:
>>
>>> I think it's just a Mezzanine + Cartridge project with the demo content
>>> installed. You can get the same with:
>>>
>>> pip install mezzanine cartridge
>>> mezzanine-project -a cartridge project_name
>>> cd project_name
>>> python manage.py createdb --noinput
>>> python manage.py runserver
>>>
>>>
>>> --
>>> 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.
>>
>
>
>
> --
> 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.
>

-- 
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] Live Demo Code

2016-10-07 Thread Akhlaq Rao
Does anybody know where I can find the Live Demo Code if it's open source?

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] Live Demo Code

2016-10-07 Thread Akhlaq Rao
exactly what I was looking for.

Thanks!

On Fri, Oct 7, 2016 at 5:36 PM, Eduardo Rivas 
wrote:

> I think it's just a Mezzanine + Cartridge project with the demo content
> installed. You can get the same with:
>
> pip install mezzanine cartridge
> mezzanine-project -a cartridge project_name
> cd project_name
> python manage.py createdb --noinput
> python manage.py runserver
>
>
> --
> 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] Cartrige custom shipping by country

2016-11-04 Thread Akhlaq Rao
Thanks a lot Danny, is there a good example about how to set the shipping
rules based on country?

On Fri, Nov 4, 2016 at 7:12 PM, Danny <molo...@gmail.com> wrote:

> On 5/11/2016 4:18 AM, Akhlaq Rao wrote:
>
> Hello Danny,
>
> I am not seeing these options when creating a variation, all I see the
> colour and size, do you now how do I enable these variations?
>
> - Product Variations now have weight, and boolean "pickup
> available"/"shipping available" options
>
> Thanks,
> Akhlaq
>
>
> In my ProductVariation  model, I've added these as fields. They are not
> product options (which is what colour/size are in the default settings).
> When you edit the details on a variation, you can add things like price,
> sale price etc; What I've done is add weight, pickup available and shipping
> available as other fields there.
>
> https://gist.github.com/molokov/36ab544df43efb224719d300761612
> a4#file-models-py-L8
>
> If all you want to do is add shipping rules based on country, you don't
> need these fields - I just have them because we sell some items that are
> "virtual"
> (e.g. tickets) that have no weight; and we have other items that can only
> be picked up (and never shipped).
>
> Seeya. Danny.
>
>
>
>
> On Thu, Nov 3, 2016 7:31 PM, Danny molo...@gmail.com wrote:
>
>> On 4/11/2016 5:31 AM, akos1234 wrote:
>>
>> Hello everyone,
>>
>> I am trying to attempt to create the shipping for my site.
>>
>> I was looking at this post -
>>
>> http://mezzanine-users.narkive.com/AOk7Y6Kl/cartrige-
>> custom-shipping-by-country-and-product-category
>>
>> which I thought was at the right track. I need to set shipping cost for
>> countries as well as different cost for quantity.
>>
>> If more than 5 items bought, the calculation of shipping would cost more
>> than one item.
>>
>> However,  Melvyn Sopacua
>>
>> *su*ggested something I did not quiet understand.
>>
>> here as quoted -
>>
>> If this is the extent of your shipping rules, you may get away with this
>> approach. From experience with other shopping carts, I highly suggest you
>> implement a rule-based approach as opposed to a property approach.
>> Approach like an email filter:
>> - You define a state formulated by a set of conditions
>> - Which result in one or more actions
>> - And has post-processing flags, like "stop further rule processing if
>> used"
>>
>> The implementation is more complex, but the resulting flexibility is
>> worth it
>> and much of the code can be reused for different types of business logic,
>> like
>> follow-up emails, discounts and available payment methods:
>> - Send a "please review our product" reminder, if customer has not
>> reviewed
>> and has received product x days ago.
>> - Give 10% cart discount to customers who have spent at least x ammount
>> last
>> year and don't apply any other cart discount rules
>> - Offer "Pay within 30 days" payment method only to customers of the
>> customer
>> group "B2B" with credit limit > order ammount
>> - Don't offer 24 hour delivery if shipper api qualifies customer address
>> as
>> 'rural'
>>
>> My 2c.
>> --
>> Has anyone done the shipping and is it possible to view the code?
>>
>>
>> I've got some custom shipping rules in my variation of Cartridge (along
>> with a number of other changes).
>> I've tried to summarise all the shipping rule related changes in this
>> gist:
>> https://gist.github.com/molokov/36ab544df43efb224719d300761612a4
>>
>> Essentially:
>> - Product Variations now have weight, and boolean "pickup
>> available"/"shipping available" options
>> - There's a ShippingRule model which allows you to define the rules
>> within admin.
>>   The rules define a) a weight range, b) whether you care about the
>> pickup/shipping options, and c) a country regexp - and a corresponding
>> price. The order of the rules is important.
>> - Users are presented with valid shipping options in a drop down during
>> the payment step of checkout (after entering their shipping address). If
>> there's no matching rule, an error will be shown.
>>
>> What I have is probably beyond what you need, and as you can see I've
>> touched the code in a lot of places (and mind you, this was over a year
>> ago, so my cartridge fork isn't quite up to date with the latest master),
>> but hopefully it will point you in the right direction.
>>
>> The 

[mezzanine-users] TypeError at /shop/invoice/#/

2016-10-23 Thread Akhlaq Rao

I am seeing this error when clicking on the link on Order Complete page.



TypeError at /shop/invoice/4/

dict expected at most 1 arguments, got 3

Request Method: GET
Request URL: https://couture92.com/shop/invoice/4/
Django Version: 1.10.2
Exception Type: TypeError
Exception Value: 

dict expected at most 1 arguments, got 3

Exception Location: 
/home/kash/workspace/environments/mez4venv/couture92/local/lib/python2.7/site-packages/django/template/context.py
 
in __init__, line 18
Python Executable: 
/home/kash/workspace/environments/mez4venv/couture92/bin/python
Python Version: 2.7.12





-- 
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] mezzanine.accounts

2016-10-24 Thread Akhlaq Rao
As soon as I uncomment the mezzanine.accounts app I see the following 
error. Is this bug reported?

django.urls.exceptions.NoReverseMatch: 'rest_framework' is not a registered 
namespace

Unhandled exception in thread started by .wrapper at 0x10951abf8>
Traceback (most recent call last):
  File 
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/django/urls/base.py",
 
line 77, in reverse
extra, resolver = resolver.namespace_dict[ns]
KeyError: 'rest_framework'

  File 
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/mezzanine/accounts/urls.py",
 
line 29, in 
url("^%s%s$" % (LOGIN_URL.strip("/"), _slash),
  File 
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/django/utils/functional.py",
 
line 111, in __wrapper__
res = func(*self.__args, **self.__kw)
  File 
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/django/urls/base.py",
 
line 87, in reverse
raise NoReverseMatch("%s is not a registered namespace" % key)

django.urls.exceptions.NoReverseMatch: 'rest_framework' is not a registered 
namespace

-- 
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] TypeError at /shop/invoice/#/

2016-10-24 Thread Akhlaq Rao
Thanks Ryne, I will wait for the release. Meanwhile, is there a way to 
fetch it or should I fix it in the shop app?.

On Monday, October 24, 2016 at 1:15:13 AM UTC-4, Ryne Everett wrote:
>
> See https://github.com/stephenmcd/cartridge/pull/306. (Not yet released.)
>
> On 10/24/2016 12:42 AM, Akhlaq Rao wrote:
>
> I am seeing this error when clicking on the link on Order Complete page.
>
> TypeError at /shop/invoice/4/
>
> dict expected at most 1 arguments, got 3
>
> Request Method: GET
> Request URL: https://couture92.com/shop/invoice/4/
> Django Version: 1.10.2
> Exception Type: TypeError
> Exception Value: 
>
> dict expected at most 1 arguments, got 3
>
> Exception Location: 
> /home/kash/workspace/environments/mez4venv/couture92/local/lib/python2.7/site-packages/django/template/context.py
>  
> in __init__, line 18
> Python Executable: 
> /home/kash/workspace/environments/mez4venv/couture92/bin/python
> Python Version: 2.7.12 
>
> -- 
> 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: OAUTH2_PROVIDER (mezzanine-api)

2016-10-21 Thread Akhlaq Rao
I got it working, the order matters I guess.

try:
from mezzanine_api.settings import *
except ImportError:
pass


OAUTH2_PROVIDER = {
'ALLOWED_REDIRECT_URI_SCHEMES': ['http', 'https', 'couture92'],
}


On Friday, October 21, 2016 at 6:22:15 PM UTC-4, Akhlaq Rao wrote:
>
> Hi Guys, Does anybody know if I can override OAUTH2_PROVIDER {} settings 
> into my app's settings? I see these settings being used in mezzanine-api 
> settings from Django oauth toolkit. I would like to add a custom uri to 
> 'ALLOWED_REDIRECT_URI_SCHEMES': ['http', 'https', 'custom-scheme']
>
> 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: OAUTH2_PROVIDER (mezzanine-api)

2016-10-21 Thread Akhlaq Rao
I got it working, the order matters I guess.

try:
from mezzanine_api.settings import *
except ImportError:
pass


OAUTH2_PROVIDER = {
'ALLOWED_REDIRECT_URI_SCHEMES': ['http', 'https', 'custom-scheme'],
}


On Friday, October 21, 2016 at 6:22:15 PM UTC-4, Akhlaq Rao wrote:
>
> Hi Guys, Does anybody know if I can override OAUTH2_PROVIDER {} settings 
> into my app's settings? I see these settings being used in mezzanine-api 
> settings from Django oauth toolkit. I would like to add a custom uri to 
> 'ALLOWED_REDIRECT_URI_SCHEMES': ['http', 'https', 'custom-scheme']
>
> 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] Rich Text Page doesn't load Media Library

2016-10-18 Thread Akhlaq Rao
Hi,

When adding a rich text page and select insert/edit an image in the content 
area, the source doesn't load media library on the production server. It 
works fine on development server though. Am I missing something?


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 filter menu items

2016-11-22 Thread Akhlaq Rao
I am not sure how did you end up seeing both at the same time? it should be
either or depending on session status.
 





On Tue, Nov 22, 2016 3:40 PM, 1stnighth...@gmail.com
wrote:
I activated accounts app actually so I can  login/logout/signup of my website.
my problem is I don't want to show both login and logout items at the same time
on my website. Thanks,

On Tuesday, November 22, 2016 at 2:23:31 PM UTC-6, Akhlaq Rao wrote:


















 If I were you I would activate accounts app.
Akhlaq

 





On Tue, Nov 22, 2016 3:11 PM, 1stnig...@gmail.com
wrote:
I am very new to Mezzanine. Not sure this question was asked before or not but I
couldn't find if anyone had already asked maybe it's too simple or too obvious. 
I need a login and logout menu items on the home page so I created a Login and
Logout links through admin dashboard via the Add dropdownlist box. After that,
the two menu items are showing in my home page. Now what I wanted to do is when
a user is not logged in, the home page only shows login menu there; after a user
is logged in, the "login" menu changes to "Logout".  Also I need a "profile"
menu shows up when a user is logged in. 

Thank you!


-- 
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] how to filter menu items

2016-11-22 Thread Akhlaq Rao
These are the only two states I see on my account page.
Screen Shot 2016-11-22 at 4.17.50 PM.png 15KB
 Download



 Screen Shot 2016-11-22 at 4.17.42 PM.png 16KB
 Download



 





On Tue, Nov 22, 2016 4:17 PM, Akhlaq Rao akhlaq@gmail.com
wrote:
I am not sure how did you end up seeing both at the same time? it should be
either or depending on session status.
 





On Tue, Nov 22, 2016 3:40 PM, 1stnighth...@gmail.com
wrote:
I activated accounts app actually so I can  login/logout/signup of my website.
my problem is I don't want to show both login and logout items at the same time
on my website. Thanks,

On Tuesday, November 22, 2016 at 2:23:31 PM UTC-6, Akhlaq Rao wrote:


















 If I were you I would activate accounts app.
Akhlaq

 





On Tue, Nov 22, 2016 3:11 PM, 1stnig...@gmail.com
wrote:
I am very new to Mezzanine. Not sure this question was asked before or not but I
couldn't find if anyone had already asked maybe it's too simple or too obvious. 
I need a login and logout menu items on the home page so I created a Login and
Logout links through admin dashboard via the Add dropdownlist box. After that,
the two menu items are showing in my home page. Now what I wanted to do is when
a user is not logged in, the home page only shows login menu there; after a user
is logged in, the "login" menu changes to "Logout".  Also I need a "profile"
menu shows up when a user is logged in. 

Thank you!


-- 
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] how to filter menu items

2016-11-22 Thread Akhlaq Rao
If I were you I would activate accounts app.
Akhlaq
 





On Tue, Nov 22, 2016 3:11 PM, 1stnighth...@gmail.com
wrote:
I am very new to Mezzanine. Not sure this question was asked before or not but I
couldn't find if anyone had already asked maybe it's too simple or too obvious. 
I need a login and logout menu items on the home page so I created a Login and
Logout links through admin dashboard via the Add dropdownlist box. After that,
the two menu items are showing in my home page. Now what I wanted to do is when
a user is not logged in, the home page only shows login menu there; after a user
is logged in, the "login" menu changes to "Logout".  Also I need a "profile"
menu shows up when a user is logged in. 

Thank you!


-- 
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] Re: Extra model fields at Mezzanine's derived package ?

2016-11-16 Thread Akhlaq Rao

Hi Ryne,
that would be a great help!
Thanks






On Wed, Nov 16, 2016 11:21 AM, Ryne Everett ryneever...@gmail.com
wrote:




I'm aware of this option, but it is a dictionary with application name > as a

key, right ? How can I tell Django to look for /cartridge.shop/ > migrations
both at original path and my extension package ?

In this case the application name is just /shop/. After setting up
MIGRATION_MODULES, your first run of `makemigrations` will squash the existing
migrations into one file and your extension package will be the only place
django looks for /shop/ migrations from now on. This means you'll need to ship
any future migrations in cartridge yourself.




I'm not sure what you're thinking on this, but I would document how to make the
necessary changes to EXTRA_MODEL_FIELDS and MIGRATION_MODULES as part of the
installation process rather than modifying them in your app.




--

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] Cartrige custom shipping by country

2016-11-04 Thread Akhlaq Rao

Hello Danny,
I am not seeing these options when creating a variation, all I see the colour
and size, do you now how do I enable these variations?
- Product Variations now have weight, and boolean "pickup available"/"shipping
available" options
Thanks,Akhlaq






On Thu, Nov 3, 2016 7:31 PM, Danny molo...@gmail.com
wrote:
On 4/11/2016 5:31 AM, akos1234 wrote:
Hello everyone,

I am trying to attempt to create the shipping for my site.

I was looking at this post -

http://mezzanine-users.narkive.com/AOk7Y6Kl/cartrige-custom-shipping-by-country-and-product-category

which I thought was at the right track. I need to set
shipping cost for countries as well as different cost for
quantity.

If more than 5 items bought, the calculation of shipping
would cost more than one item.

However,Melvyn Sopacua

suggested something I
did not quiet understand.

here as quoted -

If this is
the extent of your shipping rules, you may get away with
this
approach. From
experience with other shopping carts, I highly suggest you
implement a rule-based
approach as opposed to a property approach.
Approach like an email
filter:
- You define a state
formulated by a set of conditions
- Which result in one
or more actions
- And has
post-processing flags, like "stop further rule processing if
used"

The implementation is
more complex, but the resulting flexibility is worth it
and much of the code
can be reused for different types of business logic, like
follow-up emails,
discounts and available payment methods:
- Send a "please review
our product" reminder, if customer has not reviewed
and has received
product x days ago.
- Give 10% cart
discount to customers who have spent at least x ammount last
year and don't apply
any other cart discount rules
- Offer "Pay within 30
days" payment method only to customers of the customer
group "B2B" with credit
limit > order ammount
- Don't offer 24 hour
delivery if shipper api qualifies customer address as
'rural'

My 2c.
--
Has anyone done the shipping and is it
possible to view the code?


I've got some custom shipping rules in my variation of Cartridge
(along with a number of other changes).
I've tried to summarise all the shipping rule related changes in
this gist:
https://gist.github.com/molokov/36ab544df43efb224719d300761612a4

Essentially:
- Product Variations now have weight, and boolean "pickup
available"/"shipping available" options
- There's a ShippingRule model which allows you to define the rules
within admin.
The rules define a) a weight range, b) whether you care about the
pickup/shipping options, and c) a country regexp - and a
corresponding price. The order of the rules is important.
- Users are presented with valid shipping options in a drop down
during the payment step of checkout (after entering their shipping
address). If there's no matching rule, an error will be shown.

What I have is probably beyond what you need, and as you can see
I've touched the code in a lot of places (and mind you, this was
over a year ago, so my cartridge fork isn't quite up to date with
the latest master), but hopefully it will point you in the right
direction.

The changes to checkout.py (especially
shippingrule_billship_handler) and models.py/admin.py are probably
the key things you may need.

Hope this helps a little.

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.

--
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] I'm not able to install Cartridge

2016-10-11 Thread Akhlaq Rao

try to install bleach.






On Tue, Oct 11, 2016 8:53 AM, ahmad almashni ahmady...@gmail.com
wrote:
Hello Everyone ,I've a problem installing cartridge inside a virtualenvI've
installed Mezzanine and now inside a Mezzanine project I'm trying to install
cartridge :
pip install -U cartridge 




but an error rises every time :

Using  cashed html151lib-0.9.tar.gz
complete output from  command python setup.py egg_info:
html151lib requires setuptools version 18.5  or  above;  please upgrade before
installing (  you have 1.1.6)
-
command "python setup.py egg_info"  faild with  error code 1  in  c:\users\ahmad
\appdate\local\temp\pip-build\8zqfw9\html151lib\
I've tried to update setup_tools but it doesn't get updated ...I need your help
, Thanks in Advance

--
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] mezzanine.core.middleware.SSLRedirectMiddleware Depricated 1600?

2016-10-13 Thread Akhlaq Rao
Hi Ryne,
I totally get it, but if I do not useSSLRedirectMiddleware then I don't see SSL
Enable form in the Admin Settings. Do you know how do I enable SSL without
usingSSLRedirectMiddleware? if I go to my frontend nginx all the SSL related
entries are commented out.
server {
listen 80;    # listen 443 ssl;    server_name shop.couture92.com
shop.couture92.com.;    client_max_body_size 10M;    keepalive_timeout    15;   
error_log /home/admin/logs/couture92_error_nginx.log info;
# ssl_certificate      conf/couture92.crt;    # ssl_certificate_key 
conf/couture92.key;    # ssl_session_cache    shared:SSL:10m;    #
ssl_session_timeout  10m;

Thanks, your help much appreciated.
 





On Thu, Oct 13, 2016 10:44 AM, Ryne Everett ryneever...@gmail.com
wrote:
Whoops. I just pushed a fix for that bug.

However, you still shouldn't be using that middleware. If you're going to use an
SSL middleware, use django's (
https://docs.djangoproject.com/en/1.10/ref/middleware/#module-django.middleware.security
). However, my recommendation is to handle the redirect in the frontend server
(nginx, apache, etc) instead.

On Thu, Oct 13, 2016 at 12:55 AM, Akhlaq Rao <akhlaq@gmail.com>  wrote:
If it's deprecated then how do we enable SSL now? when I enable it I get the
following error:
unhandled exception in thread started by .wrapper
at 0x10ff97950>Traceback (most recent call last):  File
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/
python3.5/site-packages/django/utils/autoreload.py", line 226, in wrapper   
fn(*args, **kwargs)  File "/Users/kashfey/Documents/Kash/Development/Webservice/
mezzanine/couture92/lib/python3.5/site-packages/mezzanine/core/management/
commands/runserver.py", line 163, in inner_run    super(Command,
self).inner_run(*args, **kwargs)  File "/Users/kashfey/Documents/
Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/
django/core/management/commands/runserver.py", line 142, in inner_run    handler
= self.get_handler(*args, **options)  File "/Users/kashfey/Documents/
Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/
mezzanine/core/management/commands/runserver.py", line 166, in get_handler   
handler = super(Command, self).get_handler(*args, **options)  File
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/
python3.5/site-packages/django/contrib/staticfiles/
management/commands/runserver.py", line 27, in get_handler    handler =
super(Command, self).get_handler(*args, **options)  File
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/
python3.5/site-packages/django/core/management/commands/runserver.py", line 64,
in get_handler    return get_internal_wsgi_application()  File
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/
python3.5/site-packages/django/core/servers/basehttp.py", line 46, in
get_internal_wsgi_application    return get_wsgi_application()  File
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/
python3.5/site-packages/django/core/wsgi.py", line 14, in get_wsgi_application 
  return WSGIHandler()  File "/Users/kashfey/Documents/
Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/
django/core/handlers/wsgi.py", line 153, in __init__    self.load_middleware() 
File "/Users/kashfey/Documents/Kash/Development/Webservice/
mezzanine/couture92/lib/python3.5/site-packages/django/core/handlers/base.py",
line 58, in load_middleware    mw_instance = mw_class()TypeError: __init__()
missing 1 required positional argument: 'get_response'


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

-- 
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] mezzanine.core.middleware.SSLRedirectMiddleware Depricated 1600?

2016-10-13 Thread Akhlaq Rao
ok so nginx template for SSL entries no good anymore, were they directly
connected to SSLRedirectMiddleWare?
Thanks,A
 





On Thu, Oct 13, 2016 11:23 AM, Ryne Everett ryneever...@gmail.com
wrote:
SSLRedirectMiddleware would not solve that problem, all it does is redirect to
https.

The way I handle this is having a line like `   return 301
https://$host$request_uri;
` in my server block listening on port 80, and another server block listening on
port 443 that actually proxies to django.

On Thu, Oct 13, 2016 at 11:18 AM, Akhlaq Rao <akhlaq@gmail.com>  wrote:
Hi Ryne,
I totally get it, but if I do not useSSLRedirectMiddleware then I don't see SSL
Enable form in the Admin Settings. Do you know how do I enable SSL without
usingSSLRedirectMiddleware? if I go to my frontend nginx all the SSL related
entries are commented out.
server {
listen 80;    # listen 443 ssl;    server_name shop.couture92.com  
shop.couture92.com.;    client_max_body_size 10M;    keepalive_timeout    15;   
error_log /home/admin/logs/couture92_error_nginx.log info;
# ssl_certificate      conf/couture92.crt;    # ssl_certificate_key 
conf/couture92.key;    # ssl_session_cache    shared:SSL:10m;    #
ssl_session_timeout  10m;

Thanks, your help much appreciated.

 





On Thu, Oct 13, 2016 10:44 AM, Ryne Everett ryneever...@gmail.com
wrote:
Whoops. I just pushed a fix for that bug.

However, you still shouldn't be using that middleware. If you're going to use an
SSL middleware, use django's (
https://docs.djangoproject.com/en/1.10/ref/middleware/#module-django.middleware.
security). However, my recommendation is to handle the redirect in the frontend
server (nginx, apache, etc) instead.

On Thu, Oct 13, 2016 at 12:55 AM, Akhlaq Rao <akhlaq@gmail.com>  wrote:
If it's deprecated then how do we enable SSL now? when I enable it I get the
following error:
unhandled exception in thread started by .wrapper
at 0x10ff97950>Traceback (most recent call last):  File
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzan
ine/couture92/lib/python3.5/site-packages/django/utils/autoreload.py", line 226,
in wrapper    fn(*args, **kwargs)  File "/Users/kashfey/Documents/Kash
/Development/Webservice/mezzanine/couture92/lib/python3.5/
site-packages/mezzanine/core/management/commands/runserver.py", line 163, in
inner_run    super(Command, self).inner_run(*args, **kwargs)  File
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzan
ine/couture92/lib/python3.5/site-packages/django/core/
management/commands/runserver.py", line 142, in inner_run    handler =
self.get_handler(*args, **options)  File "/Users/kashfey/Documents/Kash
/Development/Webservice/mezzanine/couture92/lib/python3.5/
site-packages/mezzanine/core/management/commands/runserver.py", line 166, in
get_handler    handler = super(Command, self).get_handler(*args, **options) 
File "/Users/kashfey/Documents/Kash/Development/Webservice/mezzan
ine/couture92/lib/python3.5/site-packages/django/contrib/staticfiles/management/
commands/runserver.py", line 27, in get_handler    handler = super(Command,
self).get_handler(*args, **options)  File "/Users/kashfey/Documents/Kash
/Development/Webservice/mezzanine/couture92/lib/python3.5/
site-packages/django/core/management/commands/runserver.py", line 64, in
get_handler    return get_internal_wsgi_application()  File
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzan
ine/couture92/lib/python3.5/site-packages/django/core/servers/basehttp.py", line
46, in get_internal_wsgi_application    return get_wsgi_application()  File
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzan
ine/couture92/lib/python3.5/site-packages/django/core/wsgi.py", line 14, in
get_wsgi_application    return WSGIHandler()  File
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzan
ine/couture92/lib/python3.5/site-packages/django/core/handlers/wsgi.py", line
153, in __init__    self.load_middleware()  File "/Users/kashfey/Documents/Kash
/Development/Webservice/mezzanine/couture92/lib/python3.5/
site-packages/django/core/handlers/base.py", line 58, in load_middleware   
mw_instance = mw_class()TypeError: __init__() missing 1 required positional
argument: 'get_response'


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


-- 
You received this message because you are subscribed to the Go

Re: [mezzanine-users] mezzanine.core.middleware.SSLRedirectMiddleware Depricated 1600?

2016-10-13 Thread Akhlaq Rao
oh ok got you.
Thanks
 





On Thu, Oct 13, 2016 11:47 AM, Ryne Everett ryneever...@gmail.com
wrote:
If you want your configuration to more closely resemble the default nginx
template you can uncomment those ssl lines and use the django ssl middleware
instead.

On Thu, Oct 13, 2016 at 11:33 AM, Akhlaq Rao <akhlaq@gmail.com>  wrote:
ok so nginx template for SSL entries no good anymore, were they directly
connected to SSLRedirectMiddleWare?
Thanks,A

 





On Thu, Oct 13, 2016 11:23 AM, Ryne Everett ryneever...@gmail.com
wrote:
SSLRedirectMiddleware would not solve that problem, all it does is redirect to
https.

The way I handle this is having a line like `   return 301
https://$host$request_uri;
` in my server block listening on port 80, and another server block listening on
port 443 that actually proxies to django.

On Thu, Oct 13, 2016 at 11:18 AM, Akhlaq Rao <akhlaq@gmail.com>  wrote:
Hi Ryne,
I totally get it, but if I do not useSSLRedirectMiddleware then I don't see SSL
Enable form in the Admin Settings. Do you know how do I enable SSL without
usingSSLRedirectMiddleware? if I go to my frontend nginx all the SSL related
entries are commented out.
server {
listen 80;    # listen 443 ssl;    server_name shop.couture92.com  
shop.couture92.com.;    client_max_body_size 10M;    keepalive_timeout    15;   
error_log /home/admin/logs/couture92_error_nginx.log info;
# ssl_certificate      conf/couture92.crt;    # ssl_certificate_key 
conf/couture92.key;    # ssl_session_cache    shared:SSL:10m;    #
ssl_session_timeout  10m;

Thanks, your help much appreciated.

 





On Thu, Oct 13, 2016 10:44 AM, Ryne Everett ryneever...@gmail.com
wrote:
Whoops. I just pushed a fix for that bug.

However, you still shouldn't be using that middleware. If you're going to use an
SSL middleware, use django's (
https://docs.djangoproject.com/en/1.10/ref/middleware/#modu
le-django.middleware.security). However, my recommendation is to handle the
redirect in the frontend server (nginx, apache, etc) instead.

On Thu, Oct 13, 2016 at 12:55 AM, Akhlaq Rao <akhlaq@gmail.com>  wrote:
If it's deprecated then how do we enable SSL now? when I enable it I get the
following error:
unhandled exception in thread started by .wrapper
at 0x10ff97950>Traceback (most recent call last):  File
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzan
ine/couture92/lib/python3.5/site-packages/django/utils/autoreload.py", line 226,
in wrapper    fn(*args, **kwargs)  File "/Users/kashfey/Documents/Kash
/Development/Webservice/mezzanine/couture92/lib/python3.5/si
te-packages/mezzanine/core/management/commands/runserver.py", line 163, in
inner_run    super(Command, self).inner_run(*args, **kwargs)  File
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzan
ine/couture92/lib/python3.5/site-packages/django/core/manage
ment/commands/runserver.py", line 142, in inner_run    handler =
self.get_handler(*args, **options)  File "/Users/kashfey/Documents/Kash
/Development/Webservice/mezzanine/couture92/lib/python3.5/si
te-packages/mezzanine/core/management/commands/runserver.py", line 166, in
get_handler    handler = super(Command, self).get_handler(*args, **options) 
File "/Users/kashfey/Documents/Kash/Development/Webservice/mezzan
ine/couture92/lib/python3.5/site-packages/django/contrib/sta
ticfiles/management/commands/runserver.py", line 27, in get_handler    handler =
super(Command, self).get_handler(*args, **options)  File
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzan
ine/couture92/lib/python3.5/site-packages/django/core/manage
ment/commands/runserver.py", line 64, in get_handler    return
get_internal_wsgi_application()  File "/Users/kashfey/Documents/Kash
/Development/Webservice/mezzanine/couture92/lib/python3.5/si
te-packages/django/core/servers/basehttp.py", line 46, in
get_internal_wsgi_application    return get_wsgi_application()  File
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzan
ine/couture92/lib/python3.5/site-packages/django/core/wsgi.py", line 14, in
get_wsgi_application    return WSGIHandler()  File
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzan
ine/couture92/lib/python3.5/site-packages/django/core/handlers/wsgi.py", line
153, in __init__    self.load_middleware()  File "/Users/kashfey/Documents/Kash
/Development/Webservice/mezzanine/couture92/lib/python3.5/si
te-packages/django/core/handlers/base.py", line 58, in load_middleware   
mw_instance = mw_class()TypeError: __init__() missing 1 required positional
argument: 'get_response'


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

Re: [mezzanine-users] I'm not able to install Cartridge

2016-10-12 Thread Akhlaq Rao
I had to reinstall bleach to downgrade html5 lib. I am not sure if it will 
solve your problem but it won't hurt to give it a try.

pip install bleach

A

Sent from my iPhone

> On Oct 12, 2016, at 1:10 AM, ahmad almashni <ahmady...@gmail.com> wrote:
> 
> Hi , It's already installed and it still doesn't work . 
> 
>> On Tuesday, October 11, 2016 at 11:51:07 PM UTC+3, Akhlaq Rao wrote:
>> 
>> try to install bleach.
>> 
>> 
>> 
>> 
>> 
>>> On Tue, Oct 11, 2016 8:53 AM, ahmad almashni ahma...@gmail.com wrote:
>>> Hello Everyone , 
>>> I've a problem installing cartridge inside a virtualenv 
>>> I've installed Mezzanine and now inside a Mezzanine project I'm trying to 
>>> install cartridge : 
>>> 
>>> pip install -U cartridge 
>>> 
>>> 
>>> 
>>> but an error rises every time : 
>>> 
>>> 
>>> Using cashed html151lib-0.9.tar.gz
>>> complete output from command python setup.py egg_info:
>>> html151lib requires setuptools version 18.5 or above; 
>>> please upgrade before installing ( you have 1.1.6)
>>>-
>>> command "python setup.py egg_info" faild with error code 1 in 
>>> c:\users\ahmad\appdate\local\temp\pip-build\8zqfw9\html151lib\
>>> 
>>> I've tried to update setup_tools but it doesn't get updated ... 
>>> I need your help , Thanks in Advance
>>> -- 
>>> 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.


[mezzanine-users] mezzanine.core.middleware.SSLRedirectMiddleware Depricated 1600?

2016-10-12 Thread Akhlaq Rao
If it's deprecated then how do we enable SSL now? when I enable it I get 
the following error:

unhandled exception in thread started by .wrapper at 0x10ff97950>
Traceback (most recent call last):
  File 
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/django/utils/autoreload.py",
 
line 226, in wrapper
fn(*args, **kwargs)
  File 
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/mezzanine/core/management/commands/runserver.py",
 
line 163, in inner_run
super(Command, self).inner_run(*args, **kwargs)
  File 
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/django/core/management/commands/runserver.py",
 
line 142, in inner_run
handler = self.get_handler(*args, **options)
  File 
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/mezzanine/core/management/commands/runserver.py",
 
line 166, in get_handler
handler = super(Command, self).get_handler(*args, **options)
  File 
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/django/contrib/staticfiles/management/commands/runserver.py",
 
line 27, in get_handler
handler = super(Command, self).get_handler(*args, **options)
  File 
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/django/core/management/commands/runserver.py",
 
line 64, in get_handler
return get_internal_wsgi_application()
  File 
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/django/core/servers/basehttp.py",
 
line 46, in get_internal_wsgi_application
return get_wsgi_application()
  File 
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/django/core/wsgi.py",
 
line 14, in get_wsgi_application
return WSGIHandler()
  File 
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/django/core/handlers/wsgi.py",
 
line 153, in __init__
self.load_middleware()
  File 
"/Users/kashfey/Documents/Kash/Development/Webservice/mezzanine/couture92/lib/python3.5/site-packages/django/core/handlers/base.py",
 
line 58, in load_middleware
mw_instance = mw_class()
TypeError: __init__() missing 1 required positional argument: 'get_response'

-- 
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] I'm not able to install Cartridge

2016-10-14 Thread Akhlaq Rao

Please load full stack, what's your database Postgree?






On Fri, Oct 14, 2016 1:40 PM, ahmad almashni ahmady...@gmail.com
wrote:
Hi Kenneth ,Thanks for assistance ,I did the following :pip uninstall html5lib 
and thenpip install bleach 
then I tried to install Cartridge but the same problem came up again :command 
"python setup.py egg_info"  faild with  error code 1  in  c:\users\ahmad\appdate

\local\temp\pip-build\8zqfw9\html151lib\
I also install uninstall html5lib then install html5lib0.10 but Cartridge
couldn't be installed .
thank you

On Thursday, October 13, 2016 at 2:46:43 PM UTC+3, Kenneth Bolton wrote:Hi
Ahmad,
Can you show us what you tried? Saying, "it didn't work", is not an adequate
request for assistance.
It should be as simple as `pip uninstall html5` followed by `pip install
bleach`.
-ken
On Thu, Oct 13, 2016 at 5:16 AM, ahmad almashni <ahma...@gmail.com>  wrote:
Hi , I tried to reinstall bleach but it didnt work ,I don't know how to
downgrade html5 library . can you tell me how pleasethanks
On Wednesday, October 12, 2016 at 3:50:43 PM UTC+3, Akhlaq Rao wrote:I had to
reinstall bleach to downgrade html5 lib. I am not sure if it will solve your
problem but it won't hurt to give it a try.
pip install bleach
A

Sent from my iPhone
On Oct 12, 2016, at 1:10 AM, ahmad almashni <ahma...@gmail.com> wrote:

Hi , It's already installed and it still doesn't work .

On Tuesday, October 11, 2016 at 11:51:07 PM UTC+3, Akhlaq Rao wrote:


















try to install bleach.







On Tue, Oct 11, 2016 8:53 AM, ahmad almashni ahma...@gmail.com
wrote:
Hello Everyone ,I've a problem installing cartridge inside a virtualenvI've
installed Mezzanine and now inside a Mezzanine project I'm trying to install
cartridge :
pip install -U cartridge 




but an error rises every time :

Using  cashed html151lib-0.9.tar.gz
complete output from  command python setup.py egg_info:
html151lib requires setuptools version 18.5  or  above;  please upgrade before
installing (  you have 1.1.6)
-
command "python setup.py egg_info"  faild with  error code 1  in  c:\users\ahmad
\appdate\local\temp\pip-build\8zqfw9\html151lib\
I've tried to update setup_tools but it doesn't get updated ...I need your help
, Thanks in Advance

--
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-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] TypeError at /shop/invoice/#/

2017-01-01 Thread Akhlaq Rao
Thanks!

On Tuesday, October 25, 2016 at 12:40:58 AM UTC-4, Stephen McDonald wrote:
>
>
> http://stackoverflow.com/questions/13685920/install-specific-git-commit-with-pip
>
> On Tue, Oct 25, 2016 at 3:01 PM, Akhlaq Rao <akhla...@gmail.com 
> > wrote:
>
>> Thanks Ryne, I will wait for the release. Meanwhile, is there a way to 
>> fetch it or should I fix it in the shop app?.
>>
>> On Monday, October 24, 2016 at 1:15:13 AM UTC-4, Ryne Everett wrote:
>>>
>>> See https://github.com/stephenmcd/cartridge/pull/306. (Not yet 
>>> released.)
>>>
>>> On 10/24/2016 12:42 AM, Akhlaq Rao wrote:
>>>
>>> I am seeing this error when clicking on the link on Order Complete page.
>>>
>>> TypeError at /shop/invoice/4/
>>>
>>> dict expected at most 1 arguments, got 3
>>>
>>> Request Method: GET
>>> Request URL: https://couture92.com/shop/invoice/4/
>>> Django Version: 1.10.2
>>> Exception Type: TypeError
>>> Exception Value: 
>>>
>>> dict expected at most 1 arguments, got 3
>>>
>>> Exception Location: 
>>> /home/kash/workspace/environments/mez4venv/couture92/local/lib/python2.7/site-packages/django/template/context.py
>>>  
>>> in __init__, line 18
>>> Python Executable: 
>>> /home/kash/workspace/environments/mez4venv/couture92/bin/python
>>> Python Version: 2.7.12 
>>>
>>> -- 
>>> 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.
>>
>
>
>
> -- 
> 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] Disable/Change site admin tittle (MEZZANINE)

2017-03-21 Thread Akhlaq Rao
Hi Prasad,

You can do it through Site Settings in the Admin panel, just look through
for Site Title: property.

Thanks,
AR

On Tue, Mar 21, 2017 at 4:02 PM, Prasad Valleru  wrote:

> Hello
>
> How to disable admin tittle (MEZZANINE)
> In detail,  when i loggin as a admin , in that page left side corner top
> "MEZZANINE" title will be displayed.
> I want to disable/ change the title. could anyone help on this...
>
> Thanks
> BPV
>
> --
> 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.