Re: [mezzanine-users] Creating / Associating a gallery with a blog post

2013-12-22 Thread Ken Bolton
Hi Stu, Idiomatic Python: >>> from mezzanine.galleries.models import Gallery >>> galleries = Gallery.objects.all() >>> print(galleries) Your EXTRA_MODEL_FIELDS is has a model class in the "field class" position in the tuple. EXTRA_MODEL_FIELDS = ( ( # Dotted path to field. "

Re: [mezzanine-users] Re: page not found django_redirect

2013-12-23 Thread Ken Bolton
Have you tried this with a vanilla unmodified Mezzanine installation? On Mon, Dec 23, 2013 at 3:35 PM, Moltra wrote: > I tried that and still had the same problem. > > -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from

Re: [mezzanine-users] Re: page not found django_redirect

2013-12-23 Thread Ken Bolton
The culprit is DjDT 1.0. I haven't had time to look into it, but `pip install django-debug-toolbar==0.9.1` will fix your problem. On Mon, Dec 23, 2013 at 6:19 PM, Moltra wrote: > Yes, I just tried with a fresh install of mezzanine and had the same >> problem. >> > > ``` > Django==1.5.5 > Mezzan

Re: [mezzanine-users] Installing Fixtures?

2014-01-11 Thread Ken Bolton
Hi Brian, Use the source! >From your writing, it looks like you sorted out Product ( https://github.com/stephenmcd/cartridge/blob/master/cartridge/shop/models.py#L106 ). The other two for your examination are ProductImage ( https://github.com/stephenmcd/cartridge/blob/master/cartridge/shop/model

Re: [mezzanine-users] Installing Fixtures?

2014-01-11 Thread Ken Bolton
Hi Brian, Thanks for the clarification of your question. I think I can help you. `_order` is a field on mezzanine.core.models.Orderable and controls the sequence in which items are displayed. https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/core/models.py#L333 `site` is a field on m

Re: [mezzanine-users] Mezzanine out of the Box : Import error Image

2014-01-16 Thread Ken Bolton
Hi Norbert, You will need PIL (or pillow) to run Mezzanine. See https://github.com/stephenmcd/mezzanine/blob/master/setup.py#L37-L45. If you do not have PIL (or pillow) installed, `pip install mezzanine` should install pillow for you (unless you are using Jython). Try `pip install pillow` and ge

Re: [mezzanine-users] Mezzanine out of the Box : Import error Image

2014-01-16 Thread Ken Bolton
Try a `python manage.py syncdb`. Otherwise, the fastest solution is likely to be to blow away your existing DB and run the `createdb` again. k On Thu, Jan 16, 2014 at 9:09 AM, wrote: > Hello Kenneth, > mezzanine does not install PIP by itself. I installed pillow manually > and now I get an oper

Re: [mezzanine-users] Database returned an invalid value in QuerySet.dates()

2014-01-25 Thread Ken Bolton
Hi Markos, Within your project's Python environment, would you kindly run `pip freeze | grep pytz`? If that returns nothing, you do not have pytz installed. A `pip install pytz` should set you straight. best, ken On Sat, Jan 25, 2014 at 8:31 AM, Marko3 wrote: > I get this error on my Ubuntu 1

Re: [mezzanine-users] Re: Looking for Developer to create a site in mezzanine based on my current site

2014-01-30 Thread Ken Bolton
Hi Moltra, Josh is right: details! If you want me to work for you, you have to first work for me. If a potential customer approaches me and is not prepared with a comprehensive Statement of Work, that doubles or triples my rate and leaves me lots of wiggle room to say that a specific feature is go

Re: [mezzanine-users] please help me to run mezzanine by fabric

2014-02-08 Thread Ken Bolton
Take a look at my blog post on the matter at http://bscientific.org/blog/mezzanine-fabric-git-vagrant-joy/. The approach in the post is to deploy to a VM. Changing the settings.FABRIC['HOSTS'] to include your VPS should be enough to get your application deployed. hth. best, ken On Sat, Feb 8, 2

Re: [mezzanine-users] first steps with fabric deployment

2014-02-23 Thread Ken Bolton
Federico, Have you reviewed the tutorial at http://bscientific.org/blog/mezzanine-fabric-git-vagrant-joy/? It may be a bit dated, but should work. best, ken On Sun, Feb 23, 2014 at 11:46 AM, Federico Bruni wrote: > Hi > > I'm trying Fabric for the first time and after several tries I have to

Re: [mezzanine-users] first steps with fabric deployment

2014-02-23 Thread Ken Bolton
You might have luck with the Django's dumpdata and loaddata management commands. Alternatively, django-extensions has a dumpscript command that may work. ken On Sun, Feb 23, 2014 at 12:45 PM, Federico Bruni wrote: > Il giorno domenica 23 febbraio 2014 18:37:14 UTC+1, Federico Bruni ha > scritt

Re: [mezzanine-users] payment gateway choose for mezzanine(cartridge) based project

2014-02-24 Thread Ken Bolton
Hi Lu Zou, Take a look at the payment gateways included with Cartridge at https://github.com/stephenmcd/cartridge/tree/master/cartridge/shop/payment. I cribbed from the authorize code when I wrote the paypal code early in my Cartridge career. Choosing one of the builtin options is as easy as follo

Re: [mezzanine-users] Cartridge No module named boot exception

2014-02-24 Thread Ken Bolton
Hi Ankhaa, Do you get the same error in a local development environment? If your SCM (you are using an SCM, right?) supports a `bisect` command, use that to find the change that introduced this regression. You say you "installed some languages in some apps". Can you provide more detail? I haven'

Re: [mezzanine-users] first steps with fabric deployment

2014-02-24 Thread Ken Bolton
Hi Federico, You can get away with sqlite in production for a very small site, but it is generally not recommended. The value for your "ENGINE" key is missing the path to the module. I think it should read: "ENGINE": "django.db.backends.sqlite3", hth, ken On Sun, Feb 23, 2014 at 5:36

Re: [mezzanine-users] Re: FileSystemEncodingChanged exceptions

2014-02-25 Thread Ken Bolton
Hi Terry, If you look at the fabfile.py, https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/fabfile.py#L339-L354, you can see how the system should be configured to handle the demonstrative gallery images included in Mezzanine. hth, ken On Tue, Feb 25, 2014 at 11:54

Re: [mezzanine-users] Stripe payments

2014-02-26 Thread Ken Bolton
On Wed, Feb 26, 2014 at 1:35 PM, Tom Brander wrote: > Ahh thanks! I agree, don't want exposure of keeping CC #'s! > Cartridge does not store credit card data in any of the payment handlers. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. T

Re: [mezzanine-users] Mezzanine Multiple Content Blocks per Page

2014-02-27 Thread Ken Bolton
Hi Radomir, There are a couple of projects listed on the Mezzanine home page. I have never used those. I roll my own solutions based on the needs. Mezzanine uses Django's template system. Mezzanine Page objects can have "child" pages. I leverage that relationship to create far more complex soluti

Re: [mezzanine-users] Re: Mezzanine Multiple Content Blocks per Page

2014-02-27 Thread Ken Bolton
Try https://github.com/renyi/mezzanine-blocks. On Thu, Feb 27, 2014 at 1:36 PM, Radomir Wojcik wrote: > I thought this was a feature that is already built in to Mez. If it isn't, it should. -1. Content blocks are a feature best left outside of Mezzanine. I admire and appreciate how lean Mezzanin

Re: [mezzanine-users] Error with Pisa? P3?

2014-03-01 Thread Ken Bolton
Python 3 is a Really Good Idea. Unfortunately, as you have discovered, many modules do not yet support Python 3. Stick with 2.7 to save yourself head/heart-ache. On Sat, Mar 1, 2014 at 12:57 PM, Tom Brander wrote: > Took a look, and xhtml2pdf is not P3 capable either > > > On Friday, February 2

Re: [mezzanine-users] fab all runs, but cannot access mezzanine admin page

2014-03-02 Thread Ken Bolton
Jesse, See inline, below. On Sun, Mar 2, 2014 at 8:47 PM, Jesse Carrigan wrote: > > I've been following Ken Bolton's excellent instructions, which introduced me to Vagrant (and for > which I'm very grateful - it's a fantastic tool). Thank you for your kind words. I believe Stephen introduced me

Re: [mezzanine-users] step by step mezzanine deployment

2014-03-03 Thread Ken Bolton
Fabric does not sync the content of the databases. Fabric does sync the database schemas! On Mon, Mar 3, 2014 at 8:03 AM, Federico Bruni wrote: > 2014-03-03 13:01 GMT+01:00 Federico Bruni : > > Now I should find out why my real project is failing. Maybe I could start >> it from scratch step by

Re: [mezzanine-users] Re: Installing Mezzanine on Vagrant

2014-03-03 Thread Ken Bolton
"Use Fabric for repeatable installations", I repeat. On Mon, Mar 3, 2014 at 9:47 PM, Tom Brander wrote: > Looks like you are missing the C compiler and perhaps the associated dev > tools library... > > > On Monday, March 3, 2014 2:40:17 PM UTC-6, Tabs wrote: >> >> Hi Mezzanine community, >> >>

Re: [mezzanine-users] Re: Installing Mezzanine on Vagrant

2014-03-03 Thread Ken Bolton
One great thing about the fabfile.py that ships with Mezzanine is that it contains the best practices of a bunch of developers across a half-dozen technologies – with no cruft – that can immediately go into version control and grow with your application. If you opt not to use Fabric to manage your

Re: [mezzanine-users] fab all runs, but cannot access mezzanine admin page

2014-03-04 Thread Ken Bolton
In my local_settings.py, I create a FABRIC_VAGRANT(, optional FABRIC_DEV), FABRIC_QA or FABRIC_STAGE, and FABRIC_PROD, all more or less identical except for the LIVE_HOSTNAME and HOSTS. The other change is to REPO_URL. For my "local" Vagrant, I use my local SCM (git), whereas the other environments

Re: [mezzanine-users] Re: step by step mezzanine deployment

2014-03-04 Thread Ken Bolton
Pro Tip Assuming you have reasonable values in your settings.FABRIC, the following Fabric commands run within your virtualenv will do the backup and restore. I've pasted the code they run below each command. $ fab backup "pg_dump -Fc %s > %s" % (env.proj_name, filename) $ fab restore "pg_restore

Re: [mezzanine-users] fab all runs, but cannot access mezzanine admin page

2014-03-06 Thread Ken Bolton
Do you have a mapping in your local /etc/hosts of the IP address for your Vagrant or remote host to the hostname you want to use for it? ken On Thu, Mar 6, 2014 at 3:57 AM, Jesse Carrigan wrote: > After continuing to look at this, I tried removing the LIVE_HOSTNAME value > from the Fabric setti

Re: [mezzanine-users] building the docs

2014-03-07 Thread Ken Bolton
Hi Federico, ALLOWED_HOSTS, TIME_ZONE, and SECRET_KEY do not have values. Make sure you have those set in your settings.py or local_settings.py. Backing up a moment, we see that Mezzanine is installed in /usr/local/lib/python2.7/dist-packages/. I urge you to follow the recommendations of http://e

Re: [mezzanine-users] Re: step by step mezzanine deployment

2014-03-07 Thread Ken Bolton
Hi Eduardo, I wrote some Fabric scripts for my own use to do a more complicated pg dump and restore. I had a production system to migrate from Mezzanine pre 1.x to 1.x. I used Fabric and Vagrant to iterate over write, build, test against a restore from a recent production dump. https://github.com/

Re: [mezzanine-users] Import Blogger Error

2014-03-20 Thread Ken Bolton
Hi Hans Shih, This is a very common problem. The short answer is that the locale is not set properly on your server. If you search this mailing list for locale, you will find lots of other occurrences of this. You have two options: 1. (Adequate) The quick and dirty option would be to find every

Re: [mezzanine-users] pg_restore error

2014-03-24 Thread Ken Bolton
Hi Federico, Follow the Fabric task commands precisely to get a good dump/restore process: https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/fabfile.py#L290-L303 . Make sure also that you created the DB properly – that is, with the correct locale – and that this local

Re: [mezzanine-users] Mezzanine on Heroku

2014-03-25 Thread Ken Bolton
Hi Kyle, If I understand correctly, Stephen referred to the repo for his deployment at mezzanine.herokuapp.com. This directory contained the files ./Procfileand ./requirements.txt as well as the mezzroku directory as created by the mezzanine-project command. This was not a directory in the master

Re: [mezzanine-users] Re: Video of quickly deploying Mezzanine to Google App Engine with django-deployer

2014-03-25 Thread Ken Bolton
I run Mezzanine on variously sized EC2 instances as well as on a RackSpace, nee Slicehost, VPS. A EC2 micro instance is free for the first year, but generally costs less than $10 per month. Digital Ocean, at $5 per month, also worked well for me the very first time. I have used the included Fabric

Re: [mezzanine-users] How to set menus and to get postedata in Mezzanine Django

2014-03-31 Thread Ken Bolton
Hi Tameen, Great questions, all. I urge you to go through the entire Django tutorial if you have not already. During my first four years with Django, I did the tutorial once a quarter to reinforce what I was learning. That is right, I did the tutorial sixteen times! My answers are inline below.

Re: [mezzanine-users] How and where to create sitemap.xml and robot.txt

2014-03-31 Thread Ken Bolton
Have you looked for the files at the root of your deployed project? For instance, http://mezzanine.jupo.org/sitemap.xml and http://mezzanine.jupo.org/robots.txt. If you want to see how they get generated, use the source: https://github.com/stephenmcd/mezzanine/blob/754d94e79ea05038a62296f16221abc9

Re: [mezzanine-users] How to set menus and to get postedata in Mezzanine Django

2014-03-31 Thread Ken Bolton
Hi Tameen, See my response inline below. On Mon, Mar 31, 2014 at 10:06 AM, Tameen Malik wrote: > if i create page i don't find this in templates folder and if i create html page and store this in templates/pages folder, > how to show this in menu of home page? Pages are created in the admin in

Re: [mezzanine-users] How to set menus and to get postedata in Mezzanine Django

2014-03-31 Thread Ken Bolton
Hi Tameen, I urge you to read the Mezzanine documentation thoroughly. As with Django, the Mezzanine documentation is of extraordinary quality and covers the topics you bring up much more thoroughly than I will do below. Actually, after reading the documentation myself briefly to make sure I don't

Re: [mezzanine-users] Re: How and where to create sitemap.xml and robot.txt

2014-03-31 Thread Ken Bolton
Hi Eduardo, https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/deploy/nginx.conf#L36-L40contains the Nginx directives for robots.txt. If you do not use the stock Fabric script and Nginx configuration, you will not get robots.txt by default and will have to add it to you

Re: [mezzanine-users] How to set menus and to get postedata in Mezzanine Django

2014-03-31 Thread Ken Bolton
Have you done the Django tutorial at https://docs.djangoproject.com/en/1.6/intro/tutorial01/? South is highly recommended for managing your database schema: http://mezzanine.jupo.org/docs/model-customization.html#field-injection-caveats I would also take a step back and go through http://effectiv

Re: [mezzanine-users] How to set menus and to get postedata in Mezzanine Django

2014-03-31 Thread Ken Bolton
If you do the Django tutorial, it will teach you how to synchronize the database. The Mezzanine documentation does not cover this, but the opening words of the Mezzanine docs are: A working knowledge of Django is required to work with Mezzanine and the documentatio

Re: [mezzanine-users] How to set menus and to get postedata in Mezzanine Django

2014-03-31 Thread Ken Bolton
Django-CMS is a completely different project from Django and also from Mezzanine. Django-CMS has some nice features, but I am pretty sure it duplicates most of what Mezzanine does. I do not recommend using Django-CMS. I find the code more complicated than Mezzanine's, harder to read, and therefore

Re: [mezzanine-users] Re: Cartridge shop missing from admin on deployed site

2014-04-01 Thread Ken Bolton
A colleague and I have a shorthand for caching issues: cashews. Holding down the shift key during a reload generally bypasses the cache. https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache best, ken On Tue, Apr 1, 2014 at 1:55 AM, Jesse Carrigan wrote: > Looks like this was a caching issu

Re: [mezzanine-users] What should/would example Fab file settings look like?

2014-04-02 Thread Ken Bolton
You can see that Josh and I used the same "source" material: https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/settings.py#L313-L334 On Wed, Apr 2, 2014 at 1:58 PM, Josh Cartmell wrote: > Here's what the one I used to deploy to Digital Ocean looked like: > > FABRIC

Re: [mezzanine-users] What should/would example Fab file settings look like?

2014-04-02 Thread Ken Bolton
>From my tutorial on using Fabric to deploy to Vagrant: FABRIC = { "SSH_USER": "vagrant", # SSH username "SSH_PASS": "vagrant", # SSH password (consider key-based authentication) #"SSH_KEY": "", "HOSTS": ['', ], # List of host names or IPs. "VIRTUALENV_HOME": "/home/vagrant", # Absolute remot

Re: [mezzanine-users] Uploadify swf versus fileuploader.js

2014-04-16 Thread Ken Bolton
Hi Matt, I'm sure there is lots of interest in this change, and any effort you make that moves this forward will be greatly appreciated. best, ken On Wed, Apr 16, 2014 at 9:16 AM, Matthew Summers wrote: > Hello, > > I'm just curious if anyone has tried replacing the flash-based > filebrowser-s

Re: [mezzanine-users] server internal error when add_cart

2014-04-17 Thread Ken Bolton
Can you share the logging information? Can you replicate this with the runserver development server? ken On Thu, Apr 17, 2014 at 7:15 AM, David calvo chiva wrote: > I have my mezzanine/cartridge under a prefix and everything works fine > except when in the products or wishlist i want to buy so

Re: [mezzanine-users] server internal error when add_cart

2014-04-17 Thread Ken Bolton
How about the logs when you do this using the django runserver? Is the log you sent the Apache log? That won't have information about 500 error. ken On Thu, Apr 17, 2014 at 11:47 AM, Zentrico wrote: > [error_log] > > [Wed Apr 16 17:09:40 2014] [notice] caught SIGTERM, shutting down > > [Wed A

Re: [mezzanine-users] Where is the Mezzanine Issues list or New Features list ?

2014-04-18 Thread Ken Bolton
I think you are looking for the issue tracker on github: https://github.com/stephenmcd/mezzanine/issues?direction=desc&sort=created&state=open On Fri, Apr 18, 2014 at 7:52 PM, Jesus Anaya wrote: > Where is the Mezzanine Issues list or New Features list ? i don't know > what is :) > > Thanks :) >

Re: [mezzanine-users] Filebrowser depend on Flash Player ?

2014-04-21 Thread Ken Bolton
Flash is a dependency on the client for the filebrowser. Matthew Summers mentioned this oft-discussed issue a few days ago and made some progress: https://groups.google.com/d/msg/mezzanine-users/vt4bSWCLk-8/VLRb6sxo8bMJ. ken On Mon, Apr 21, 2014 at 1:04 PM, Ariel Vázquez Riverón wrote: > Filebro

Re: [mezzanine-users] How to handle unicode posts and titles

2014-04-30 Thread Ken Bolton
Hi Paul, In my experience, the UnicodeDecodeError only happens if you have not set up your locale correctly. The highlighted section of the fabfile, here https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/fabfile.py#L346-L350, remedies this problem every time. hth, ke

Re: [mezzanine-users] Media library in Mezzanine ...

2014-05-02 Thread Ken Bolton
To follow up on Mario's question: How are you running Mezzanine? On Thu, May 1, 2014 at 7:29 PM, Mario Gudelj wrote: > Nope. Do you get any errors? > On 02/05/2014 4:45 am, "roland balint" wrote: > >> could not upload into Media library with a fresh install of Mezzanine. >> does anyone else ha

Re: [mezzanine-users] Edit pages using external editor

2014-05-11 Thread Ken Bolton
Hi Frank, This came up a year ago, and the information in this thread is still valid, afaik: https://groups.google.com/d/msg/mezzanine-users/2p4YXL9EgXk/4azf9QJqYjIJ hth, ken On Sun, May 11, 2014 at 5:31 AM, Frank Gilsdorf wrote: > Hi, > > Is there any way on editing 'raw' HTML pages using an

Re: [mezzanine-users] Edit pages using external editor

2014-05-13 Thread Ken Bolton
>> Hi Frank, >> >> I use the "It's All Text" extension for Firefox, which allows you to >> edit any web page multiline text box in the text editor of your choice - >> very handy when filling out comment boxes on websites too! >> >> It works fairly

Re: [mezzanine-users] Adding a collection of Images to a custom model in Mezzanine

2014-05-21 Thread Ken Bolton
Alternatively, create an optional foreign-key on your Activity model to Gallery. On Wed, May 21, 2014 at 10:05 AM, Josh Cartmell wrote: > Hey Shaunak, I would just look at the way it is implemented in the Gallery > code and do something similar (you could probably even copy/past large > portions

Re: [mezzanine-users] The SECRET_KEY setting must not be empty error

2014-05-26 Thread Ken Bolton
Here you go! https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-SECRET_KEY On Mon, May 26, 2014 at 2:30 PM, val_erie wrote: > Hi, > > I have Mezzanine 3.1.4 installed in virtualenv and I would like to run it > using Apache2 and mod_wsgi. > I followed > https://docs.djangoproject.co

Re: [mezzanine-users] Re: Video of quickly deploying Mezzanine to Google App Engine with django-deployer

2014-05-28 Thread Ken Bolton
On Wed, May 28, 2014 at 11:37 AM, Christian Seberino wrote: > I'm glad to hear you run Mezzanine on several cloud hosting providers. > Fewer and fewer. Just updates, really. I want to slip my current project, which pre-dates my participation with it, on top of Mezzanine, but there are higher prio

Re: [mezzanine-users] Re: can't add mezzanine_agenda

2014-06-06 Thread Ken Bolton
What is the value of EVENT_SLUG in your settings? What error message did you get? (“^%s/“ settings.EVENT_SLUG, include(“mezzanine_agenda.urls”)) The above has the string-substitution operator missing between “^%s/“ and settings. ​ On Fri, Jun 6, 2014 at 3:12 PM, roland balint wrote: > if an

Re: [mezzanine-users] Re: Saw that I should post my site here.

2014-06-06 Thread Ken Bolton
I'll second Tom's mention of readability. Never use a texture under copy. The left and right sidebars require too much effort to read. Congratulations on getting the site up. On Fri, Jun 6, 2014 at 4:58 PM, Tom Brander wrote: > Maybe I'm just too old but I can't read the cover page hardly at a

Re: [mezzanine-users] Mezzanine-Cartridge Problem when view product image

2014-06-09 Thread Ken Bolton
I suggest you look at the Javascript console in your browser and look for errors. A best-guess is that some of the Javascript libraries are not loading properly. On Mon, Jun 9, 2014 at 8:55 AM, green wrote: > Not sure what went wrong and where to start. I have > Cartridge==0.9.3 > Django==1.6.

Re: [mezzanine-users] Re: can't add mezzanine_agenda

2014-06-09 Thread Ken Bolton
"Syntax Error" is exactly what was expected because the string substitution operator is missing. I use vim-flake8 to check the syntax and PEP-8 compliance on file save. "Save" here has another meaning; this tool saves my sanity daily. Do you have `from mezzanine.conf import settings` at the top o

Re: [mezzanine-users] Struggling with multi-level foreign keys ...

2014-06-12 Thread Ken Bolton
Hi James, What you seek are inline model admins: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#inlinemodeladmin-objects . ken On Thu, Jun 12, 2014 at 11:59 AM, James Larkin wrote: > Hi Guys, > > Back again with another problem and if someone could point me in the right > direction

Re: [mezzanine-users] Wagtail vs Django CMS vs Mezzanine - Pros and cons? Which one should I contribute to?

2014-06-12 Thread Ken Bolton
One stop shop: https://www.djangopackages.com/grids/g/cms/ I see that Wagtail is not listed in the above grid. It has not been around for very long. My understanding from a quick look at the source is that Wagtail operates under more or less the same idiom as Mezzanine. That is, both are simply co

Re: [mezzanine-users] Horrible quality of gallery thumbnails

2014-06-23 Thread Ken Bolton
Obligatory link to the docs for overriding (and/or extending) templates: http://mezzanine.jupo.org/docs/content-architecture.html#page-templates On Mon, Jun 23, 2014 at 4:29 PM, Josh Cartmell wrote: > Hey Fredrik just override the gallery template and update the thumbnail > templatetag call spe

Re: [mezzanine-users] global name 'pytz' is not defined

2014-06-27 Thread Ken Bolton
make sure pytz works: $ python manage.py shell >>> import pytz On Fri, Jun 27, 2014 at 5:00 PM, wrote: > I am running in virtualenv and pytz installed and on pip freeze list. > > > On Friday, June 27, 2014 3:48:18 PM UTC-5, Josh Cartmell wrote: > >> I would guess that running: >> pip install p

Re: [mezzanine-users] Gallery problems: UnicodeEncodeError: 'ascii' codec can't encode character

2014-07-02 Thread Ken Bolton
Hi Fredrik, Use the Fabric script at https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/fabfile.py#L346-L350 and https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/fabfile.py#L389-L391 as a starting points for ensuring your locales are correc

Re: [mezzanine-users] Gallery problems: UnicodeEncodeError: 'ascii' codec can't encode character

2014-07-02 Thread Ken Bolton
The Fabric scripts are intended to run on Debian-based OS, not ones based on RedHat. The command you seek is, I believe: localedef -c -f UTF-8 -i en_US en_US.UTF-8 export LC_ALL=en_US.UTF-8 On Wed, Jul 2, 2014 at 12:52 PM, Fredrik Blomqvist < fredrik.blomqvist...@gmail.com> wrote: > I'm sorry

Re: [mezzanine-users] Gallery problems: UnicodeEncodeError: 'ascii' codec can't encode character

2014-07-02 Thread Ken Bolton
sudo it? On Wed, Jul 2, 2014 at 1:42 PM, Fredrik Blomqvist < fredrik.blomqvist...@gmail.com> wrote: > Oh. Well I ran that line (localedef, the export works fine but didn't > improve the situation) and got this: > cannot open locale archive "/usr/lib/locale/locale-archive": Permission > denied >

Re: [mezzanine-users] Gallery problems: UnicodeEncodeError: 'ascii' codec can't encode character

2014-07-02 Thread Ken Bolton
On Wed, Jul 2, 2014 at 1:52 PM, Fredrik Blomqvist < fredrik.blomqvist...@gmail.com> wrote: > > Oh you…if only I had permissions to sudo. Pardon my ignorance of OpenShift. How about: $ rhc env set LC_ALL=en_US.UTF-8 -- You received this message because you are subscribed to the Google Groups "M

Re: [mezzanine-users] Gallery problems: UnicodeEncodeError: 'ascii' codec can't encode character

2014-07-02 Thread Ken Bolton
During my research earlier, I found a thread where someone was having similar problems. Funny thing was that his locale was fine when ssh'd in, but borked in his application. https://bugzilla.redhat.com/show_bug.cgi?id=904077 I think the next likely culprit is your database's encoding. Can you che

Re: [mezzanine-users] Re: Invalid currency locale specified for SHOP_CURRENCY_LOCALE

2014-07-04 Thread Ken Bolton
Hi Eric, Mezzanine's Fabric script, fabfile.py, has code that sets the locale properly. Search for the string "locale" in https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/fabfile.py . Your initial email is a little vague. Are you running a Django development server,

Re: [mezzanine-users] Re: Invalid currency locale specified for SHOP_CURRENCY_LOCALE

2014-07-04 Thread Ken Bolton
Hi Eric, Look inline below. On Fri, Jul 4, 2014 at 9:13 AM, Eric Boo wrote: > > I git cloned my live site’s code to a new development server so that I can > add some more features, and at the same time test it out on a BSD OS (live > site’s running Debian). > I would keep development and platfo

Re: [mezzanine-users] Which payment processors work with Cartridge ?

2014-07-04 Thread Ken Bolton
Hi, Take a look at http://cartridge.jupo.org/overview.html#features, which explains that there are hooks for you to connect your payments processor of choice. Cartridge ships with a few example payments processors which can be reviewed at https://github.com/stephenmcd/cartridge/tree/master/cartri

Re: [mezzanine-users] Re: Invalid currency locale specified for SHOP_CURRENCY_LOCALE

2014-07-04 Thread Ken Bolton
he SHOP_CURRENCY_LOCALE setting in > your settings module. > > I wonder if it’s possible to run Mezzanine + Cartridge inside OpenBSD at > all, but given that we’re talking about Python, it shouldn’t be an issue, > right? > > -- > Eric Boo > Sent with Airmail > > On 4

Re: [mezzanine-users] Re: Invalid currency locale specified for SHOP_CURRENCY_LOCALE

2014-07-04 Thread Ken Bolton
d settings.py files that I’m > successfully using on my live machine. > > May be an overkill, but maybe it’ll be interesting to see if the exact > same files work on a FreeBSD machine instead. > > -- > Eric Boo > Sent with Airmail > > On 4 July, 2014 at

Re: [mezzanine-users] Re: Invalid currency locale specified for SHOP_CURRENCY_LOCALE

2014-07-04 Thread Ken Bolton
Weirdness. > > Sent from my iPad > > On 5 Jul, 2014, at 12:17 am, Ken Bolton wrote: > > With those settings you still get the error the ImproperlyConfigured > error? Your system and/or application is improperly configured. Back out or > start over. You have been automating a

Re: [mezzanine-users] Re: Invalid currency locale specified for SHOP_CURRENCY_LOCALE

2014-07-05 Thread Ken Bolton
.7/site-packages/django/db/models/loading.py", > line 99, in load_app > > models = import_module('%s.models' % app_name) > > File > "/root/.virtualenvs/test/lib/python2.7/site-packages/django/utils/importlib.py", > line 40, in import_module &

Re: [mezzanine-users] Gallery problems: UnicodeEncodeError: 'ascii' codec can't encode character

2014-07-07 Thread Ken Bolton
On Mon, Jul 7, 2014 at 8:46 AM, Fredrik Blomqvist < fredrik.blomqvist...@gmail.com> wrote: > a couple of days of no work (one which was my birthday; this must have > been my gift from OpenShift lol). > Many happy returns! (Which may or may not be (PEP 20)[19].) -- You received this message beca

Re: [mezzanine-users] Cartridge - Price with variations on products

2014-07-08 Thread Ken Bolton
Hi Humberto, This feature is baked into Cartridge. ProductVariations take care of this for you. best, ken On Tue, Jul 8, 2014 at 10:53 AM, hyan...@gmail.com wrote: > Hi, > > I've a requirement to diferent prices using product variations, I mean, if > you are selling iPhones, 8GB ref have lowe

Re: [mezzanine-users] Re: Email confirmation for admin-created users?

2014-07-17 Thread Ken Bolton
On Thu, Jul 17, 2014 at 7:58 PM, Matt Gushee wrote: > Hi, Josh and all-- > > Well, I found out that if I set ACCOUNTS_APPROVAL_REQUIRED and > ACCOUNTS_VERIFICATION_REQUIRED to True, as per Stephen's message, I > can then create an inactive user, then go back and set their account > active, and th

Re: [mezzanine-users] Re: Bulk Product Upload In Cartridge

2014-07-30 Thread Ken Bolton
What have you tried? What form do you currently have those "at least 20,000 products" in? The management command Stephen wrote about still works, afaik. And Sam's technique is a tried-and-true method of bulk-inserting complex data into Django already in use within Cartridge. ken On Wed, Jul 30

Re: [mezzanine-users] Re: Bulk Product Upload In Cartridge

2014-07-30 Thread Ken Bolton
Go for it! And let us know how it goes. I have used Mezzanine, or more properly Python, as the glue to bind together disparate APIs and data sources to do things similar to what you want. Because of its capabilities as a high-level scripting language, Python excels at this. One "gotcha" to be awa

Re: [mezzanine-users] Mezzanine SSL support

2014-08-01 Thread Ken Bolton
Hi Duc Dang, SSL support is for deployed sites. Can you talk a little about your deployment configuration? Did you follow the Mezzanine deployment documentation at http://mezzanine.jupo.org/docs/deployment.html? In my experience, SSL works if you follow the steps outlined in the fabfile at https:/

Re: [mezzanine-users] Re: Bulk Product Upload In Cartridge

2014-08-03 Thread Ken Bolton
sounds like you are running the script possibly with the wrong python, e.g. without your virtualenv activated. ken On Sun, Aug 3, 2014 at 6:57 AM, Stevo wrote: > Thanks Ryan! - I tried to run the script from: > > myproject/lib/python2.7/site-packages/cartridge/shop/management/commands/product_

Re: [mezzanine-users] Re: Bulk Product Upload In Cartridge

2014-08-04 Thread Ken Bolton
Ryan is correct; suffer through to truth. I suggest http://effectivedjango.com/tutorial/getting-started.html as a guide for coming to grips with virtualenvs and isolation. For deeper isolation and closer dev-prod parity, I use Vagrant to manage virtual machines. You can try my admittedly long-in-

Re: [mezzanine-users] Re: Bulk Product Upload In Cartridge

2014-08-05 Thread Ken Bolton
You have got this. According to the source , the file needs to be comma-delimited, not tab-delimited. On Tue, Aug 5, 2014 at 8:56 AM, Stevo wrote: > > I ran that product_db command with -

Re: [mezzanine-users] Mezzanine user hierarchy

2014-08-06 Thread Ken Bolton
Not so much a Mezzanine question as it is a Django question. Mezzanine uses Django's django.contrib.auth module to do all of this. You will want to spend time understanding how django.contrib.auth. A great starting place is the Django documentation at https://docs.djangoproject.com/en/dev/topics/au

Re: [mezzanine-users] Mezzanine user hierarchy

2014-08-06 Thread Ken Bolton
Absolutely doable, but Mezzanine won't play much of a role in it. It is Django all the way down. To save yourself some pain, you might see if someone has tackled your problem at https://www.djangopackages.com/grids/g/authorization/. On Wed, Aug 6, 2014 at 3:27 PM, Arti Marane wrote: > Thanks K

Re: [mezzanine-users] South questions

2014-08-09 Thread Ken Bolton
Hi Micah, Lucky is good enough. Have you written any models? Have you extended any Mezzanine models in your settings? If you answer "no" to both of those, there are no monsters and you do not need to do initial migrations for any app. Otherwise, still no monster. If you change those models in you

Re: [mezzanine-users] South questions

2014-08-10 Thread Ken Bolton
The Most Important Thing: Make a backup of the database before running migrate or syncdb. Automate it. If the included Fabric script is used to deploy, automation of the migrations, db syncs, and backups comes for free. South migrations never need to be run. South is not a requirement of Mezzanine

Re: [mezzanine-users] 'SearchableManager' object has no attribute 'published'

2014-08-11 Thread Ken Bolton
Looks like you sorted this out. Would you please share what you did to fix this? best, ken On Mon, Aug 11, 2014 at 2:40 PM, Jason Sheldon wrote: > Hi > > > I am getting the following error when navigate to sitemap.xml > > > Request Method:GETRequest URL: > http://www.constantiafabrics.co.za/s

Re: [mezzanine-users] problem installing fixture in cartridge when I inject new fields

2014-08-22 Thread Ken Bolton
Hi Kiko, For your injected fields, I believe you will first need to create a South migration: python manage.py schemamigration --auto cartridge hth, ken ​ On Fri, Aug 22, 2014 at 10:44 AM, Kiko Fernández < kikofernandezre...@gmail.com> wrote: > Hi there, > > I am having some troubles running

Re: [mezzanine-users] How to insert python syntax highlighted snippets into a blog post in Mezzanine?

2014-08-22 Thread Ken Bolton
http://rodmtech.net/docs/mezzanine/a-mezzanine-tutorial-take-2/ has thorough documentation of how to get the feature you want. On Fri, Aug 22, 2014 at 4:02 PM, Lee H. wrote: > When writing out a blog post in the Mezzanine admin, how can I insert nice > syntax highlighted code (like > http://blo

Re: [mezzanine-users] Re: How to insert python syntax highlighted snippets into a blog post in Mezzanine?

2014-08-22 Thread Ken Bolton
you can create an admin directory in your templates for changes you want to make to the admin interface. k On Fri, Aug 22, 2014 at 5:30 PM, Lee H. wrote: > > Hi Ken, > > That's just what I needed, thanks a lot! > > One issue I'm having with: the codehilite.css obviously needs to be added > the

Re: [mezzanine-users] upload_template error while installing Mezzanine to Amazon EC2

2014-08-22 Thread Ken Bolton
Can you share the non-sensitive parts of your settings.FABRIC? Based on the error, my guess is that the "LOCALE" is set wrong. hth, ken On Fri, Aug 22, 2014 at 6:26 PM, wrote: > Hello guys, > > I have found the following error while setting up Mezzanine to Amazon EC2 > instance using Fabric: >

Re: [mezzanine-users] upload_template error while installing Mezzanine to Amazon EC2

2014-08-25 Thread Ken Bolton
So glad you sorted it! - ken On Mon, Aug 25, 2014 at 9:24 AM, wrote: > Hi Kenneth, > > You are right. I was missing VIRTUALENV_HOME entry in the settings file. > > Thanks, > > Em sexta-feira, 22 de agosto de 2014 20h15min55s UTC-3, Kenneth Bolton > escreveu: >> >> Can you share the non-sensitiv

Re: [mezzanine-users] django app to generate HTML tables and charts according to statistic data

2014-09-01 Thread Ken Bolton
Hi Wesley, In addition to the excellent Matplotlib, take a look at [iPython Notebook]( http://ipython.org/notebook.html). IPyNB is very useful when getting started with python and especially with graphing and charting. The first place I look when assessing libraries for Django is https://www.djan

Re: [mezzanine-users] Mezzanine mobile site

2014-09-01 Thread Ken Bolton
Resizing your browser window is not an adequate simulation of a mobile experience. There is no substitute for testing against a real device, but proper simulators – the iPhone Simulator in XCode and the VM in the Android SDK are two – go a long way. hth, ken On Mon, Sep 1, 2014 at 6:08 AM, Wesle

Re: [mezzanine-users] KeywordsField changes automatically to a different spelling on saving in Mezzanine Admin Page

2014-09-01 Thread Ken Bolton
Hi Shaunak, If you need the feature now, go ahead and peg Mezzanine to a commit in your requirements file. Mezzanine releases occur when features are complete, tests pass, and someone (Stephen) has time to package a release. Mezzanine releases, afaik, have never been determined by a date. For a c

Re: [mezzanine-users] Adding a featured_image to a Page

2014-09-02 Thread Ken Bolton
Hi Wim, Use the source, Luke! If you look at the source for pages.models , you will see that you can do multiple inheritance. So instead of `class FeaturedPage(Page)`, use `class FeaturedPage(Page, RichText)`,

Re: [mezzanine-users] Un-wrap code in

2014-09-02 Thread Ken Bolton
Hi Christoph, It has been a dog's age since I last did anything with Plone. Would you illustrate your request with a link to an example of the behavior you would like to see incorporated into Mezzanine? best, ken On Tue, Sep 2, 2014 at 4:01 AM, Christoph H. Larsen < christoph.h.lar...@gmail.com

  1   2   3   4   >