Re: [mezzanine-users] Cartridge v5.0.0-rc.1

2021-11-28 Thread Joseph Mohan
Thanks Danny, that was the way to go

https://github.com/stephenmcd/mezzanine/discussions/2004

On Sunday, 17 October 2021 at 23:48:30 UTC+1 mol...@gmail.com wrote:

> There's an open pull request from petedermott here which does a lot of the 
> preliminary work: https://github.com/stephenmcd/cartridge/pull/346
>
> You could potentially look at his fork along with your other changes to 
> get Cartridge up to date.
>
> (I'm using a highly customised version of Cartridge for my site, but I 
> made use of Pete's work to update my own repo to get my custom Cartridge 
> working with Mezzanine 5.0.0-alpha1 and Django 2.2.x)
>
> Hope this helps.
>
> Seeya. Danny.
>
> On Mon, 18 Oct 2021 at 00:10, Joseph Mohan  wrote:
>
>> Is anybody currently working on bringing cartridge inline with mezzanine 
>> v5.0.0-rc.1 
>> <https://github.com/stephenmcd/mezzanine/releases/tag/v5.0.0-rc.1>
>>
>> If not, I'm happy to submit a PR, although having issues following the 
>> contribution instructions from 
>> https://github.com/stephenmcd/cartridge#contributing
>>
>> I'm unable to run:
>>
>> python setup.py develop 
>>
>> And install the current master branch of mezzanine. I've tried changing 
>> cartridge/project_template/requirements.txt to 
>>
>> Mezzanine==5.0.0a1 and Mezzanine==.dev0
>>
>> But I'm not really sure what I'm doing here (out of touch with python 
>> package management). Do I even need to bother with this step? The changes 
>> are all pretty simple import changes.
>>
>> BTW My changes in cartridge are working with the current master branch of 
>> mezzanine installed by :
>>
>> pip install git+https://github.com/stephenmcd/mezzanine
>>
>> Is this also correct?
>>
>> Not actually contributed to a public project before so forgive me if 
>> there's follow up questions I apoligise in advance. 
>>
>> Joe
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to mezzanine-use...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/mezzanine-users/f1dda0e3-842f-493f-8155-2c038362c099n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/mezzanine-users/f1dda0e3-842f-493f-8155-2c038362c099n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mezzanine-users/0447168c-03e8-4b1d-9822-73163dffbd07n%40googlegroups.com.


[mezzanine-users] Cartridge v5.0.0-rc.1

2021-10-17 Thread Joseph Mohan
Is anybody currently working on bringing cartridge inline with mezzanine 
v5.0.0-rc.1 


If not, I'm happy to submit a PR, although having issues following the 
contribution instructions from 
https://github.com/stephenmcd/cartridge#contributing

I'm unable to run:

python setup.py develop 

And install the current master branch of mezzanine. I've tried changing 
cartridge/project_template/requirements.txt to 

Mezzanine==5.0.0a1 and Mezzanine==.dev0

But I'm not really sure what I'm doing here (out of touch with python 
package management). Do I even need to bother with this step? The changes 
are all pretty simple import changes.

BTW My changes in cartridge are working with the current master branch of 
mezzanine installed by :

pip install git+https://github.com/stephenmcd/mezzanine

Is this also correct?

Not actually contributed to a public project before so forgive me if 
there's follow up questions I apoligise in advance. 

Joe

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mezzanine-users/f1dda0e3-842f-493f-8155-2c038362c099n%40googlegroups.com.


Re: [mezzanine-users] Change blog url

2020-05-27 Thread Joseph Mohan
Sorry on mobile, it’s a mezzanine setting.

Settings.py

BLOG_URL = “news”

On Wed, 27 May 2020 at 14:17, Nathan Fisher  wrote:

> This might be simple, might not. I haven't used Mezzanine in several years
> and have just come back to it. I would like to change the base url for the
> blog from blog to news. Any pointers on where to start?
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mezzanine-users/c8b716a2-5bdc-4511-898a-a3bade8c63ee%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mezzanine-users/CAJ8i0bnyJTZCptwEb_46bHc3HHLHohMPjRt0X2DCpHv-Hcu1Rg%40mail.gmail.com.


Re: [mezzanine-users] Change blog url

2020-05-27 Thread Joseph Mohan
On Wed, 27 May 2020 at 14:17, Nathan Fisher  wrote:

> This might be simple, might not. I haven't used Mezzanine in several years
> and have just come back to it. I would like to change the base url for the
> blog from blog to news. Any pointers on where to start?
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mezzanine-users/c8b716a2-5bdc-4511-898a-a3bade8c63ee%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mezzanine-users/CAJ8i0bkGDqpP2mCWP%3DeeemtGTrDLeE4eBWLCL0SL10A%2BtZHyiw%40mail.gmail.com.


Re: [mezzanine-users] Implementing A Directory

2019-10-19 Thread Joseph Mohan
Might be better to use the built in settings from mezzanine.conf:
http://mezzanine.jupo.org/docs/configuration.html

Then you could store and use that information anywhere you like on the site
easily.

Joe

On Sat, Oct 19, 2019 at 3:30 AM Fendy Pierre  wrote:

> Hello,
>
> I'm fairly new to Mezzanine. I'm creating a website for a non profit
> organization. Mezzanine offers most of the requirements except a
> directory.   What is the best way of implementing a directory of
> businesses? Their model are laid out as follows:
>
> class BusinessCategory(models.Model):
>  name = models.CharField(max_length=50)
>
>  def __str__(self):
>  return self.name
>
>
> class Business(Page):
>  name = models.CharField(max_length=50)
>  about = models.CharField(max_length=300, blank=True)
>  location = models.CharField(max_length=100, blank=True)
>  category = models.ForeignKey("BusinessCategory")
>  cover = models.ImageField(upload_to="businesses", blank=True)
>  website = models.URLField(blank=True)
>  phone_number = models.CharField(max_length=10, blank=True)
>  hours = models.CharField(max_length=50, blank=True)
>  days = models.CharField(max_length=50, blank=True)
>  email = models.EmailField(blank=True)
>
>  def __str__(self):
>  return self.name
>
>
>
>
> Any advice as to the ideal way of implementing this?
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mezzanine-users/00877893-255f-45fc-9e4b-c39a7dd1c91b%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mezzanine-users/CAJ8i0bk6hb0DV7K5gAbyw6pGJw%2BQ10fqm8mv9EddpKjX329Aaw%40mail.gmail.com.


Re: [mezzanine-users] ConnectionRefusedError at /shop/checkout/ Stripe

2018-01-20 Thread Joseph Mohan
Never leave DEBUG = False on a production site.

Especially when you have Stripe set to production mode!


On Thu, Jan 18, 2018 at 9:54 PM, Barbara D  wrote:

> Hi,
>
> I followed the instructions here for integrating Stripe, and am serving
> the page on a secure connection, but am getting this error (see screenshot
> below). I did notice that when it gets to this page, Google changes it from
> "secure" to "not fully secure" and the Developer Console gives this
> warning:
>
> "Mixed Content: The page at 'https://www.boxplotanalytics.
> com/shop/checkout/' was loaded over a secure connection, but contains a
> form that targets an insecure endpoint 'http://dpaste.com/'. This
> endpoint should be made available over a secure connection."
>
> Any idea how to fix this?
>
> Thank you,
> Barb
>
>
> 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Newbie user -- How do I change where `about/` goes to?

2017-10-12 Thread Joseph Mohan
http://mezzanine.jupo.org/docs/content-architecture.html#page-templates

You're missing the simplicity of this

So let's say you want a page "Cakes"

Go to Content/Pages and a create a new page (can be of any type,
Richtext/form etc) When you create the new page it will take the title you
entered and turn that into the Slug.

So if your page was called "Cakes" the URL would now be 127.0.0.1:8000/cakes
and you would create the template to be customised in
/templates/pages/cakes.html

In your case:  "About Canvas" | 127.0.0.1:8000/about-canvas.html  |
templates/pages/about-canvas.html

If you want the page to have a different Title to the Slug, you can edit
the Meta section of a page.

Joe



On Thu, Oct 12, 2017 at 1:57 AM, Tom Tanner <dontsendemailher...@gmail.com>
wrote:

> Hm, I'm still doing something wrong. Here's what
> `PROJECT/myTheme/theme/templates/about/about-canvas.html` looks like now:
>
>
> {% extends "base.html" %}
> {% load mezzanine_tags i18n %}
>
>
> {% block meta_title %}
>  {% if page %}
>  {{ page.meta_title }}
>  {% else %}
>  {% trans "About" %}
>  {% endif %}
> {% endblock %}
>
>
> TESTING HERE
>
>
> {% include "includes/contact_form.html" %}
>
>
> `PROJECT/myTheme/theme/templates/about/includes/contact_form.html still
> looks the same, though I did change the hyphens in the filenames to
> underscores, as you may notice.
>
> I copied the contact form HTML from one of the core Mezzanine templates,
> so I'm not totally sure what I'm doing.
>
> To give you a better idea of what I'm trying to do... If you open the
> Admin section of a new Mezzanine site, check out the "Pages" section.
> There's a "Contact" page. I'm trying to change that page into my "About"
> page. I'd like the page to include info about the site, along with the
> contact form that comes along with it by default. I thought copying the
> template at `mezzanine/forms/templates/pages/form.html` would help with
> this.
>
> On Wednesday, October 11, 2017 at 3:35:40 AM UTC-4, Joseph Mohan wrote:
>>
>> Your url has to match the filename (or vise-versa)
>>
>> So in Content/Pages/About  In the Meta section, the Url should be 
>> /about-canvas
>> (http://127.0.0.1:8000/about-canvas)
>>
>> *or*
>>
>> Rename about-canvas.html to about.html
>>
>> Also, always make sure to restart the development server when adding new
>> files.
>>
>> Hope that helps
>>
>> On Tue, Oct 10, 2017 at 10:39 PM, Tom Tanner <dontsende...@gmail.com>
>> wrote:
>>
>>> Hello,
>>>
>>> I've started learning Mezzanine over the past few weeks. I'm making my
>>> own theme. I want to make an `about/` page containing the default "contact
>>> us" form Mezzanine comes with. Here's what part of my project looks like in
>>> directory. `PROJECT/myTheme/theme/templates/about`.
>>>
>>> In the `about/` folder, I have `about-canvas.html` and
>>> `includes/contact-form.html`.
>>>
>>> `about-canvas.html` looks like this.
>>>
>>> {% extends "base.html" %}
>>>
>>>
>>> {% load mezzanine_tags i18n %}
>>>
>>>
>>> TESTING HERE
>>>
>>>
>>> {% include "includes/contact-form.html" %}
>>>
>>> `includes/contact-form.html` looks like this
>>>
>>> {% load mezzanine_tags i18n %}
>>>
>>>
>>> {% block extra_head %}
>>>  {{ block.super }}
>>>  {{ form.media }}
>>> {% endblock %}
>>>
>>>
>>> {% block main %}
>>> {{ block.super }}
>>> {% if request.GET.sent %}
>>>  {% editable page.form.response %}
>>>  {{ page.form.response|richtext_filters|safe }}
>>>  {% endeditable %}
>>> {% else %}
>>>  {% with page.form as page_form %}
>>>  {% editable page_form.content %}
>>>  {{ page_form.content|richtext_filters|safe }}
>>>  {% endeditable %}
>>>  {% endwith %}
>>>
>>>
>>>  {% errors_for form %}
>>>  
>>>  >> enctype="multipart/form-data"{% endif %}>
>>>  {% fields_for form %}
>>>  
>>>  >>  value="{% if page.form.button_text %}{{ page.form.button_text }}{%
>>> else %}{% trans "Submit" %}{% endif %}">
>>>  
>>>  
>>>  
>>>
>>>
>>> {% endif %}
>>>
>>>
>>> {% endblock %}
>>>
>>>
>>>
>>>
>>>

Re: [mezzanine-users] Newbie user -- How do I change where `about/` goes to?

2017-10-11 Thread Joseph Mohan
Your url has to match the filename (or vise-versa)

So in Content/Pages/About  In the Meta section, the Url should be /about-canvas
(http://127.0.0.1:8000/about-canvas)

*or*

Rename about-canvas.html to about.html

Also, always make sure to restart the development server when adding new
files.

Hope that helps

On Tue, Oct 10, 2017 at 10:39 PM, Tom Tanner 
wrote:

> Hello,
>
> I've started learning Mezzanine over the past few weeks. I'm making my own
> theme. I want to make an `about/` page containing the default "contact us"
> form Mezzanine comes with. Here's what part of my project looks like in
> directory. `PROJECT/myTheme/theme/templates/about`.
>
> In the `about/` folder, I have `about-canvas.html` and
> `includes/contact-form.html`.
>
> `about-canvas.html` looks like this.
>
> {% extends "base.html" %}
>
>
> {% load mezzanine_tags i18n %}
>
>
> TESTING HERE
>
>
> {% include "includes/contact-form.html" %}
>
> `includes/contact-form.html` looks like this
>
> {% load mezzanine_tags i18n %}
>
>
> {% block extra_head %}
>  {{ block.super }}
>  {{ form.media }}
> {% endblock %}
>
>
> {% block main %}
> {{ block.super }}
> {% if request.GET.sent %}
>  {% editable page.form.response %}
>  {{ page.form.response|richtext_filters|safe }}
>  {% endeditable %}
> {% else %}
>  {% with page.form as page_form %}
>  {% editable page_form.content %}
>  {{ page_form.content|richtext_filters|safe }}
>  {% endeditable %}
>  {% endwith %}
>
>
>  {% errors_for form %}
>  
>   enctype="multipart/form-data"{% endif %}>
>  {% fields_for form %}
>  
>value="{% if page.form.button_text %}{{ page.form.button_text }}{% else
> %}{% trans "Submit" %}{% endif %}">
>  
>  
>  
>
>
> {% endif %}
>
>
> {% endblock %}
>
>
>
>
> {% block extra_js %}
> {{ block.super }}
> 
> $(function() {$('.mezzanine-form :input:visible:enabled:first')
> .focus();});
> 
> {% endblock %}
>
>
> Yet when I fire up `python manage.py runserver`, and head to "
> http://127.0.0.1:8000/about/;, it does not appear anything changed. I
> don't see the phrase "TESTING HERE" on the page to indicate that Mezzanine
> reads from my custom template.
>
> What must I change so that Mezzanine will read `about-canvas.html` when I
> go to "http://127.0.0.1:8000/about/;?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Re: How can I do to create/edit as when using PageAdmin and list as when not using PageAdmin?

2017-09-15 Thread Joseph Mohan
Awesome!

That's a great talk Edwardo and a brilliant resource Roger.

I've been using Mezzanine for 2/3 years and only been coding for a few
years longer than that, so getting my head round Mezzanine has been an
excellent learning curve with code (and git).

Why don't you guys have this info/links up in the docs? I've only seen a
few Mezzanine youtubes and examples are pretty thin. Or is there a good
mezzanine resource list somewhere that i've missed?

I'm still a bit scared to contribute code-wise but if you want me to start
putting together a resources list i'd love to help






On Fri, Sep 15, 2017 at 9:19 AM, Rainell Dilou Gómez <
rainell.di...@gmail.com> wrote:

> Hi, Roger.
> I am very grateful for your kindness, also for understanding what it feels
> like to be a beginner. The example project you have published will be very
> useful for me, I greatly appreciate it.
>
> I have seen how the many to many relationship is established in the
> admin.py file of the Blog application, they use filter_horizontal
>
> filter_horizontal = ("categories", "related_recipes")
>
> then it would be sufficient to add ingredients in the recipe class
>
> filter_horizontal = ("categories", "ingredients", "related_recipes",)
>
> Again, thank you very much for everything.
>
>
> Il giorno giovedì 14 settembre 2017 13:12:56 UTC+2, Rainell Dilou Gómez ha
> scritto:
>
>> Hello,
>> I have created a custom content type and I have a problem with the
>> listing in the admin panel. If I extends PageAdmin
>>
>>
>> admin.site.register(Ingredient, PageAdmin)
>>
>> the create/edit page is rendered as in the image
>>
>>
>> 
>>
>> and this is great for creating and editing, but the listing in the page
>> section, as show in the following image, is a problem because the
>> Ingredients (my custom content type) will be many, will be hundreds.
>>
>>
>> 
>>
>> If instead I don't extend PageAdmin
>>
>> admin.site.register(Ingredient)
>>
>> my custom content type list is rendered as in the following image, in a
>> more convenient way, considering that there will be hundreds of Ingredients
>>
>>
>> 
>> but the create/edit page will be rendered as in the next image, and it
>> isn't convenient, considering that the fields are twice as many as are
>> shown in this image.
>>
>>
>> 
>>
>> So how can I do to create/edit as when using PageAdmin and list as when
>> not using PageAdmin?
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] How can I do to create/edit as when using PageAdmin and list as when not using PageAdmin?

2017-09-14 Thread Joseph Mohan
Why not just have Ingredients as a normal Django model (not inheriting from
Page). Similar to the Blog, or the Django Polls Tutorial?

On Thu, Sep 14, 2017 at 12:12 PM, Rainell Dilou Gómez <
rainell.di...@gmail.com> wrote:

> Hello,
> I have created a custom content type and I have a problem with the listing
> in the admin panel. If I extends PageAdmin
>
>
> admin.site.register(Ingredient, PageAdmin)
>
> the create/edit page is rendered as in the image
>
>
> 
>
> and this is great for creating and editing, but the listing in the page
> section, as show in the following image, is a problem because the
> Ingredients (my custom content type) will be many, will be hundreds.
>
>
> 
>
> If instead I don't extend PageAdmin
>
> admin.site.register(Ingredient)
>
> my custom content type list is rendered as in the following image, in a
> more convenient way, considering that there will be hundreds of Ingredients
>
>
> 
> but the create/edit page will be rendered as in the next image, and it
> isn't convenient, considering that the fields are twice as many as are
> shown in this image.
>
>
> 
>
> So how can I do to create/edit as when using PageAdmin and list as when
> not using PageAdmin?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Re: Lost in javascript

2017-08-22 Thread Joseph Mohan
Being rude to a team of devs that spend their free time making these
incredible *FREE* tools to use is ridiculous. You are asking them to give
up their time to answer you so I would suggest being polite and especially
patient.

Take a step back, breathe.

I as well as the others in this thread have done what you are asking with
ease, many times. Mezzanine has a steeper learning curve that Django and
you have already implied in your original post that you don't know much
javascript. So be humble and listen and learn rather than trying to say a
software, written by human beings in their own time and given to you to use
for free is not up to scratch or the docs are lacking (FREEE)

You are welcome to email me privately and I'll try and walk through it.


On Tue, Aug 22, 2017 at 4:17 AM, Ryne Everett  wrote:

> The tone you've taken with other contributors in this thread was out of
> place. To suggest that they are not "knowledgeable" is absurd.
>
> > I didn't 'get' that these
> > changes were to be made in, or added to, the project settings, and not in
> > the various files in the library which I, rightly or wrongly, thought the
> > docs were directing me to.
>
> Patching libraries is not a standard practice and would be unlikely to
> be suggested in software documentation. Frankly, this is a level of
> knowledge our documentation currently assumes.
>
> > If I had seen them in the default settings with
> > blanks or the instruction to 'add or insert here', which is the way
> Django
> > does their models, admin, and views.py, I would not have made this error.
> > So you might suggest that to whoever is on the docs team. Just my 2
> cents.
>
> The docs team is whoever makes pull requests to the docs. I invite you
> to join us.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Button to create new page

2017-05-18 Thread Joseph Mohan
you need to start breaking your requirements down into manageable chunks 
(also people will be more helpful if answering specific questions)

But as a start:

   - Get to know Django Forms as much as 
   possible https://docs.djangoproject.com/en/1.11/topics/forms/
   - You're going to need a 
   ModelChoiceField 
https://docs.djangoproject.com/en/1.11/ref/forms/fields/#modelchoicefield
   - Look at Mezzanines' Displayable Model

When you have a form that allows you to create a new page i would start on 
your next requirements!

Good luck :)





On Thursday, 18 May 2017 17:11:49 UTC+1, Diego Castro wrote:
>
>
> Hi, I'm new to Mezzanine and django, in this moment I'm trying to make a 
> button in a page template, the idea is to allow the registered user to do 
> two things:
>
>- create a new daughter page of the current page
>- add an access link to a list of links of the current page
>
> I would like to make a popup appear that asks for the name and content of 
> the new page, I do not know if what I need is very complex to do with 
> mezzanine, I study the djangogirls tutorial (tutorial.djangogirls.org) 
> and I reviewed the examples of the mezzanine documentation (
> mezzanine.jupo.org/docs/content-architecture.html), but I do not see how 
> to do what I need, this is the link for my mezzanine project: 
> github.com/Dacastror/inicio_mezzanine
>
> in advance I appreciate the help.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Cartridge-payments + django PayPal - how to change checkout form

2016-12-11 Thread Joseph Mohan
I would consider using a different approach as to that blog post, I set up
Paypal ipn with it last year and have recently rebuilt the entire thing as
it's not really well thought out. You'll end up with 10s of random
empty Orders. My advice to you is use the Paypal form from it and monkey
patch cartridge.shop.views.checkout_steps to your needs. checkout_steps is
the where the meat is, get in there and get to know it really well and
everything else falls into place.

But to answer your question, you should be able to just hide the form in
templates/shop/payment.html OR even better sublass
cartridge.shop.forms.OrderForm and hide the card details on every step.

PS I just launched Stripe. Absolutely incredible, I fully incorporated it
into cartridge but if you need a quick solution to taking card payments you
can pretty much just drop it into payment.html

Joe

On Sat, Dec 10, 2016 at 10:58 PM, Thomas  wrote:

> Hello,
>
> I am trying to set up a Cartridge shop that will use Paypal WPS/IPN for
> payment. I have followed the instructions here http://greenash.net.au/
> thoughts/2014/03/using-paypal-wps-with-cartridge-mezzanine-django/ which
> I understand were based on something originally posted to this group.
>
> The issue I am having is that step 2 of the checkout continues to show the
> standard Cartridge payment entry form, when of course I am wanting just a
> Pay with PayPal button. I noticed that SHOP_CHECKOUT_FORM_CLASS is
> deprecated, and set a URL pattern that passes 'CallbackUUIDOrderForm' into
> the 'checkout_steps' view instead.
>
> I also have PRIMARY_PAYMENT_PROCESSOR_IN_USE = False and all the rest of
> the instructions, and still see the standard step 2 instead of the Paypal
> one.
>
> Any advice/help would be appreciated here, as I'm pretty stuck. Ideally,
> if anyone has had this problem before and found a way out, I'd love to hear
> about that obviously, but of course any suggestions would be most welcome.
>
> Thnkas,
> Thomas
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Modify defaut models

2016-11-29 Thread Joseph Mohan
To add fields to models check 
out http://mezzanine.jupo.org/docs/model-customization.html

I wouldn't remove fields but just hide them either in the admin.py via 
fieldsets 
https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#django.contrib.admin.ModelAdmin.fieldsets
 
or in mezzanines templates

Or you can create your own app that subclasses any model. 
https://docs.djangoproject.com/en/1.10/topics/db/models/

On Friday, 25 November 2016 20:13:46 UTC, Ilya Kibalny wrote:
>
> Hi,
>
>
> How can I modify or remove default model fields?
> For example, mezzanine.blog.models.BlogPost.content
>
>
> Thank you!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Attribute value of one class being called by another class

2016-10-26 Thread Joseph Mohan
Have a look 
SiteRelated: 
https://github.com/stephenmcd/mezzanine/blob/b7a7b00ef8fc99ce2584fc003c8ea8cbceffee7b/mezzanine/core/models.py

Here's a blog on using 
it: 
http://bitofpixels.com/blog/on-singletonadmins-and-sitewidecontent-editing-sitewide-content-in-mezzanines-admin/

On Wednesday, 26 October 2016 10:26:49 UTC+1, Richard Jackson wrote:
>
> Hi all,
>
> I apologies for my complete lack of technical knowledge with this question 
> - I haven't dealt with Mezzanine/Django/Python for about a year.
>
> I have defined a class ('homepage') and have defined an attribute 
> ('content'). When making a page based on the 'homepage' class, I can fill 
> in the text for 'content' through the admin, with the template looking like:
>
> {{ page.homepage.content }}
>
> Is there a way that I can refer to what I'd stored as {{ 
> page.homepage.content }} from another page (i.e. a 'biography' page)?
>
> For example, say I wanted to make the same text appear in both the 
> 'homepage' and the 'biography'. I'd store this through the admin page via 
> 'homepage' but I'd also like some way of referring to this in the 
> 'biography' template.
>
> Is this possible, and if so how? My understanding has become excessively 
> poor so I hope the above makes some sort of sense.
>
> Thanks,
>
> Rich
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: UnicodeDecodeError: 'locale' codec can't decode byte 0xe2 in position 0: Invalid or incomplete multi

2016-07-31 Thread Joseph Mohan

>
> Did you ever find a solution? I have the same issue but with "en_GB.UTF-8" 
>

Django==1.9.8  
Mezzanine==4.1.0
Cartridge==0.11.0
python3.4

running on webfaction in a pyvenv

I have tried setting envvars, "en_GB.UTF-8" is available when i run locale 
-a, but as soon as i set SHOP_CURRENCY_LOCALE i get the exact same error.

 

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-06-29 Thread Joseph Mohan
Sam you are an absolute gent!

Works an absolute treat, images work fine, and formatting is spot on. 

Thank you



On Wednesday, 29 June 2016 02:22:16 UTC+1, 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
>
> 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 
>> .pdf invoices?
>>
>> Set the url to a full path
>>
>> Tried .png/.jpg 
>>
>> Nothing...
>>
>> Any ideas?
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-06-28 Thread Joseph Mohan
Thanks for your help. 

I've spent the last 2 days pulling xhtml2pdf apart and still cannot get 
this to work. It seems to just not recognize any src attribute on an img 
tag, even tried brute forcing it but 

xhtml2pdf also seems to now be abandoned 
 and their python3 support is 
shaky.. hense why i'm struggling so much.

Had a quick look at weazyprint  but having trouble 
installing it on my dev machine let alone my production shared servers  

Anyone had any luck using an alternative to xhtml2pdf? 

On Friday, 24 June 2016 16:03:41 UTC+1, Eduardo Rivas wrote:
>
> Well, Cartridge uses Pisa 
> 
>  
> to create the PDFs. Apparently you can pass a "link_callback" arg to 
> CreatePDF(). This callback should handle the conversion of the relative 
> path of the image in the HTML to the complete filesystem path to be 
> embedded in the document.
>
> The xhtml2pdf docs provide a full example 
> .
>  
> You'll need to override the invoice view to pass the callback to 
> CreatePDF().
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Images in .pdf Invoice

2016-06-24 Thread Joseph Mohan
Any other things i'm missing with regards to getting an image into the .pdf 
invoices?

Set the url to a full path

Tried .png/.jpg 

Nothing...

Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Different Forms for Signup and Profile Update

2016-04-26 Thread Joseph Mohan
I have the same need for a simple signup form, created my own AccountForm 
and used 

profile_fields_form = self.get_profile_fields_form()
profile_fields = profile_fields_form().fields
if self._signup:
for field in profile_fields:
profile_fields[field].widget = forms.HiddenInput()
self.fields.update(profile_fields)

But i get the error on submit: 

ValueError at /accounts/signup/

The Profile could not be changed because the data didn't validate."

my_cms/my_cms/forms.py in save

   1. 
   
   profile_form(self.data, self.files, 
instance=profile).save()
   
   
I have seen another post about there being a bug related to this but i'm 
wondering if you solved this completely? all the other profile fields are 
"blank=True" etc so i'm 90% sure its not a simple validation problem?

Any help much appreciated

On Thursday, 28 January 2016 09:59:21 UTC, christia...@googlemail.com wrote:
>
> That was indeed the way to go, thanks Steve for pointing me into the right 
> direction. I discovered that the AccountForm class already has got an 
> attribute _signup which does what you suggest. 
>
> I subclassed the AccountForm. If I am not mistaken I had to hide the 
> profile form fields during signup (not take them out all together during 
> signup) in order to avoid a validation error.
>
> The only small drawback left is that I haven't figured our how to make the 
> optional fields "first_name" and "last_name" optional in the AccountForm.
>
> Chris
>
> Am Dienstag, 26. Januar 2016 23:53:18 UTC+1 schrieb Stephen McDonald:
>>
>> I'd suggest using a custom form class, and checking for a bound user 
>> object in its __init__ method, which if present indicates it's the update 
>> form, and not signup, and you can then modify the attributes of each field 
>> programmatically. This would probably turn out to be less code that 
>> defining a form class for each.
>>
>> On Wed, Jan 27, 2016 at 7:04 AM,  wrote:
>>
>>> I want to allow new users to register to a mezzanine based site with 
>>> minimal information (i.e. email and password) and allow them to update 
>>> their profile information once they are registered. Therefore I would like 
>>> to display a form with only the two required fields during signup and the 
>>> "full" ProfileForm during profile_update. 
>>>
>>> Looking at the code in mezzanine.accounts I understand that "signup" 
>>> view as well as the "profile_update" view use the same form (i.e. 
>>> ACCOUNTS_PROFILE_FORM_CLASS). I know I could overcome this by writing my 
>>> custom signup view but is there any other way to solve this so I can keep 
>>> using the build-in code?
>>>
>>> If not: Would it make sense to allow the definition of different form 
>>> classes for signup and profile_update? Many modern websites try to 
>>> encourage registration by asking only for minimal information during 
>>> registration but allow users to add addtional profile information later.
>>>
>>> Regards Chris
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Mezzanine Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to mezzanine-use...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>> Stephen McDonald
>> http://jupo.org
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Cartridge Cart Modifications

2016-04-25 Thread Joseph Mohan
I edited shop/cart.html to hide the quantity in the cart's table, and have 
not yet but will edit shop/includes/order_details.html for the invoice. My 
add_item method deletes any items in the cart before adding to it. I've not 
"cleaned up" the admin but decided this was good enough for my use case. 
Please elaborate on your work as it sounds good!

On Monday, 25 April 2016 13:33:05 UTC+1, Geoffrey Eisenbarth wrote:
>
> This would still display the quantity fields on product pages and 
> invoices, wouldn't it? My approach added a SHOP_USE_QUANTITY to settings 
> that will remove those. 
>
> On Monday, April 4, 2016 at 8:49:02 AM UTC-5, Joseph Mohan wrote:
>>
>> Solved this by monkey patching the Cart.add_item method. As seen here 
>> with some modifications 
>> <http://bitofpixels.com/blog/collecting-additional-information-on-a-per-product-basis-in-cartridge/>
>>  
>> to delete all cart instances before adding anything new.
>>
>> On Thursday, 31 March 2016 16:51:10 UTC+1, Joseph Mohan wrote:
>>>
>>> Looking for advice rather than a solution, I'm customizing cartridge's 
>>> checkout process to be a lot more simpler.
>>>
>>> The site sells a subscription to access a "members" area of the site, so 
>>> there is no need for quantities or variations although there are two 
>>> different types of membership.
>>>
>>> I want to remove any option of quantity and for there to be only one 
>>> item in the cart at any time but keep all the other steps.
>>>
>>> Where should i attack this from? 
>>>
>>> Any help much appreciated, as i said more of a discussion
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Easy settings for including shipping / tax / quantity?

2016-04-25 Thread Joseph Mohan
Oh and for the quantiy: 
https://groups.google.com/forum/#!topic/mezzanine-users/7zBENlLbXwE

On Monday, 25 April 2016 13:10:56 UTC+1, Joseph Mohan wrote:
>
> i'm in the middle of putting something together myself (no tax/shipping)
>
> you can set these in settings.py:
>
> SHOP_HANDLER_BILLING_SHIPPING = None 
> SHOP_HANDLER_TAX = None
>
> And that will remove them from the checkout (and payment)
>
> But I still had the problem of removing the billing/shipping form. It 
> feels a bit hacky but I overrid the checkout url to point to a custom view 
> of my own that forced a redirect to the payment stage:
>
> url("^shop/checkout/$", myviews.checkout_steps, name="shop_cart"),
>
>
>
> On Friday, 22 April 2016 14:17:03 UTC+1, Geoffrey Eisenbarth wrote:
>>
>> Well, this is embarrassing. 
>>
>> After digging in a little more, it seems like the default behavior is to 
>> not show the shipping and tax forms in the cart / checkout if the amount is 
>> zero (I have SHOP_DEFAULT_SHIPPING_VALUE = 0 in settings.py), since the 
>> tax/shipping information is shown based on template tags defined in 
>> shop_tags.py as shipping_type, shipping_total, and tax_total. This seems to 
>> work correctly in Internet Explorer (11.0.9600.18282) and Firefox (45.02), 
>> but the "Flat Rate Shipping" and "Tax" entries are still showing up in my 
>> cart and in the order_totals.html template in Chrome (50.0.2661.87 m). 
>>
>> Still looking for the culprit.
>>
>> On Friday, April 22, 2016 at 7:46:37 AM UTC-5, Geoffrey Eisenbarth wrote:
>>>
>>> (stephenmcd: thanks for redirecting me here)
>>>
>>> I'm using cartridge on a site that doesn't utilize shipping, tax, or 
>>> quantity (electronic subscriptions), and I'm going to implement three 
>>> boolean options into the settings for these situations today. Is there any 
>>> interest in this? Or a way to do this already factored into the code? I 
>>> know you can add custom shipping and tax calculation functions, but I don't 
>>> see how those correspond with the presence of the fields in the various 
>>> forms.
>>>
>>> As I see it, this could be easily implemented by just adding a few if 
>>> statements into a few templates. Thoughts / suggestions / disagreements?
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Easy settings for including shipping / tax / quantity?

2016-04-25 Thread Joseph Mohan
i'm in the middle of putting something together myself (no tax/shipping)

you can set these in settings.py:

SHOP_HANDLER_BILLING_SHIPPING = None 
SHOP_HANDLER_TAX = None

And that will remove them from the checkout (and payment)

But I still had the problem of removing the billing/shipping form. It feels 
a bit hacky but I overrid the checkout url to point to a custom view of my 
own that forced a redirect to the payment stage:

url("^shop/checkout/$", myviews.checkout_steps, name="shop_cart"),



On Friday, 22 April 2016 14:17:03 UTC+1, Geoffrey Eisenbarth wrote:
>
> Well, this is embarrassing. 
>
> After digging in a little more, it seems like the default behavior is to 
> not show the shipping and tax forms in the cart / checkout if the amount is 
> zero (I have SHOP_DEFAULT_SHIPPING_VALUE = 0 in settings.py), since the 
> tax/shipping information is shown based on template tags defined in 
> shop_tags.py as shipping_type, shipping_total, and tax_total. This seems to 
> work correctly in Internet Explorer (11.0.9600.18282) and Firefox (45.02), 
> but the "Flat Rate Shipping" and "Tax" entries are still showing up in my 
> cart and in the order_totals.html template in Chrome (50.0.2661.87 m). 
>
> Still looking for the culprit.
>
> On Friday, April 22, 2016 at 7:46:37 AM UTC-5, Geoffrey Eisenbarth wrote:
>>
>> (stephenmcd: thanks for redirecting me here)
>>
>> I'm using cartridge on a site that doesn't utilize shipping, tax, or 
>> quantity (electronic subscriptions), and I'm going to implement three 
>> boolean options into the settings for these situations today. Is there any 
>> interest in this? Or a way to do this already factored into the code? I 
>> know you can add custom shipping and tax calculation functions, but I don't 
>> see how those correspond with the presence of the fields in the various 
>> forms.
>>
>> As I see it, this could be easily implemented by just adding a few if 
>> statements into a few templates. Thoughts / suggestions / disagreements?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Easy settings for including shipping / tax / quantity?

2016-04-25 Thread Joseph Mohan


On Friday, 22 April 2016 14:17:03 UTC+1, Geoffrey Eisenbarth wrote:
>
> Well, this is embarrassing. 
>
> After digging in a little more, it seems like the default behavior is to 
> not show the shipping and tax forms in the cart / checkout if the amount is 
> zero (I have SHOP_DEFAULT_SHIPPING_VALUE = 0 in settings.py), since the 
> tax/shipping information is shown based on template tags defined in 
> shop_tags.py as shipping_type, shipping_total, and tax_total. This seems to 
> work correctly in Internet Explorer (11.0.9600.18282) and Firefox (45.02), 
> but the "Flat Rate Shipping" and "Tax" entries are still showing up in my 
> cart and in the order_totals.html template in Chrome (50.0.2661.87 m). 
>
> Still looking for the culprit.
>
> On Friday, April 22, 2016 at 7:46:37 AM UTC-5, Geoffrey Eisenbarth wrote:
>>
>> (stephenmcd: thanks for redirecting me here)
>>
>> I'm using cartridge on a site that doesn't utilize shipping, tax, or 
>> quantity (electronic subscriptions), and I'm going to implement three 
>> boolean options into the settings for these situations today. Is there any 
>> interest in this? Or a way to do this already factored into the code? I 
>> know you can add custom shipping and tax calculation functions, but I don't 
>> see how those correspond with the presence of the fields in the various 
>> forms.
>>
>> As I see it, this could be easily implemented by just adding a few if 
>> statements into a few templates. Thoughts / suggestions / disagreements?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Cartridge checkout modifications #2

2016-04-13 Thread Joseph Mohan
For anyone interested

This was really simple in the end. By using cartridge-multipayments to make 
payment, the default cartridge paypal payment  
<https://github.com/stephenmcd/cartridge/blob/master/cartridge/shop/payment/paypal.py>isn't
 
called, therefore there is no need at all for any data to be sent to paypal 
other than cart information and no need for any billing/shipping/tax. So i 
just put a url pattern before the cartridge.urls that pointed to a custom 
view that mimicked cartridges "checkout_steps" view but would always 
redirect to the final checkout step.

Nothing better than an obscure requirement to really get your hands dirty 
and dive in, Feel at one with the mezzanine now! 



On Friday, 8 April 2016 10:15:46 UTC+1, Joseph Mohan wrote:
>
> @Kenneth Bolton
>
> Great stuff! well at least I know it can be done, I think I've burnt out 
> on this one for a while, I'm using django-paypal 
> <https://github.com/spookylukey/django-paypal> and cartridge-payments 
> <https://github.com/explodes/cartridge-payments> so I believe 
> https://github.com/stephenmcd/cartridge/blob/master/cartridge/shop/payment/paypal.py#L86-L105
>  
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fstephenmcd%2Fcartridge%2Fblob%2Fmaster%2Fcartridge%2Fshop%2Fpayment%2Fpaypal.py%23L86-L105=D=1=AFQjCNEy-iWDpAwdwUzGQIm5SaXs7Fuuig>
>  Isn't 
> called. (Please correct me if anyone knows any better)
>
> Going to come back to this because It has to be cracked, so will write up 
> in detail for any others.
>
> On Thursday, 7 April 2016 15:23:42 UTC+1, Kenneth Bolton wrote:
>>
>> Hi Joe,
>>
>> I know very well how you feel. I compiled my first open source project 
>> from source in 1994, went "full time" with software development in 2008, 
>> have been *de facto* CTO of a tiny startup for about three years, yet 
>> still feel like a dilettante most days. And every day I recognize how much 
>> more there is to learn.
>>
>> In my (very old) project, I copied 
>> https://github.com/stephenmcd/cartridge/blob/master/cartridge/shop/views.py#L208-L341
>>  
>> wholesale, then tortured it to suit my needs and added a url pattern to hit 
>> it, which is exactly the path you took. I also created a custom OrderForm 
>> which subclassed FormsetForm and DiscountForm, which was critical because I 
>> was adding HTML5 placeholders before Mezzanine had those baked in.
>>
>> Regarding Paypal, 
>> https://github.com/stephenmcd/cartridge/blob/master/cartridge/shop/payment/paypal.py#L86-L105
>>  
>> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fstephenmcd%2Fcartridge%2Fblob%2Fmaster%2Fcartridge%2Fshop%2Fpayment%2Fpaypal.py%23L86-L105=D=1=AFQjCNEy-iWDpAwdwUzGQIm5SaXs7Fuuig>
>>  
>> requires the billing data.
>>
>> -ken
>>
>> On Thu, Apr 7, 2016 at 9:29 AM, Joseph Mohan <skru...@gmail.com> wrote:
>>
>>> I've been trying to go at it from urls.py, aiming to pass the 
>>> checkout_step to a view, something like:
>>>
>>> url("^shop/cart/$", "cartridge.shop.views.checkout_steps", name = 
>>> "checkout_steps", kwargs=dict(step='confirmation')),
>>>
>>> but failing miserably! 
>>>
>>> I understand that i could subclass OrderForm and hide/remove fields but 
>>> it would still add an extra step/page.
>>>
>>> I am definitely struggling to truly understand the flow of cartridge, 
>>> (but learning everyday, absolutely love mezzanine-cartridge) but am 
>>> punching above my weight a little (self taught coder of about 2-3 years)
>>>
>>> Thanks for your quick reply, Joe
>>>
>>> On Thursday, 7 April 2016 14:00:24 UTC+1, Kenneth Bolton wrote:
>>>>
>>>> What have you tried so far?
>>>>
>>>> What you want to do is not difficult. Write views, forms, urls, and 
>>>> templates following the examples provided in the source of Mezzanine & 
>>>> Cartridge. Reading and understanding the Cartridge source is critical; 
>>>> once 
>>>> you grok the flow, most features are fairly trivial to implement.
>>>>
>>>> -ken
>>>>
>>>> On Thu, Apr 7, 2016 at 8:38 AM, Joseph Mohan <skru...@gmail.com> wrote:
>>>>
>>>>> I need to be able to pretty much completely remove the 
>>>>> shipping/billing form. So the user would click the product, got to 
>>>>> product 
>>>>> page, "buy", show checkout, and then skip straight to payment (which is 
>>>>> paypal)
>

Re: [mezzanine-users] Cartridge checkout modifications #2

2016-04-08 Thread Joseph Mohan
@Bruno Barbosa

Many thanks, that's the best article I've seen so far, I have paypal 
working already but It's a bit clunky! but this will definitely help with 
tuning it down a bit. 

On Thursday, 7 April 2016 16:30:33 UTC+1, Bruno Barbosa wrote:
>
> hello Joseph,
>
> Though this article are in portuguese, it explains how to integrate paypal 
> with cartridge.
>
> http://thiagopagonha.appspot.com/blog/configurar-e-customizar-o-e-commerce-cartridge/
>
> maybe it help you =)
>
> best regards
>
> --
> Bruno Barbosa
> Web Developer
> *brunobarbosa.com.br <http://brunobarbosa.com.br>*
>
> On Thu, Apr 7, 2016 at 9:38 AM, Joseph Mohan <skru...@gmail.com 
> > wrote:
>
>> I need to be able to pretty much completely remove the shipping/billing 
>> form. So the user would click the product, got to product page, "buy", show 
>> checkout, and then skip straight to payment (which is paypal)
>>
>> The reason for this is the user has to sign in to paypal separately, and 
>> none of the data from the billing/shipping is ever used.  
>>
>> Please help
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to mezzanine-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Cartridge checkout modifications #2

2016-04-07 Thread Joseph Mohan
I've been trying to go at it from urls.py, aiming to pass the checkout_step 
to a view, something like:

url("^shop/cart/$", "cartridge.shop.views.checkout_steps", name = 
"checkout_steps", kwargs=dict(step='confirmation')),

but failing miserably! 

I understand that i could subclass OrderForm and hide/remove fields but it 
would still add an extra step/page.

I am definitely struggling to truly understand the flow of cartridge, (but 
learning everyday, absolutely love mezzanine-cartridge) but am punching 
above my weight a little (self taught coder of about 2-3 years)

Thanks for your quick reply, Joe

On Thursday, 7 April 2016 14:00:24 UTC+1, Kenneth Bolton wrote:
>
> What have you tried so far?
>
> What you want to do is not difficult. Write views, forms, urls, and 
> templates following the examples provided in the source of Mezzanine & 
> Cartridge. Reading and understanding the Cartridge source is critical; once 
> you grok the flow, most features are fairly trivial to implement.
>
> -ken
>
> On Thu, Apr 7, 2016 at 8:38 AM, Joseph Mohan <skru...@gmail.com 
> > wrote:
>
>> I need to be able to pretty much completely remove the shipping/billing 
>> form. So the user would click the product, got to product page, "buy", show 
>> checkout, and then skip straight to payment (which is paypal)
>>
>> The reason for this is the user has to sign in to paypal separately, and 
>> none of the data from the billing/shipping is ever used.  
>>
>> Please help
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to mezzanine-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Cartridge checkout modifications #2

2016-04-07 Thread Joseph Mohan
I need to be able to pretty much completely remove the shipping/billing 
form. So the user would click the product, got to product page, "buy", show 
checkout, and then skip straight to payment (which is paypal)

The reason for this is the user has to sign in to paypal separately, and 
none of the data from the billing/shipping is ever used.  

Please help


-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Cartridge Cart Modifications

2016-04-04 Thread Joseph Mohan
Solved this by monkey patching the Cart.add_item method. As seen here with 
some modifications 
<http://bitofpixels.com/blog/collecting-additional-information-on-a-per-product-basis-in-cartridge/>
 
to delete all cart instances before adding anything new.

On Thursday, 31 March 2016 16:51:10 UTC+1, Joseph Mohan wrote:
>
> Looking for advice rather than a solution, I'm customizing cartridge's 
> checkout process to be a lot more simpler.
>
> The site sells a subscription to access a "members" area of the site, so 
> there is no need for quantities or variations although there are two 
> different types of membership.
>
> I want to remove any option of quantity and for there to be only one item 
> in the cart at any time but keep all the other steps.
>
> Where should i attack this from? 
>
> Any help much appreciated, as i said more of a discussion
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Anyone got a quickfix/hack for the upload button in filebrowser

2016-02-01 Thread Joseph Mohan
There's a tonne of stuff already in the issues but has anyone got a hack to 
get around the flash button in the media library?

I can get to it using firefox on my ubuntu machine but clients are starting 
to moan. 

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Anyone got a quickfix/hack for the upload button in filebrowser

2016-02-01 Thread Joseph Mohan
Thanks, Going to dive in, Bit of an amateur so if I come up with anything
useful i'll put it up in the group for someone better to have a look!!

Cheers. Joe

On Mon, Feb 1, 2016 at 3:07 PM, Eduardo Rivas 
wrote:

> Nothing that I've personally tried, but it might be a good idea to look
> into how the upstream Filebrowser handles the uploads, since they are now
> Flash-free.
>
> Current upload template:
> https://github.com/sehmaschine/django-filebrowser/blob/master/filebrowser/templates/filebrowser/upload.html
>
> Issue tracking the transition away from Flash:
> https://github.com/sehmaschine/django-filebrowser/issues/22
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Mezzanine Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/mezzanine-users/nEhzHvnOkyg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] tinymce used for an admin action form field

2016-01-13 Thread Joseph Mohan

One of those cases where I must be being a complete idiot (as usual)

back story: 

I have EmailGroup and EmailSub models, none of which inherit from any 
mezzanine models. EmailSub is a foriegnkey to EmailGroup.
In the admin (EmailGroup's change_form) I've set up an admin action using 
django-object-actions  to 
send a bulk email to each EmailSub for the group.
The bulk email button redirects to a confirmation page that also acts as a 
mini email writing box that I can set the subject, CC's, and attachments,* 
but most importantly a tinyMCE editor to edit the message.*
Up until the tinyMCE part everything is fine, and i can send bulk email 
(using Mandrill/Mailchimp).

I've tried two approaches but running out of steam and my head is starting 
to hurt:

#1 try and ignore mezzanine's tinymce editor and use the default from 
www.tinymce.com 
using the tutorial , on 
the confirmation page:

This works great up until I try and implement file uploading. I've got as 
far as to bringing up the media library but there's javascript errors 
popping up and selecting an image/file to upload does nothing. My JS is ok 
but i just can't work out what's going on, 
Here is my JS to init tinyMCE, with the filebrowser code:
function CustomFileBrowser(field_name, url, type, win) {
var cmsURL = window.__filebrowser_url + '?pop=2'
   
cmsURL = cmsURL + "=" + type;
//console.log(tinyMCE.selectedInstance.editorId)
tinyMCE.activeEditor.windowManager.open({
file: cmsURL,
width: 820,  // Your dimensions may differ - toy around with them!
height: 500,
resizable: "yes",
scrollbars: "yes",
inline: "no",  // This parameter only has an effect if you use the 
inlinepopups plugin!
close_previous: "no"
}, {
window: win,
input: field_name,
});
return false;
}

tinymce.init({
selector: '#mmessage',
plugins: "image",
image_advtab: true,
file_browser_callback: CustomFileBrowser,
relative_urls: false,

});

My best guess is that tinyMCE.activeEditor.windowManager.open() is calling 
mezzanine's JS (tiny_mce_popup.js and FB_TinyMCE.js)...?
Literally stumped with this. 

#2 Try and pass the form from the modelAdmin for EmailGroup: 

I'm struggling big time with this, here is my admin.py:

from mezzanine.core.forms import TinyMceWidget

class EmailForm(forms.Form):
subject = forms.CharField()
message = forms.CharField(widget=TinyMceWidget)

class EmailGroupAdmin(DjangoObjectActions, admin.ModelAdmin):

def email(self, request, queryset):

form = EmailForm

# will add form validation

if request.POST.get('post'):
if "cancel" in request.POST:
pass
else:
subject = request.POST.get('subject', '')
content = request.POST.get('message', '')

..sending mail function

else:
context = {
'title': _("Are you sure?"),
'email_group':queryset,
'form':form
}
return TemplateResponse(request, 
'admin/my_cms/email/email_conf.html',
context, current_app=self.admin_site.name)

email.label = "Bulk Email"  # optional
email.short_description = "Send to subscribers"  # optional

objectactions = ('email', )

admin.site.register(EmailGroup, EmailGroupAdmin)


I can't use a modelForm (i think) as the message content is not from any 
model,(will i only be able to do this with one?) 
I just can't get any assets loading at all, If i inspect the message 
textarea webpage i can see the class MceEditor has been appended but no 
css/js...

I've also tried a slightly different approach here by trying to write the 
widget from scratch:

class TinyMceWidget(forms.Textarea):
""" This allows us to use our own TinyMCE setup script. """
class Media:
css = {
'all': ('/static/filebrowser/css/filebrowser.css',)
}
js = (
"/static/grappelli/tinymce/jscripts/tiny_mce/tiny_mce.js",
"/static/filebrowser/js/FB_TinyMCE4.js",
"%sjavascripts/app/tinymce_config.js" % settings.STATIC_URL,
)
 

 
filebrowser/js/jquery-ui-1.9.1.custom.min.js
filebrowser/js/filebrowser-popup.js
def __init__(self, *args, **kwargs):
super(TinyMceWidget, self).__init__(*args, **kwargs)
self.attrs["class"] = "mceEditor"

but i'm not exactly sure what assets need to be loaded.. and i get the same 
result, MceEditor class added but no assets

Really sorry for the huge post.. google has been pretty rubbish with this, 

Any suggestions really appreciated


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

[mezzanine-users] x_frame_options deny causes wysiwyg editor "insert/edit image" upload to fail

2016-01-12 Thread Joseph Mohan
When setting:

X_FRAME_OPTIONS = 'DENY'

It blocks the image upload box in the wysiwyg editor.

>From the django docs 

 i 
can set a decorator to exempt a view but I'm struggling to work out where I 
could use this for mezzanine's blog?

Any ideas for a work around, and/or do you think the x-frame-option is 
entirely necessary?

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Trouble Installing On Windows 7 [Python 3.4.3]

2016-01-11 Thread Joseph Mohan
I've been having similar trouble with a Ubuntu setup. For me i had to 
install Pillow's 
dependencies http://askubuntu.com/questions/427358/install-pillow-for-python-3 
Not a Windows user though so might be of no use to you

On Monday, 4 January 2016 19:46:23 UTC, Jake wrote:
>
>
> Hi All,
>
> Has anyone experienced issues installing mezzanine in a virtual 
> environment on Win 7 64 bit + Python 3.4? It seems there is some issue with 
> Pillow and "jpeg" that I can't find much info on. I have attached the full 
> traceback (I am using pycharm which has an annoying bug which only displays 
> ~80 characters per line so sorry about that).
>
> The error at the end of the traceback is:
>
> ValueError: jpeg is required unless explicitly disabled using 
> --disable-jpeg
>
> Appreciate any light you might be able to shine on this.
>
> Regards Jake
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Blog post on setting up mezzanine on webfaction with python3.4

2015-11-22 Thread Joseph Mohan
Wrote this for myself really but it might be of use to someone.
http://www.josephmohan.co.uk/blog/webfaction-mezzanine-and-pyvenv/

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Best way to set a new page's default to CONTENT_STATUS_DRAFT?

2015-11-21 Thread Joseph Mohan
Any luck with this?

On Monday, 28 July 2014 17:46:34 UTC+1, Jackson Hong wrote:
>
> I found that the Displayable model has 
>
> status = models.IntegerField(_("Status"),
> choices=CONTENT_STATUS_CHOICES, default=CONTENT_STATUS_PUBLISHED,
> help_text=_("With Draft chosen, will only be shown for admin users 
> "
> "on the site."))
>
> I would like to make the default CONTENT_STATUS_DRAFT.
>
> What's the best way to go about doing this so it's reproducible in many 
> environments? 
>
> Thanks for any help.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Overriding change_list.html for custom app

2015-11-19 Thread Joseph Mohan
You sir are a gentleman!. thanks, exactly what i was looking for

On Thursday, 19 November 2015 18:04:36 UTC, Eduardo Rivas wrote:
>
> That is the correct template. 
>
> You need to {% extends "admin/change_list.html" %} and override the 
> complete object-tools block (assuming you will provide the correct 
> markup for the list and the default buttons). Alternatively, you can 
> override the object-tools-items block and simply add your own buttons as 
>  elements after {{ block.super }}. 
>
>
> https://github.com/stephenmcd/grappelli-safe/blob/master/grappelli_safe/templates/admin/change_list.html#L69-L82
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Overriding change_list.html for custom app

2015-11-19 Thread Joseph Mohan
I'm trying to override the change_list.html template (to add a button) for 
a custom app (my_cms)

If i get the code from django's admin 
'contrib/admin/templates/admin/change_list.html to override it messes up 
mezzanines beautiful template.. 
I can't find mezzanine's (or grappelli's?) equivalent. 
grappelli's: 
https://raw.githubusercontent.com/sehmaschine/django-grappelli/master/grappelli/templates/admin/change_list.html
 
throws an error ''grp_tags' is not a valid tag library' and i can only find 
the page_tree version for mezzanine '

Anyone know where it is? 

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Second blog url setup

2015-11-17 Thread Joseph Mohan
Got there in the end. i needed all the url functionality from blog/urls.py 
as well as the blog_tags.
So everything is working like a charm, i basically have an entirely new 
blog engine that all sits within my app (my_cms) I just wanted to ask if 
this is enough separation from the mezzanine blog app? 
You say to create a new app, if everything lives in my own app (my_cms) al 
urls models views and template tags, will upgrading mezzanine be an issue 
still?
And thanks for your help.

On Friday, 13 November 2015 17:51:21 UTC, Neum Schmickrath wrote:
>
> I think you'll just need to add a new URL config in your app or Mezzanine 
> similar to the one in mezzanine/urls.py  You'll see there:
>
> # Mezzanine's Blog app.
> blog_installed = "mezzanine.blog" in settings.INSTALLED_APPS
> if blog_installed:
> BLOG_SLUG = settings.BLOG_SLUG.rstrip("/")
> blog_patterns = patterns("",
> ("^%s" % BLOG_SLUG, include("mezzanine.blog.urls")),
> )
> urlpatterns += blog_patterns
>
> So you'll need to add a new base URL that includes your new ite blog app 
> urls.py file at the URL that you want. If you haven't already I would 
> recommend that you add the new blog "app" as a separate app in your 
> project, which will make updating mezzanine in the future much easier. 
>
> On Friday, November 13, 2015 at 8:36:50 AM UTC-7, Joseph Mohan wrote:
>>
>> I'm trying to replicate the blog model and admin so i can create a second 
>> blog. 
>> To do this i have literally copy and pasted from 
>> http://mezzanine.readthedocs.org/en/latest/_modules/mezzanine/blog/models.html
>> and swapped all 'BlogPost' for my custom 'Ite' and any 'blog_post' to 
>> 'ite_post'. i dont need the commenting or rating so got rid of anything 
>> relevant. All this lives in 'my_cms/models.py'
>> So far so good. copied the relevant admin stuff from 
>> https://raw.githubusercontent.com/stephenmcd/mezzanine/master/mezzanine/blog/admin.py
>> and now i have the admin all set up working fine. 
>> I just need to wrap my head round how to set up the urls.. 
>>
>> having trouble in the blog model with the line: 
>>
>> url_name = "blog_post_detail"
>>
>> If i change this to what i would like as a new url: 'ite_post_detail' and 
>> enter a new 'Ite post' it saves fine but when i try to 'view on site' 
>> obviously it goes off to the original blog and a page that doesn't exist.
>>
>> I assume i'll just have to set up my templates in the same format as the 
>> blog (but with new names: ite_post_detail, ite_post_list)
>> but don't know where to start in urls.py?
>>
>> Any help or links greatly appreciated
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Second blog url setup

2015-11-13 Thread Joseph Mohan
I'm trying to replicate the blog model and admin so i can create a second 
blog. 
To do this i have literally copy and pasted from 
http://mezzanine.readthedocs.org/en/latest/_modules/mezzanine/blog/models.html
and swapped all 'BlogPost' for my custom 'Ite' and any 'blog_post' to 
'ite_post'. i dont need the commenting or rating so got rid of anything 
relevant. All this lives in 'my_cms/models.py'
So far so good. copied the relevant admin stuff 
from 
https://raw.githubusercontent.com/stephenmcd/mezzanine/master/mezzanine/blog/admin.py
and now i have the admin all set up working fine. 
I just need to wrap my head round how to set up the urls.. 

having trouble in the blog model with the line: 

url_name = "blog_post_detail"

If i change this to what i would like as a new url: 'ite_post_detail' and 
enter a new 'Ite post' it saves fine but when i try to 'view on site' 
obviously it goes off to the original blog and a page that doesn't exist.

I assume i'll just have to set up my templates in the same format as the 
blog (but with new names: ite_post_detail, ite_post_list)
but don't know where to start in urls.py?

Any help or links greatly appreciated

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Basic installation issue

2015-11-03 Thread Joseph Mohan
I also have the same problem with a virtualenv, any ideas anyone?

On Sunday, 2 August 2015 23:51:22 UTC+1, Richard Jackson wrote:
>
> Hi there,
>
> I'm trying to follow the basic installation guide found here (
> http://mezzanine.jupo.org/docs/overview.html#installation).
>
> When I run:
>
>
> $ python manage.py createdb --noinput
>
>
> I get the below error:
>
>
> Traceback (most recent call last):
> File "manage.py", line 7, in 
> from mezzanine.utils.conf import real_project_name
> ImportError: No module named mezzanine.utils.conf
>
>
> I've definitely installed Mezzanine (via "pip install mezzanine") but am 
> am getting no further.
>
> This seems like such a basic issue and I much be missing something 
> obvious, so any help identifying what that is would be greatly appreciated!
>
>
> Cheers,
>
> Rich
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Re: Basic installation issue

2015-11-03 Thread Joseph Mohan
What a tit.. ended up out of my virtualenv.. finding it hard getting used 
to using them.. Thanks 

On Tuesday, 3 November 2015 16:01:34 UTC, Ryne Everett wrote:
>
> Are you sure mezzanine is really installed in the virtualenv? Check in a 
> repl:
>
> $ workon my-virtualenv
> $ python
> >>> import mezzanine
> >>>
>
> On Tue, Nov 3, 2015 at 7:26 AM, Joseph Mohan <skru...@gmail.com 
> > wrote:
>
>> I also have the same problem with a virtualenv, any ideas anyone?
>>
>> On Sunday, 2 August 2015 23:51:22 UTC+1, Richard Jackson wrote:
>>>
>>> Hi there,
>>>
>>> I'm trying to follow the basic installation guide found here (
>>> http://mezzanine.jupo.org/docs/overview.html#installation).
>>>
>>> When I run:
>>>
>>>
>>> $ python manage.py createdb --noinput
>>>
>>>
>>> I get the below error:
>>>
>>>
>>> Traceback (most recent call last):
>>> File "manage.py", line 7, in 
>>> from mezzanine.utils.conf import real_project_name
>>> ImportError: No module named mezzanine.utils.conf
>>>
>>>
>>> I've definitely installed Mezzanine (via "pip install mezzanine") but am 
>>> am getting no further.
>>>
>>> This seems like such a basic issue and I much be missing something 
>>> obvious, so any help identifying what that is would be greatly appreciated!
>>>
>>>
>>> Cheers,
>>>
>>> Rich
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to mezzanine-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Meta tags on Home-page stopped working

2015-10-17 Thread Joseph Mohan
It is created through the admin. and i think all the necessary tags are 
imported ( {% load pages_tags mezzanine_tags i18n future staticfiles %} ). 
I'm sure the tags originally did work because my search results used to 
look good, then noticed that it had all gone recently.

On Saturday, 17 October 2015 19:51:31 UTC+1, iain ross wrote:
>
>
> If your index page is created manually, as opposed to through the 
> admin, I think you will need to create the meta stuff yourself. At 
> least that is what I've always done. 
>
> -- 
>
> Regards, 
> Iain. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Meta tags on Home-page stopped working

2015-10-17 Thread Joseph Mohan
Throwing it out there, it seems my Title, Keywords and Description meta 
tags have no content in them http://www.josephmohan.co.uk, not sure for how 
long. 
They did originally work and i can't think of what i could have done to 
interfere with them. The strange thing is all other pages are working fine 
and the all the data is there.

Entered as text for now so not a major issue, just one of those 'doh' 
moments.. Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Meta tags on Home-page stopped working

2015-10-17 Thread Joseph Mohan
No theme, I'm sure it must be something back-end due to all the other tags 
working fine. for instance the css caching is fine. and my home page's 
 (index.html) is almost identical to base.html, and pages that 
inherit from base.html work fine. it's as if the whole meta part of the 
admin just isn't working for that one page (home)

On Saturday, 17 October 2015 20:13:50 UTC+1, iain ross wrote:
>
>
> What happens if you disable your theme? 
>
> -- 
>
> Regards, 
> Iain. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Google finding urls blocked by robots.txt

2015-08-27 Thread Joseph Mohan
Seems to have fixed itself. maybe google had a cached version?

On Thursday, 27 August 2015 11:28:17 UTC+1, Joseph Mohan wrote:

 Debug set to false. ( in local_settings.py and settings.py )
 Deleted all instances of robots.txt i can find

- in static/robots.txt 
- in nginx.conf

 I'm still using mezzanine3.1.10 
 never had any trouble before but i did set robots.txt to disallow all for 
 the first time with this site.

 Google webmaster tools just comes up with 16 errors Sitemap contains 
 urls which are blocked by robots.txt.

 this is the site www.josephmohan.co.uk

 any ideas? 


-- 
You received this message because you are subscribed to the Google Groups 
Mezzanine Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Google finding urls blocked by robots.txt

2015-08-27 Thread Joseph Mohan
Debug set to false. ( in local_settings.py and settings.py )
Deleted all instances of robots.txt i can find

   - in static/robots.txt 
   - in nginx.conf

I'm still using mezzanine3.1.10 
never had any trouble before but i did set robots.txt to disallow all for 
the first time with this site.

Google webmaster tools just comes up with 16 errors Sitemap contains urls 
which are blocked by robots.txt.

this is the site www.josephmohan.co.uk

any ideas? 

-- 
You received this message because you are subscribed to the Google Groups 
Mezzanine Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] adding SEARCH_MODEL_CHOICES seems to have broken PAGE_MENU_TEMPLATES

2015-08-10 Thread Joseph Mohan
Django.1.6.11 and I think I'm running Mezzanine3.1.10

Really strange, I tried adding some fields to SEARCH_MODEL_CHOICES, didn't 
get the result i was looking for so then commented the section out.
Now for some reason my custom pages aren't showing up their respective 
menus.
eg. {% if page.in_menu %} comes out False

99.9% sure this was the only change in code other than template stuff so 
totally baffled.

Any Ideas? 

-- 
You received this message because you are subscribed to the Google Groups 
Mezzanine Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: adding SEARCH_MODEL_CHOICES seems to have broken PAGE_MENU_TEMPLATES

2015-08-10 Thread Joseph Mohan
I've tried SEARCH_MODEL_CHOICES = []
and assigned a fresh db as well.

On Monday, 10 August 2015 17:08:29 UTC+1, Joseph Mohan wrote:

 Django.1.6.11 and I think I'm running Mezzanine3.1.10

 Really strange, I tried adding some fields to SEARCH_MODEL_CHOICES, didn't 
 get the result i was looking for so then commented the section out.
 Now for some reason my custom pages aren't showing up their respective 
 menus.
 eg. {% if page.in_menu %} comes out False

 99.9% sure this was the only change in code other than template stuff so 
 totally baffled.

 Any Ideas? 


-- 
You received this message because you are subscribed to the Google Groups 
Mezzanine Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Display a model that doesn't inherit from Page on every page of the site.

2015-05-13 Thread Joseph Mohan
Sorry, total Mezzanine noob. I've been developing with Django for 2 years, 
so i understand models,views,urls etc..
I want to create a model for contact information and a logo that will 
display on every page. 

I've got the hang of adding extra_model_fields but i don't want the client 
to have to add the information for every page they create (galleries). In 
django i would just pass the context into the template in views.py but 
obviously i can't with mezzanine. 

so what i'm asking is: Can i create a model that doesn't inherit from Page 
and still pass it through to base.html somehow?

if not, how would i go about this?

Sorry in advance!

-- 
You received this message because you are subscribed to the Google Groups 
Mezzanine Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Display a model that doesn't inherit from Page on every page of the site.

2015-05-13 Thread Joseph Mohan
Awesome! His blog is really good, should of searched there first! many 
thanks!

On Wednesday, 13 May 2015 16:09:32 UTC+1, Kenneth Bolton wrote:

 Hi Joseph,

 I think Josh has covered what you are looking for at his blog post here: 
 http://bitofpixels.com/blog/on-singletonadmins-and-sitewidecontent-editing-sitewide-content-in-mezzanines-admin/
 .

 Let us know if that sorts you.

 - ken

 On Wed, May 13, 2015 at 11:06 AM, Joseph Mohan skru...@gmail.com 
 javascript: wrote:

 Sorry, total Mezzanine noob. I've been developing with Django for 2 
 years, so i understand models,views,urls etc..
 I want to create a model for contact information and a logo that will 
 display on every page. 

 I've got the hang of adding extra_model_fields but i don't want the 
 client to have to add the information for every page they create 
 (galleries). In django i would just pass the context into the template in 
 views.py but obviously i can't with mezzanine. 

 so what i'm asking is: Can i create a model that doesn't inherit from 
 Page and still pass it through to base.html somehow?

 if not, how would i go about this?

 Sorry in advance!

 -- 
 You received this message because you are subscribed to the Google Groups 
 Mezzanine Users group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to mezzanine-use...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/d/optout.




-- 
You received this message because you are subscribed to the Google Groups 
Mezzanine Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.