Re: [mezzanine-users] Re: Slug based context processor: can't use two arguments

2013-12-23 Thread Josh Cartmell
, and noticed I had skipped the section where you put the processor in a page_processors.py file, and it worked. So, yeah, typical RTFM mistake =P Thank you! On Monday, December 23, 2013 5:01:30 PM UTC-2, Josh Cartmell wrote: Hey Diego, processor_form is used for page_processors ( http

Re: [mezzanine-users] Gallery select button not working

2013-12-24 Thread Josh Cartmell
I just took a look and this happens to me on the demo site as well, might be a bug with the new Mezzanine or filebrowser release. On Tue, Dec 24, 2013 at 9:48 PM, Leotis buchanan leotisbucha...@gmail.comwrote: Dear Group, I started using mezzanine today.I am trying to create a gallery and

Re: [mezzanine-users] best way to get blog post info. (created by:, Created on:, Last Modified By: Last Modified On:)

2013-12-27 Thread Josh Cartmell
One of the ancestors of BlogPost, via Displayable, is TimeStamped ( https://bitbucket.org/stephenmcd/mezzanine/src/6e18580343fa5f4b9221349e11a099a28510bed8/mezzanine/core/models.py?at=default#cl-172) which covers created on and modified on. BlogPost itself records the user that created it so the

Re: [mezzanine-users] migration from private system to mezzanine

2014-01-02 Thread Josh Cartmell
Hey Sergei, glad that you are getting it sorted! For images, I think that you could put the images under the media directory, and then just update your IMG_ROOT setting. I.E. put all the images in /static/media/uploads/img/ (so they show in the media library) and then update your IMG_ROOT to

Re: [mezzanine-users] Unable to get pagination showing up properly

2014-01-09 Thread Josh Cartmell
It looks like no css is being applied. What version of Mezzanine are you on and what version of Bootstrap are you using? Maybe try inspecting your page with firebug (or an equivalent tool) and then inspect the pagination on http://mezzanine.jupo.org/blog/ to get a better of idea of what's going

Re: [mezzanine-users] Mezzanine 3.0.5 released

2014-01-13 Thread Josh Cartmell
...@jupo.org wrote: I believe it was intentional in the contribution it came with but I missed that in the review, so consider it a bug that needs dealing with - mezzanine.urls should contain everything needed. On Tue, Jan 14, 2014 at 9:05 AM, Josh Cartmell joshcar...@gmail.comwrote: Thanks Steve

Re: [mezzanine-users] hi ,could anyone have some suggestion about how to change the outlay of cartridge (mezzanine)

2014-01-16 Thread Josh Cartmell
Hey Lu, I don't think I understand what you are trying to do. What are you trying to accomplish? On Thu, Jan 16, 2014 at 12:19 AM, lu zou zoulucl...@gmail.com wrote: hi ,could anyone have some suggestion about how to change the outlay of cartridge (mezzanine) ? -- You received this

Re: [mezzanine-users] Mezzanine.accounts user profile extending and forms

2014-01-18 Thread Josh Cartmell
Hey mapman, do you need multiple custom forms or do you just want to customize the sign up/edit profile forms? If it's the latter take a look at https://mezzanine.jupo.org/docs/user-accounts.html#public-user-accounts as there are quite a few details on customizing things. On Sat, Jan 18, 2014

Re: [mezzanine-users] Mezzanine.accounts user profile extending and forms

2014-01-18 Thread Josh Cartmell
the default widget for a field, which is quite important for me. Any idea how achieve that? On Saturday, January 18, 2014 11:31:41 PM UTC+1, Josh Cartmell wrote: Hey mapman, do you need multiple custom forms or do you just want to customize the sign up/edit profile forms? If it's the latter

Re: [mezzanine-users] hi ,could anyone have some suggestion about how to change the outlay of cartridge (mezzanine)

2014-01-19 Thread Josh Cartmell
: in the front end On Friday, 17 January 2014 16:03:23 UTC+10, Josh Cartmell wrote: Do you mean in the backend or the front end? On Thu, Jan 16, 2014 at 5:03 PM, lu zou zoulu...@gmail.com wrote: how to customize the themes and widgets of the mezzanine(cartridge) in a more effient way

Re: [mezzanine-users] Re: Templates for multi-tenancy?

2014-01-19 Thread Josh Cartmell
Hey Radomir, there isn't a canonical solution yet. About a year ago I had worked on a template loader that accomplished a similar purpose to HOST_THEMES but didn't have the same limitations. Unfortunately I still haven't gotten around to putting the last finishing touches on it, but if you look

Re: [mezzanine-users] hi ,could anyone have some suggestion about how to change the outlay of cartridge (mezzanine)

2014-01-19 Thread Josh Cartmell
Cool, we'd love to see it when you're done! On Sun, Jan 19, 2014 at 3:07 PM, 邹璐 zoulucl...@gmail.com wrote: thanks,really helpful !! I will have a look at the websites ! I am currently building a online shopping website based on mezzanine ! 2014/1/20 Josh Cartmell joshcar...@gmail.com

Re: [mezzanine-users] Re: Invalid input syntax for type inet on comment save

2014-01-22 Thread Josh Cartmell
Thanks Steve! On Wed, Jan 22, 2014 at 12:22 PM, Stephen McDonald st...@jupo.org wrote: Thanks Josh - fixed here: https://github.com/stephenmcd/mezzanine/commit/9f8a125bdb74f24664d9939ca63fa2876cebbd9c On Thu, Jan 23, 2014 at 6:37 AM, Josh Cartmell joshcar...@gmail.comwrote: Ok, I dug

Re: [mezzanine-users] HOST_THEMES working example?

2014-01-22 Thread Josh Cartmell
You can see the code that I worked on for the template loader at: https://bitbucket.org/stephenmcd/mezzanine/pull-request/35/site_theme-loader Take another read through that thread I posted, the only way you will get base.html to work with the HOST_THEMES is if you directly render base.html from

Re: [mezzanine-users] HOST_THEMES working example?

2014-01-22 Thread Josh Cartmell
No problem, you don't need to use the particular fork of Mezzanine either, it should be easy enough to pull the loader out and add it to your own. On Wed, Jan 22, 2014 at 7:08 PM, Radomir Wojcik radzh...@gmail.com wrote: Thanks Josh! It looks interesting, I will try it out tomorrow :) --

Re: [mezzanine-users] Problems with costum Photo content type

2014-01-27 Thread Josh Cartmell
Hey Markos, have a look at this if you haven't already: https://mezzanine.jupo.org/docs/content-architecture.html#creating-custom-content-types One thing I notice is that although you create PhotoAdmin, you don't register photo with it, you register photo with PageAdmin. On Sun, Jan 26, 2014 at

Re: [mezzanine-users] Re: A Tutorial for New Users

2014-01-27 Thread Josh Cartmell
Hey Sachin, Ross' posts are great and I highly recommend them (so I'm glad you found them). I've also done some blogging about Mezzanine, here is the first post in a series on creating themes, http://bitofpixels.com/blog/mezzatheming-creating-mezzanine-themes-part-1-basehtml/ . Mezzanine is

Re: [mezzanine-users] Mezzanine and Google Analytics

2014-01-27 Thread Josh Cartmell
Mezzanine's built in GA handling doesn't implement universal analytics (the code Google gives you) but it does work. If you just put added your GA id to the site it often takes Google awhile to say that it is installed (even though it starts working instantly). You definitely can override the

Re: [mezzanine-users] Mezzanine and Google Analytics

2014-01-28 Thread Josh Cartmell
, January 27, 2014 2:09:03 PM UTC-5, Josh Cartmell wrote: Mezzanine's built in GA handling doesn't implement universal analytics (the code Google gives you) but it does work. If you just put added your GA id to the site it often takes Google awhile to say that it is installed (even though

Re: [mezzanine-users] Activate reversion on mezzanine 3.0.5

2014-01-29 Thread Josh Cartmell
I think you need to use patch_admin ( http://django-reversion.readthedocs.org/en/latest/admin.html#admin-integration ). If you have trouble getting that working you may need to talk to the django reversion people On Wed, Jan 29, 2014 at 7:13 AM, Ricardo Barbosa opari...@gmail.com wrote: Hi

Re: [mezzanine-users] Cartridge - product thumbnail generation failure

2014-01-31 Thread Josh Cartmell
Even though easy_thumbnail is working, I would still guess this has something to do with PIL. Try to pip install pillow on the live environment and make sure that when it is finishing installing it says that it has jpeg support. Hopefully you can get this worked out. On Fri, Jan 31, 2014 at

Re: [mezzanine-users] DEBUG = True does not show debug in browser

2014-01-31 Thread Josh Cartmell
No idea, it should so there must be something else going on. On Fri, Jan 31, 2014 at 8:16 AM, jaroslaw.b...@gmail.com wrote: DEBUG = True, does not show debug in browser why is that? Regards Jaroslaw -- You received this message because you are subscribed to the Google Groups

Re: [mezzanine-users] Re: to add blog category and month as filters to keywords_for tag

2014-01-31 Thread Josh Cartmell
I think you would need to write your own keywords_for template tag that takes the current category into account and only finds keywords in blog posts in the current category. Here is the current keywords_for:

Re: [mezzanine-users] DEBUG = True does not show debug in browser

2014-01-31 Thread Josh Cartmell
Do you mean why can't you do {{ settings.DEBUG }} in a template? Or are you talking about the debug error messages? On Fri, Jan 31, 2014 at 3:40 PM, Arnold Krille arn...@arnoldarts.de wrote: On Fri, 31 Jan 2014 08:16:02 -0800 (PST) jaroslaw.b...@gmail.com wrote: DEBUG = True, does not show

Re: [mezzanine-users] make the main page(index.html) changed into the shopping page (category.html)

2014-01-31 Thread Josh Cartmell
Your slug isn't a slug it's the name of a template. Look in the default urls.py provided in a mezzanine project and there is an example of how to make the home page an editable page. On Fri, Jan 31, 2014 at 5:21 PM, lu zou zoulucl...@gmail.com wrote: using this code to point the main page

Re: [mezzanine-users] Re: editable homepage, theme and mobile

2014-02-01 Thread Josh Cartmell
That seems like an approach that could work. I think the mobile device handling was made before making the homepage editable was enabled so it's definitely possible that their are some conflicts. I think when the homepage is editable it will specifically look for a template called

Re: [mezzanine-users] Mezzanine 3.0.7 released

2014-02-01 Thread Josh Cartmell
Thanks Steve On Sat, Feb 1, 2014 at 6:02 PM, Stephen McDonald st...@jupo.org wrote: Hi all, I've just pushed Mezzanine 3.0.7 to PyPi This release contains a handful of minor bugfixes: - Duplicate blogs posts displayed with Django 1.6.1 when listing by tag - Error when clicking lost

Re: [mezzanine-users] Bad request (400)

2014-02-03 Thread Josh Cartmell
Hey Sam, I'm not sure if it worked on earlier versions of Mezzanine, but you can do: pip install mezzanine==3.0.0 to specifically install Mezzanine 3.0.0. You can of course change 3.0.0 to whatever version you want. On Mon, Feb 3, 2014 at 3:56 PM, Stephen McDonald st...@jupo.org wrote: I've

Re: [mezzanine-users] Mezzanine profiles

2014-02-07 Thread Josh Cartmell
, that is exactly what I had in mind! But, how do I override a view (because I want to add custom context)? I know how to override a template, but a view? On Wednesday, February 5, 2014 6:37:59 PM UTC, Josh Cartmell wrote: Hey oneloop, Mezzanine's profiles don't use Pages at all. They just use

Re: [mezzanine-users] Re: Omitting empty fields from form email

2014-02-07 Thread Josh Cartmell
No problem ;) On Thu, Feb 6, 2014 at 9:23 PM, Eduardo Rivas jerivasmel...@gmail.comwrote: Thanks Josh! I ended up not needing this but your solution is definitely the way to go. -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To

Re: [mezzanine-users] gallery zip import and collections directory

2014-02-13 Thread Josh Cartmell
Hey frederico, I would guess that is the same issue with serving media on the dev server that was recently fixed, see discussion at https://groups.google.com/d/msg/mezzanine-users/SnSEsx0g3lo/DdI4KZW8v94J On Thu, Feb 13, 2014 at 3:58 PM, Federico Bruni fedel...@gmail.com wrote: I've realized

Re: [mezzanine-users] cartridge - multiple select for product category

2014-02-14 Thread Josh Cartmell
an ailbity to select C2.1 and C2.2. If two categories are selected (they should be highlighted in menu) all products with both categories selected should be displayed Regards понедельник, 10 февраля 2014 г., 21:49:09 UTC+4 пользователь Josh Cartmell написал: Hey Andrey, I don't think I

Re: [mezzanine-users] Admin navigation

2014-02-17 Thread Josh Cartmell
Hey Steve, that looks pretty cool! I agree with Luc that it would be nice to make it collapse able. It also might be nice if the menu scrolled independently from the rest of the page. Last question, what happens on smaller screens? On Mon, Feb 17, 2014 at 12:23 AM, Luc Milland

Re: [mezzanine-users] jquery resize error

2014-02-17 Thread Josh Cartmell
Hey Ross, I've seen this before. Tell me if I'm wrong but do you only see it when you log in as an admin? In my experience, it had something to do with a jquery script trying to use the normal jquery resize functionality (https://api.jquery.com/resize/) and not working because ba-resize changes

Re: [mezzanine-users] Any thoughts or guidance to using Cartridge to sell downloadable software?

2014-02-21 Thread Josh Cartmell
Hey Tom, I've thought about this before when I built http://mezzathe.me. I ended up deciding that my use case was specific/simple enough that using Cartridge wouldn't have been helpful and rolled my own. With mezzatheme I didn't want/need a shopping cart and assumed people would only ever want

Re: [mezzanine-users] Any thoughts or guidance to using Cartridge to sell downloadable software?

2014-02-22 Thread Josh Cartmell
to handle payments? Recommendations? Service/Software? On Friday, February 21, 2014 10:28:28 PM UTC-6, Tom Brander wrote: Thanks, useful... On Friday, February 21, 2014 4:17:50 PM UTC-6, Josh Cartmell wrote: Hey Tom, I've thought about this before when I built http://mezzathe.me. I ended up

Re: [mezzanine-users] Admin navigation

2014-02-23 Thread Josh Cartmell
? On Tue, Feb 18, 2014 at 10:14 AM, Stephen McDonald st...@jupo.orgwrote: On Tue, Feb 18, 2014 at 5:10 AM, Josh Cartmell joshc...@gmail.comwrote: Hey Steve, that looks pretty cool! I agree with Luc that it would be nice to make it collapse able. It also might be nice if the menu

Re: [mezzanine-users] Any thoughts or guidance to using Cartridge to sell downloadable software?

2014-02-23 Thread Josh Cartmell
No problem, let us know how it goes! On Sat, Feb 22, 2014 at 6:47 PM, Tom Brander tombran...@gmail.com wrote: thanks again!! On Saturday, February 22, 2014 1:58:28 PM UTC-6, Josh Cartmell wrote: I really like Stripe, it's incredibly easy to use. Here are their integration docs, https

Re: [mezzanine-users] Stripe payments

2014-02-25 Thread Josh Cartmell
Hey Tom, is this for use with Cartridge or something else? If something else I have used something like the following. in the template: script src=https://checkout.stripe.com/checkout.js;/script script $(document).ready(function() { var handler = StripeCheckout.configure({ key: '{{

Re: [mezzanine-users] Stripe payments

2014-02-26 Thread Josh Cartmell
payment handler? On Tuesday, February 25, 2014 3:13:12 PM UTC-6, Josh Cartmell wrote: Hey Tom, is this for use with Cartridge or something else? If something else I have used something like the following. in the template: script src=https://checkout.stripe.com/checkout.js;/script script

Re: [mezzanine-users] Full CRUD on Forms segregated by signed on user

2014-02-26 Thread Josh Cartmell
Hey Tom, here is a form that is in the demo site right now, http://mezzanine.jupo.org/en/admin/forms/form/49/. Click the view entries button near the upper right and it will let you look through, filter on the entries. I don't think you can update things, but you can delete old entries. On

Re: [mezzanine-users] Stripe payments

2014-02-26 Thread Josh Cartmell
, February 26, 2014 1:14:29 PM UTC-6, Josh Cartmell wrote: Ken is exactly correct. My comment was that the way Stripe encourages you to use them is through their checkout javascript which sends the CC info to Stripe's servers and returns a token that your server can use to create the charge

Re: [mezzanine-users] Full CRUD on Forms segregated by signed on user

2014-02-26 Thread Josh Cartmell
their data via an Update form could delete data (while history avail in admin) So I'm wondering if I need to travel this road? http://rayed.com/wordpress/?p=1266 On Wednesday, February 26, 2014 1:20:03 PM UTC-6, Josh Cartmell wrote: Hey Tom, here is a form that is in the demo site right now

[mezzanine-users] Tax handling in cartridge

2014-02-26 Thread Josh Cartmell
It's been awhile since I've used Cartridge in a project, but I have one that I'm working on right now. I was pleased to see that Cartridge now has tax support, but I'm running into some issues. Right now for my tax handler I have: total = request.cart.total_price() if

Re: [mezzanine-users] Tax handling in cartridge

2014-02-26 Thread Josh Cartmell
there was to just convert Decimal to string and back again where appropriate - if you're able to work on applying the same approach to tax handling, that'd be great. Either way I've opened an issue here: https://github.com/stephenmcd/cartridge/issues/176 On Thu, Feb 27, 2014 at 11:27 AM, Josh

Re: [mezzanine-users] Re: Using the stripe_api?

2014-02-28 Thread Josh Cartmell
Hey Tom, I think the problem is that you imported the module that contains the stripe payment handler, but you didn't import the handler itself. i.e.: SHOP_HANDLER_PAYMENT = cartridge.shop.payment.stripe_api should be SHOP_HANDLER_PAYMENT = cartridge.shop.payment.stripe_api.process I didn't

Re: [mezzanine-users] Re: Restricting shop to active users only

2014-03-03 Thread Josh Cartmell
Hey Ed, you can also do something like http://stackoverflow.com/a/5771286/593283, I'm not sure if that would be a workable solution for you. If you wanted to hide products across the board you could connect to the product pre save signal and uncheck the box programatically. On Mon, Mar 3, 2014

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

2014-03-04 Thread Josh Cartmell
To answer your last question Tom, fabric isn't intended to be used for development, it is intended for production and will take a hosting environment from blank OS to ready to serve your site automagically. On Mon, Mar 3, 2014 at 9:25 PM, Stephen McDonald st...@jupo.org wrote: As for the

Re: [mezzanine-users] Form validation in Page Processors

2014-03-04 Thread Josh Cartmell
Hey Danny, Check out the example at https://mezzanine.jupo.org/docs/content-architecture.html#page-processors, I think it will get you started down the right path and shows how to handle validation in a processor. On Tue, Mar 4, 2014 at 9:37 AM, Danny flack flackatt...@gmail.com wrote: Is it

Re: [mezzanine-users] Re: Custom Python For Info In Sidebar

2014-03-07 Thread Josh Cartmell
Hey Derek, a page processor could work, although they get registered to a particular page type or slug so it wouldn't run on *all* pages. I'm not sure what you meant about a huge warning about not working with newer versions of Mezz, they definitely do work in the latest Mezzanine. Another

Re: [mezzanine-users] Re: Custom Python For Info In Sidebar

2014-03-07 Thread Josh Cartmell
register it with Mezz? Thanks for the help! Derek On Friday, March 7, 2014 11:22:33 AM UTC-7, Josh Cartmell wrote: Hey Derek, a page processor could work, although they get registered to a particular page type or slug so it wouldn't run on *all* pages. I'm not sure what you meant about

Re: [mezzanine-users] Re: Custom Python For Info In Sidebar

2014-03-10 Thread Josh Cartmell
Great stuff, thanks for sharing Derek and I'm glad you got it working On Fri, Mar 7, 2014 at 11:23 PM, Stephen McDonald st...@jupo.org wrote: That's really cool, thanks Derek. On Sat, Mar 8, 2014 at 11:43 AM, Derek Gaston fried...@gmail.com wrote: Just thought you guys might want to see

Re: [mezzanine-users] Re: Best way to show user-specific info?

2014-03-14 Thread Josh Cartmell
Hey Niles, Mezzanine is Django, so adding a Django app to a Mezzanine project should be the same as adding it to any other Django project. In general I add the app to INSTALLED_APPS, sync the db/run migrations and add any necessary urls to my project's urls.py file. Those should be the basic

Re: [mezzanine-users] Re: Do I have a basic flaw in my Mezzanine configuration?

2014-03-14 Thread Josh Cartmell
Hey Ross, I don't have experience with S3, so I don't know if this applies, but in the past I have seen the incompressible file error if I accidentally include something within the compress templatetags that isn't on the same local filesystem as the site. Someone with more experience may know how

Re: [mezzanine-users] Multilingual website

2014-03-17 Thread Josh Cartmell
Hey Cajoline, another option that will work easily with mezzanine would be to make fr.mysite.com, en.mysite.com, etc... Mezzanine has build in support for hosting multiple sites from a single instance, in this case your sites would just be translations. Regards, Josh On Sun, Mar 16, 2014 at

Re: [mezzanine-users] Multilingual website

2014-03-18 Thread Josh Cartmell
to duplicate pages not to create each time the tree for each site? For example completely copy a website and translate it, not recreate all the pages one by one? thank you Le lundi 17 mars 2014 21:32:54 UTC+1, Josh Cartmell a écrit : Hey Cajoline, another option that will work easily

Re: [mezzanine-users] Cannot save new pages after launching site?

2014-03-19 Thread Josh Cartmell
. As a test, I just ran pip install mezzanine --upgrade on my local version...but I think I broke it. I am getting an operational error: no such column: pages_page.created On Monday, February 10, 2014 11:26:39 AM UTC-8, Josh Cartmell wrote: Hey Scott, can you verify that the versions

Re: [mezzanine-users] Multilingual website

2014-03-19 Thread Josh Cartmell
You should be able to do something similar to my suggestion above. Not ideal, but it *should* work On Tue, Mar 18, 2014 at 10:07 PM, Mehmet Özgür Bayhan mozgurbay...@gmail.com wrote: What about cartridge? 18 Mart 2014 Salı tarihinde, Josh Cartmell joshcar...@gmail.com yazdı: Hey Cajoline

Re: [mezzanine-users] Re: Why is mezzanine.core.models.Slugged.slug not having `unique` (and `db_index`) set to True?

2014-03-19 Thread Josh Cartmell
It might be because a single Mezzanine instance can handle multiple sites (different domains that have different content). Two different site's could have page's with the exact same slugs which are stored in the same database. On Wed, Mar 19, 2014 at 3:46 AM, lajarre alexandre.haj...@gmail.com

Re: [mezzanine-users] Cannot save new pages after launching site?

2014-03-19 Thread Josh Cartmell
! Scott On Wednesday, March 19, 2014 12:46:15 PM UTC-7, Josh Cartmell wrote: Hey Scott, have you configured the ADMINS setting in your settings.py file? If you have it should email you detailed error reports whenever the site produces a 500 error. Alternatively does anything more verbose

Re: [mezzanine-users] redirecting to the first child page.

2014-03-19 Thread Josh Cartmell
I would make the content actually be contained on the Parent page, and then make the child page a link page type (added through the page admin) and point it at the parent. On Wed, Mar 19, 2014 at 1:55 PM, wahid Mohammad Abdul Wahid wahidrah...@gmail.com wrote: Hello everyone I am new to

Re: [mezzanine-users] Re: Carousel for all the pages

2014-03-21 Thread Josh Cartmell
You could possibly use a templatetag, but if you have a working solution now I wouldn't worry too much about it On Thu, Mar 20, 2014 at 3:30 PM, laperl japo...@gmail.com wrote: Hello, finally I found the solution using context processors. Are there any other better form to do that? Thank

Re: [mezzanine-users] Mezzanine migration error help required.

2014-03-21 Thread Josh Cartmell
Hey Karthik, you need to comment things like that out in your own migrations. Open up each of your migrations files and search for 'mezzanine.generic.fields' and comment out any line that contains it and is in the models dict. On Fri, Mar 21, 2014 at 8:58 AM, Karthik Kannan

Re: [mezzanine-users] Mezzanine migration error help required.

2014-03-21 Thread Josh Cartmell
with 0001_initial.py and goes until 0006. Thanks once again! :) Karthik On Friday, March 21, 2014 9:34:45 PM UTC+5:30, Josh Cartmell wrote: Hey Karthik, you need to comment things like that out in your own migrations. Open up each of your migrations files and search for 'mezzanine.generic.fields

Re: [mezzanine-users] Fab Script ImportError: No module named future.builtins

2014-03-21 Thread Josh Cartmell
Hey Ziwei, you are correct, fabric doesn't currently support python 3. Per http://docs.fabfile.org/en/1.8/ is works with 2.5-2.7. On Sun, Mar 16, 2014 at 10:42 PM, Ziwei Zhou ziweiz...@gmail.com wrote: Hi Is the current fabfile.py working in python 3 environment? I tried to run fab under

Re: [mezzanine-users] Injecting new fields in galleries: Questions

2014-03-24 Thread Josh Cartmell
Hey laperal, Near the bottom of settings.py you see try: from local_settings import * except ImportError: pass You could probably do something similar to import things from your app. You only need to unregister/register if you want to change the admin class and use your own. I wrote

Re: [mezzanine-users] Injecting new fields in galleries: Questions

2014-03-25 Thread Josh Cartmell
No problem, glad it could help =) On Tue, Mar 25, 2014 at 11:17 AM, laperl japo...@gmail.com wrote: Thank you very much Josh, very clear, and good job with your articles in bitofpixels :) El dilluns 24 de març de 2014 16:00:46 UTC-5, Josh Cartmell va escriure: Hey laperal, Near

Re: [mezzanine-users] Tried 3-4 heroku deployment tutorials but stuck on each one.

2014-03-25 Thread Josh Cartmell
Hey Kyle, I've never used Heroku, are you set on using it? The fabfile that comes bundled with Mezzanine will deploy to a vanilla ubuntu VPS and is basically completely automated. I also have had good success hosting Mezzanine on Webfaction and can deploy there fairly easily. On Tue, Mar 25,

Re: [mezzanine-users] Re: Subclass model of form page

2014-03-28 Thread Josh Cartmell
Hey Cajoline, I would use field injection to add the new fields you want to the current form class, https://mezzanine.jupo.org/docs/model-customization.html#field-injection On Fri, Mar 28, 2014 at 5:23 PM, Cajoline cont...@circonflex.net wrote: I'll rephrase what I'd like to do :) I would

Re: [mezzanine-users] Re: Subclass model of form page

2014-03-29 Thread Josh Cartmell
UTC+1, Josh Cartmell a écrit : Hey Cajoline, I would use field injection to add the new fields you want to the current form class, https://mezzanine.jupo.org/ docs/model-customization.html#field-injection On Fri, Mar 28, 2014 at 5:23 PM, Cajoline con...@circonflex.net wrote: I'll rephrase

Re: [mezzanine-users] Default fabfile deploy, Internal Server Error

2014-03-30 Thread Josh Cartmell
, and NGINX config - triple check those since the behaviour changes with DEBUG False. On Sat, Mar 29, 2014 at 5:25 AM, Josh Cartmell joshcar...@gmail.comwrote: I'm working on putting a dev server up for a client (to show them my progress) and figured I could do that quickly with the bundled

Re: [mezzanine-users] Default fabfile deploy, Internal Server Error

2014-03-31 Thread Josh Cartmell
if gunicorn produces a separate log file from niginx and supervisor. Thanks! On Sun, Mar 30, 2014 at 10:06 PM, Josh Cartmell joshcar...@gmail.comwrote: Thanks for giving it a shot Steve! I didn't get it to work yet (since it was just a non production demo I was satisfied to leave

Re: [mezzanine-users] Re: Subclass model of form page

2014-03-31 Thread Josh Cartmell
: Ok thank you, How can I do to create my own page form subclass without error? because I prefer this solution that uses field injection Thank you Le samedi 29 mars 2014 20:37:31 UTC+1, Josh Cartmell a écrit : Yeah, your options are to use field injection or create you own page subclass

Re: [mezzanine-users] Default fabfile deploy, Internal Server Error

2014-03-31 Thread Josh Cartmell
Thanks Matt and Doug, that's very helpful. So logging is disabled by default and then enabled if you specify a file location? On Mon, Mar 31, 2014 at 2:05 PM, Matthew Summers msummer...@gmail.comwrote: Just for reference, --log-file and --error-logfile are the same

Re: [mezzanine-users] Default fabfile deploy, Internal Server Error

2014-03-31 Thread Josh Cartmell
Thanks Steve and Matt, I'm running with DEBUG = False now which is great. I think you are spot on Steve, I see now that the supervisor directory in /var/log has three log files, and two of them appear to be specific to gunicorn. I'm guessing that will help me moving forwards, and is probably

Re: [mezzanine-users] Where to define Proccessor_for.py

2014-04-01 Thread Josh Cartmell
Don't modify any of the Mezzanine code directly. You need to create an app of your own, add it to INSTALLED_APPS and inside of that app create a page_processors.py file. After that it will be automatically picked up. On Mon, Mar 31, 2014 at 10:47 PM, Tameen Malik tame...@gmail.com wrote: All

Re: [mezzanine-users] Re: What to do next?

2014-04-01 Thread Josh Cartmell
I'm not sure, are you getting an error message? On Tue, Apr 1, 2014 at 1:21 AM, Tameen Malik tame...@gmail.com wrote: *urls.py* urlpatterns += patterns('', url(r'^/xyz/$', create_Book)) -- You received this message because you are subscribed to the Google Groups Mezzanine Users

Re: [mezzanine-users] Re: Page Processors are not working!

2014-04-01 Thread Josh Cartmell
Is author a model in one of your apps? TO be effective with Mezzanine you need to have a good understanding of Django, I would suggest going through the Django tutorial, https://docs.djangoproject.com/en/1.7/intro/tutorial01/ On Tue, Apr 1, 2014 at 3:35 AM, Tameen Malik tame...@gmail.com wrote:

Re: [mezzanine-users] Page in admin panel

2014-04-01 Thread Josh Cartmell
Hey Paullo, at this point if you go to Content - Pages in the admin you should be able to choose Event in the Add dropdown. What sort of functionality are you looking for? On Tue, Apr 1, 2014 at 7:05 AM, Paullo paul.c.h...@gmail.com wrote: Hi, I've created modules that work as expected but

Re: [mezzanine-users] Re: Page Processors are not working!

2014-04-01 Thread Josh Cartmell
Great, I'm glad you worked it out ;) On Tue, Apr 1, 2014 at 9:20 AM, Tameen Malik tame...@gmail.com wrote: Yes author is model @Josh Thank's Allah, i solve this problem. What i did is i decided to start from simple model and simple example. *models.py file:* from django.db import

Re: [mezzanine-users] Page in admin panel

2014-04-01 Thread Josh Cartmell
April 2014 17:09:48 UTC+1, Josh Cartmell wrote: Hey Paullo, at this point if you go to Content - Pages in the admin you should be able to choose Event in the Add dropdown. What sort of functionality are you looking for? On Tue, Apr 1, 2014 at 7:05 AM, Paullo paul@gmail.com wrote: Hi

Re: [mezzanine-users] Re: Tried 3-4 heroku deployment tutorials but stuck on each one.

2014-04-01 Thread Josh Cartmell
Hey Kyle, I was also struggling getting things going on Digital Ocean earlier in the week. I just wrote up a blog post on deploying to it: http://bitofpixels.com/blog/deploying-mezzanine-to-digital-ocean-using-the-included-fabfile/ Following those steps works for me, hopefully it helps! On

Re: [mezzanine-users] Unable to view forms pages on deployed site

2014-04-02 Thread Josh Cartmell
My best guess is that for some reason form isn't ending up in the context. Did you modify the templates for Form's at all? On Wed, Apr 2, 2014 at 9:59 AM, Devon Campbell de...@radworks.io wrote: I just deployed my Mezzanine site, and I'm not able to view forms on the live site. Here's the

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

2014-04-02 Thread Josh Cartmell
Here's what the one I used to deploy to Digital Ocean looked like: FABRIC = { SSH_USER: do, # SSH username SSH_PASS: , # SSH password (consider key-based authentication) SSH_KEY_PATH: /Users/josh/.ssh/id_rsa.pub, # Local path to SSH key file, for key-based auth HOSTS:

Re: [mezzanine-users] Fab Script ImportError: No module named future.builtins

2014-04-02 Thread Josh Cartmell
that tutorial. Any idea what I might need to change? On Friday, March 21, 2014 3:05:23 PM UTC-6, Josh Cartmell wrote: Hey Ziwei, you are correct, fabric doesn't currently support python 3. Per http://docs.fabfile.org/en/1.8/ is works with 2.5-2.7. On Sun, Mar 16, 2014 at 10:42 PM, Ziwei Zhou

Re: [mezzanine-users] Fab Script ImportError: No module named future.builtins

2014-04-04 Thread Josh Cartmell
what if you run: sudo cat /etc/default/locale I'm at a bit of a loss, never seen that error before =/ On Fri, Apr 4, 2014 at 11:41 AM, Kyle Pennell kpenn...@gmail.com wrote: fab settings seems to be right there as well: REQUIREMENTS_PATH: requirements.txt, # Path to pip requirements,

Re: [mezzanine-users] Subclassing SiteRelated

2014-04-09 Thread Josh Cartmell
Yes, Mezzanine's multi tenancy features rely on the fields/managers added by SiteRelated ;) On Wed, Apr 9, 2014 at 12:23 PM, Matt Mansour slackbabb...@gmail.comwrote: Howdy all - With a quick glance at the core I think I know the answer but thought I'd post the question as well. Would the

Re: [mezzanine-users] Fab Script ImportError: No module named future.builtins

2014-04-10 Thread Josh Cartmell
Could make the fabric settings even easier. Make sure I have the app in the right place. On Wednesday, April 9, 2014 6:21:56 PM UTC-5, Josh Cartmell wrote: I'm not sure I understand your question, this is the repo I deployed: https://bitbucket.org/joshcartme/vanilla_mezz/src

Re: [mezzanine-users] Fabric Settings Path, PROJECT_NAME trouble, Repository not found

2014-04-10 Thread Josh Cartmell
I think you need to set the REPO_URL, otherwise it has no way to get the project onto the remote server. On Thu, Apr 10, 2014 at 11:22 AM, Kyle Pennell kpenn...@gmail.com wrote: Getting closer with deploying by using Fabric. I think my problem is the PROJECT_NAME. Getting this error after

Re: [mezzanine-users] Production django server : NoReverseMatch: Reverse for 'login' with arguments '()' and keyword argum

2014-04-21 Thread Josh Cartmell
Is mezzanine.accounts in your INSTALLED_APPS in your project's settings.py? On Sat, Apr 19, 2014 at 4:24 AM, 董健 ddongjian0...@gmail.com wrote: i got NoReverseMatch when deloy cartridge to the webfaction. i can not not figure out what happened. the problem annoyed me for two days. any help

Re: [mezzanine-users] Call Multiplae Pages in Single Page

2014-05-08 Thread Josh Cartmell
Definitely possible, you could make a custom homepage page type, add then add optional foreignkeys to other pages to display in addition to the homepage content. Here are the docs on creating custom content types: https://mezzanine.jupo.org/docs/content-architecture.html#the-page-model On Thu,

Re: [mezzanine-users] Internal Server Error running gunicorn; ImportError: No module named theme

2014-05-08 Thread Josh Cartmell
I'm guessing that theme (is it an app in your project) isn't being added to your python path. When DEBUG is true everything in your project is automatically added to the python path, when it is false that isn't necessarily the case. On Sat, May 3, 2014 at 10:28 PM, Jared Nielsen

Re: [mezzanine-users] Timezone issue in Django 1.6+ on MySQL

2014-05-08 Thread Josh Cartmell
Hey Alex, I'm glad you figured it out. If you could put together a pull request with the documentation changes that is probably the best way to get them updated. Thanks! On Mon, May 5, 2014 at 6:08 AM, Alex dil@gmail.com wrote: After importing blog entries from wordpress I found that

Re: [mezzanine-users] Redirect homepage template to customized html instead of pages/index.html

2014-05-13 Thread Josh Cartmell
Hey Wesley, making the homepage a page is a bit of a special case in Mezzanine and I think it always and only looks for pages/index.html. I could be wrong about that. I actually wrote the referenced article and the reason I always have pages/index.html subclass pages/homepage.html is so that if

Re: [mezzanine-users] How to refer filefield src in template

2014-05-13 Thread Josh Cartmell
在 2014年5月13日星期二UTC+8下午9时45分02秒,Josh Cartmell写道: What ends up as the src of the img tag? On Tue, May 13, 2014 at 6:10 AM, Wesley nis...@gmail.com wrote: Hi guys, I hit a proble when referring filefield in template. Here is model: class Slide(Orderable): ''' A slide in a slider

Re: [mezzanine-users] Deploy

2014-05-14 Thread Josh Cartmell
Hey Silvio, you could make it a private repository on Github or Bitbucket, that way only you would have access. When you run the fabric script it tries to pull in your project from the repo url you have in the settings. On Wed, May 14, 2014 at 9:18 AM, Silvio Siefke siefkesil...@gmail.comwrote:

Re: [mezzanine-users] Mezzanine under url prefix

2014-05-16 Thread Josh Cartmell
Hey Scott, I could be wrong, but I think you could do that by opening your project's urls.py and just changing the url that the admin is registered under. Currently you should have something like: (^admin/, include(admin.site.urls)), You could change it to: (^whatever-prefix/admin/,

Re: [mezzanine-users] Re: editable.css not styling on production server

2014-05-19 Thread Josh Cartmell
I just saw this happen as well, for me moving {% include includes/footer_scripts.html %} in the head of base.html out of the compress tag fixed it. I'm not sure when or why it was moved to the head (it used to be in the footer like's it's path implies) but that seems to be at least partially

Re: [mezzanine-users] Re: editable.css not styling on production server

2014-05-19 Thread Josh Cartmell
like they have always been. On Mon, May 19, 2014 at 11:29 AM, Josh Cartmell joshcar...@gmail.comwrote: I just saw this happen as well, for me moving {% include includes/footer_scripts.html %} in the head of base.html out of the compress tag fixed it. I'm not sure when or why it was moved

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

2014-05-21 Thread Josh Cartmell
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 of the code). On Wed, May 21, 2014 at 2:13 AM, Shaunak Sinha shaunak@gmail.comwrote: Hi Everyone, I am new to Mezzanine and am not

  1   2   3   >