[mezzanine-users] How to deploy using Fabric to RHEL server?

2016-09-29 Thread Sam Kingston
Colin, this is excellent! I will test on Fedora today but I'm assuming it should work seamlessly on 24 if it works on RHEL7. I would also be happy to work on getting this integrated to the Mezzanine default project template if you'd like. It work be great to support both deb/rpm based distros

Re: [mezzanine-users] Re: Images in .pdf Invoice

2016-06-29 Thread Sam Kingston
Thanks Stephen - I've opened an issue to track this: https://github.com/stephenmcd/cartridge/issues/298 On 29 June 2016 at 16:00, Stephen McDonald wrote: > > > On Wed, Jun 29, 2016 at 3:49 PM, Sam Kingston wrote: > >> I'd say probably use the one Eduardo suggests:

Re: [mezzanine-users] Re: Images in .pdf Invoice

2016-06-28 Thread Sam Kingston
g used now? > > On Wed, Jun 29, 2016 at 11:22 AM, Sam Kingston wrote: > >> I'm not sure if this will help you or not, but I developed a replacement >> library for xhtml2pdf (though not a drop-in): >> >> https://github.com/sjkingo/pywkhtmltopdf >>

[mezzanine-users] Re: Images in .pdf Invoice

2016-06-28 Thread Sam Kingston
I'm not sure if this will help you or not, but I developed a replacement library for xhtml2pdf (though not a drop-in): https://github.com/sjkingo/pywkhtmltopdf On Friday, 24 June 2016 20:13:05 UTC+10, Joseph Mohan wrote: > > Any other things i'm missing with regards to getting an image into the

[mezzanine-users] Re: Mezzanine REST API 0.4.0 Released

2016-05-04 Thread Sam Kingston
I have a local branch of mezzanine-api with patches that extend support to Cartridge products, variations and categories. I'll polish it off and add some tests and create a PR for it. Sam On Thursday, 5 May 2016 08:18:51 UTC+10, Josh B wrote: > > Very cool, just installed this and am excited to

Re: [mezzanine-users] Limited support of Bootstrap 3 styles in Mezzanine/Cartridge ?

2015-12-30 Thread Sam Kingston
I'd like to add my 2c to this too, as from a developer point of view I hit this often. I have created over a dozen large, commercial websites using Mezzanine and Cartridge and every single one of them I have ripped out Bootstrap for something else. The way Mezzanine integrates Bootstrap at the

[mezzanine-users] Re: Support for Python 3.5?

2015-12-01 Thread Sam Kingston
7;settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C. See the following PR's for updates to the pypi trove classifiers: * https://github.com/stephenmcd/mezzanine/pull/1476 * https://github.com/stephenmcd/cartridge/pull/274 On Wednesday, 2 Dec

[mezzanine-users] Re: Support for Python 3.5?

2015-12-01 Thread Sam Kingston
PR's incoming for Python 3.5 support... On Sunday, 29 November 2015 23:19:33 UTC+10, wh4n wrote: > > When will Mezzanine support Python 3.5? At the moment I can see in the > setup.py file that only 3.4 is the latest. > -- You received this message because you are subscribed to the Google Groups

Re: [mezzanine-users] Support for Python 3.5?

2015-11-30 Thread Sam Kingston
I will test 3.5 against master with my Mezzanine / Cartridge site today and report back. It currently runs fine on 3.4. Sam -- 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, se

Re: [mezzanine-users] Field Injection Will Not Migrate

2015-11-19 Thread Sam Kingston
I just wanted to add there is a third way of doing this, and that is creating a model in your own app and adding a OneToOne field to the Blog model. I now use that method exclusively instead of EXTRA_MODEL_FIELDS and it is much cleaner and easier to maintain. -- You received this message beca

[mezzanine-users] OneToOneField and inline on Page model

2015-09-30 Thread Sam Kingston
Hi all, Having an issue that I can't quite figure out. I've been staring at it for so long it's very possible I've overlooked something simple so please excuse me if so! I have two models that have a relationship to `Page` - one is a typical `ForeignKey` (`Card`) and the other is a `OneToOneFi

Re: [mezzanine-users] Re: New releases: Mezzanine, Cartridge, Drum

2015-07-27 Thread Sam Kingston
Brilliant! Thanks Steve! On 27 July 2015 at 23:50, Stephen McDonald wrote: > Should be up now. > > On Mon, Jul 27, 2015 at 11:41 PM, Sam Kingston wrote: > >> Any chance on a PyPi release for Cartridge 0.10? 0.9.5 is still the latest >> > -- You received t

[mezzanine-users] Re: New releases: Mezzanine, Cartridge, Drum

2015-07-27 Thread Sam Kingston
Any chance on a PyPi release for Cartridge 0.10? 0.9.5 is still the latest On Sunday, 26 July 2015 14:16:24 UTC+10, Stephen McDonald wrote: > > Hi all, > > I've just released Mezzanine 4.0.1 which contains a small handful of > bugfixes and improvements since the recent 4.0 release - most notably

[mezzanine-users] Re: New releases: Mezzanine, Cartridge, Drum

2015-07-26 Thread Sam Kingston
Fantastic work as always everyone. Well done! On Sunday, 26 July 2015 14:16:24 UTC+10, Stephen McDonald wrote: > > Hi all, > > I've just released Mezzanine 4.0.1 which contains a small handful of > bugfixes and improvements since the recent 4.0 release - most notably > restoration of the "--alte

Re: [mezzanine-users] Re: What's version of python and Django is more compatible with new version of cartridge and mezzanine?

2015-06-15 Thread Sam Kingston
That's because you are not running inside a virtualenv which I advised you should do in an earlier post. Try installing your application and deps inside a virtualenc: $ virtualenv myapp $ cd myapp && source bin/activate And then continue. On 16 Jun 2015 4:12 pm, "سید محمد رضا طباطبائی" < mohamma

Re: [mezzanine-users] Re: pip freeze insecure platform warning urllibe3

2015-06-11 Thread Sam Kingston
The ~/.cache/pip directory is used by pip (Python's package manager) to store (cache) downloaded packages and wheels, so it can avoid downloading on the consecutive times you try to install a certain package. If pip cannot write to that directory (or any descendants), then it will disable its c

[mezzanine-users] Re: What's version of python and Django is more compatible with new version of cartridge and mezzanine?

2015-06-11 Thread Sam Kingston
Please use the master branch of Mezzanine and Cartridge (unreleased as yet): $ pip install --upgrade -e git+https://github.com/stephenmcd/mezzanine.git#egg=Mezzanine-master $ pip install --upgrade -e git+https://github.com/stephenmcd/cartridge.git#egg=Cartridge-master Also good practice is to i

Re: [mezzanine-users] Re: pip freeze insecure platform warning urllibe3

2015-06-10 Thread Sam Kingston
ttp' or >> its parent directory is not owned by the current user and the cache has >> been disabled. Please check the permissions and owner of that directory. If >> executing pip with sudo, you may want sudo's -H flag.* >> > -- Sam Kingston M

[mezzanine-users] Re: pip freeze insecure platform warning urllibe3

2015-06-10 Thread Sam Kingston
What version of Python are you running? This warning appears on versions earlier than 2.7.10 - so try upgrading to that. On Thursday, 11 June 2015 04:48:00 UTC+10, vikraw wrote: > > Not sure if it is the right forum. But since I am running cartridge, i am > concerned about the security of the we

Re: [mezzanine-users] Re: Saving to ProductImage

2015-06-04 Thread Sam Kingston
e(file=f, product_id=2) just creates a > ProductImage with blank file and description > > f = File(upload_receive(request)) > returns > ProductImage.objects.create(file=f, product_id=2) > returns > *** TypeError: expected string or buffer > > > > On Friday, June 5

Re: [mezzanine-users] Re: Saving to ProductImage

2015-06-04 Thread Sam Kingston
Can you paste in the full exception? On 5 Jun 2015 10:36 am, "Andrew Fam" wrote: > Hey Sam, > > the gist doesn't work. Still getting the same error > > product.images.create(file=File(f), product_id = product.id) > > On Friday, June 5, 2015 at 6:56:47 AM

[mezzanine-users] Misc script: Fix for re-adding the django_content_type.name column in Django 1.7

2015-06-04 Thread Sam Kingston
This is probably useful to nobody but myself, but since I hit this issue today I thought I would share this script, if for no other reason than for reference if I do it again! https://gist.github.com/sjkingo/d4815302eb4e32b0f120 -- You received this message because you are subscribed to the Go

[mezzanine-users] Re: Saving to ProductImage

2015-06-04 Thread Sam Kingston
Hi Andrew, Try something like this (ripped from a shop I have written that syncs images from another database): https://gist.github.com/sjkingo/b836272f0757b20f8016 Hope this helps On Thursday, 4 June 2015 19:42:09 UTC+10, Andrew Fam wrote: > > I"m wondering how to create a new product image d

[mezzanine-users] Re: Mezzanine modal announcements

2015-04-16 Thread Sam Kingston
This is brilliant Josh - thanks so much. I am currently right in the middle of writing an app to do just this, and it looks like you have saved me the hassle! Sam On Thursday, 16 April 2015 12:01:34 UTC+10, Josh Cartmell wrote: > > Hey all, I've opened up a site announcement package I've used o

Re: [mezzanine-users] Hosted solutions for Mezzanine

2015-03-24 Thread Sam Kingston
Hi everyone, I would like to gauge some support for this - does the community as a whole think it would be worthwhile to have a "one-click-to-run" host that allows Mezzanine support? I've hacked on something similar previously that was designed to do the same thing - hosted Mezzanine with no d

[mezzanine-users] TabularDynamicInlineAdmin and Orderable

2015-01-23 Thread Sam Kingston
Hi guys, Should TabularDynamicInlineAdmin allow ordering on an inline class whose model subclasses Orderable? For instance, *admin.py*: from mezzanine.core.admin import TabularDynamicInlineAdmin from .models import Card class CardInlineAdmin(TabularDynamicInlineAdmin): model = Card.pages.

[mezzanine-users] django_auth_ldap3, a new LDAP authentication backend

2015-01-13 Thread Sam Kingston
Hi Stephen and others, I have developed and release a new LDAP authentication backend called django_auth_ldap3, that plugs into Django's auth system and allows authentication against OpenLDAP or Active Directory. It fully supports Py 2.7/3 and Django 1.6/1.7, and unlike most other backends has

[mezzanine-users] Script for install bleeding-edge Mezzanine/cartridge with Python3+Django 1.7

2015-01-12 Thread Sam Kingston
Hi everyone, Just thought I would share a script that will install Mezzanine and Cartridge in a Python3 environment with Django 1.7. It pulls the latest master and pins the install at that. It was useful to me, I hope it's useful to someone else too! It just takes two arguments: ~/ $ ./setup_

Re: [mezzanine-users] Cartridge: search by product SKU

2014-03-11 Thread Sam Kingston
Steve, didn't we fix this in cartridge/#170 and mezzanine/#947 ? -- 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

Re: [mezzanine-users] Form that can be filled only once

2014-02-14 Thread Sam Kingston
Further to what Josh has said, since forms are a core part of Django, have a look through the excellent docs they have: https://docs.djangoproject.com/en/1.6/topics/forms/ The "if user has submitted, reject" bit is perfect for a form validator. Good luck On Saturday, 15 February 2014 08:22:57

Re: [mezzanine-users] User profile validation problem

2014-02-09 Thread Sam Kingston
The full traceback: Traceback: File "/home/sam/WFS/mezzweb/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 114. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/home/sam/WFS/mezzweb/lib/python2.7/site-packages/django/con

[mezzanine-users] User profile validation problem

2014-02-09 Thread Sam Kingston
Hi all, I have defined a BillShipProfile via the (now deprecated) AUTH_PROFILE_MODULE setting, and defined a custom field with custom validation, as such: class PostcodeField(models.CharField): default_validators = [validate_postcode] def __init__(self, *args, **kwargs): kwargs

[mezzanine-users] Re: HTTPS in sitemap.xml

2014-02-05 Thread Sam Kingston
Hi Matt, Set protocol = 'https' in your Sitemap instance. See: https://docs.djangoproject.com/en/1.6/ref/contrib/sitemaps/#django.contrib.sitemaps.Sitemap.protocol HTH Sam On Thursday, 6 February 2014 07:00:47 UTC+10, Matt Mansour wrote: > > Howdy all - > > I have an all 'https' site built in

[mezzanine-users] Announcing django-commweb

2014-01-15 Thread Sam Kingston
Hi fellow Australian programmers, I've just released django-commweb onto PyPi ( https://pypi.python.org/pypi/django-commweb/0.1). It is a new library that intergrates Django into CommWeb, Commonwealth Bank of Australia's merchant payment service. It has Cartridge intergration out of the box, si

[mezzanine-users] Re: ForeignKey to custom app in EXTRA_MODEL_FIELDS

2014-01-07 Thread Sam Kingston
15:13:48 UTC+10, Sam Kingston wrote: > > On Tuesday, 7 January 2014 15:10:50 UTC+10, Sam Kingston wrote: >> >> Can't seem to find much on this problem (although it does appear to >> relate somewhat to a previous problem with recursive ForeignKey relations >> in EXTR

Re: [mezzanine-users] Field injection problem

2014-01-06 Thread Sam Kingston
stephenmcd/cartridge/commit/9f8bb6603f44ee9e793b679ab223833fb5f21fd4 > > > On Tue, Jan 7, 2014 at 5:17 PM, Sam Kingston wrote: > >> On 7 January 2014 16:09, Stephen McDonald wrote: >>> >>> >>> On Tue, Jan 7, 2014 at 5:06 PM, Sam Kingston wrote: >>> >>>&g

Re: [mezzanine-users] Field injection problem

2014-01-06 Thread Sam Kingston
On 7 January 2014 16:09, Stephen McDonald wrote: > > > On Tue, Jan 7, 2014 at 5:06 PM, Sam Kingston wrote: > >> Great explanation and example, and I've done this however still getting >> the exception. >> >> Just to confirm, if any of our app's migra

Re: [mezzanine-users] Field injection problem

2014-01-06 Thread Sam Kingston
Great explanation and example, and I've done this however still getting the exception. Just to confirm, if any of our app's migrations reference the 3 fields 'KeywordsField|CommentsField|RatingField' we can simply comment them out in models dict and it should magically work after that? Mine's

[mezzanine-users] Re: ForeignKey to custom app in EXTRA_MODEL_FIELDS

2014-01-06 Thread Sam Kingston
On Tuesday, 7 January 2014 15:10:50 UTC+10, Sam Kingston wrote: > > Can't seem to find much on this problem (although it does appear to relate > somewhat to a previous problem with recursive ForeignKey relations in > EXTRA_MODEL_FIELDS > here<https://groups.google.co

[mezzanine-users] ForeignKey to custom app in EXTRA_MODEL_FIELDS

2014-01-06 Thread Sam Kingston
Hi all, I'm having a frustrating problem attempting to inject a ForeignKey into a custom app, as follows: EXTRA_MODEL_FIELDS = ( ( 'cartridge.shop.models.Product.shipping_option', 'ForeignKey', ('shipping.models.ShippingOption',), {'blank': True}, ), ) Th