Re: [mezzanine-users] Mezzanine 4.0 is released

2015-07-09 Thread Graham Oliver
Awesome, thanks Stephen ! g On 10 July 2015 at 11:04, Stephen McDonald wrote: > Hi all, > > The new 4.0 release of Mezzanine is finally up on PyPI after 10 months > since the last release - a lot has happened! The project site ( > mezzanine.jupo.org) hasn't been upgraded yet, that will happen sh

[mezzanine-users] Re: TinyMCE 4

2015-06-26 Thread Graham Oliver
Thanks Steve and all others who contributed to integrating TinyMCE 4 Awesome! g On Saturday, 27 June 2015 10:21:32 UTC+12, Stephen McDonald wrote: > > Hi all, > > I've just merged into Mezzanine the work Alex Hill has done on upgrading > TinyMCE to version 4 - it looks a lot better! > > Please h

[mezzanine-users] Re: new release?

2015-06-04 Thread Graham Oliver
I raised this issue https://groups.google.com/d/msg/mezzanine-users/_QWfFVB3RVc/kar0ykEMZzgJ In terms of a new release I am not sure of its impact (if any). g On Friday, 5 June 2015 13:00:19 UTC+12, elguavas wrote: > > bump ;) i just looked in the issue tracker under "release blockers" and i >

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

2015-06-04 Thread Graham Oliver
Hi Sam Useful for me, thanks! I came across this problem when testing the dev version of Mezzanine in April https://groups.google.com/forum/#!searchin/mezzanine-users/testing$201.7$201.8/mezzanine-users/fuocmjotHWs/X8t36Nc3uwYJ I was just keeping 2 versions of the data. Your solution is way better!

Re: [mezzanine-users] Theming best practice: Bootstrap or bare-bones?

2015-06-03 Thread Graham Oliver
Hi Simon I did pip install robotonotebook and all was good, looks really good so far :-) Cheers g On Sunday, 31 May 2015 01:52:25 UTC+12, Simon Griffee wrote: > > Thanks, Stephen. > > I'll go through it again and keep at it. Once I get it all working > I'll document the steps I took here. > Si

[mezzanine-users] Re: new release? - Possible Mezzanine Bug in relation to mezzanine.jupo.org install

2015-05-27 Thread Graham Oliver
Hello everyone Using PostgreSQL in a virtual environment When I go through the install process for the mezzanine.jupo.org web site I am encountering a problem with the latest Django version 1.8.2 Note the problem does *not* occur with 1.7.8 Here is a description and stack trace of the problem htt

[mezzanine-users] The Readme on Github - I would like to give it a revamp

2015-05-22 Thread Graham Oliver
Hi all I would like to have a go at revamping the readme on GitHub https://github.com/stephenmcd/mezzanine/blob/master/README.rst Initial thoughts - Make it way shorter - Put the 'third party plugins' and 'sites using Mezzanine' lists in separate documents - Add details of 'Core Development Team'

Re: [mezzanine-users] After deploy I have empty database :(

2015-05-16 Thread Graham Oliver
Yes this took me quite a while to understand :-) I have gone through this process on webfaction recently Happy to answer any questions that you have. g On 17 May 2015 at 11:54, Ken Bolton wrote: > Hi Taedori, > > Mezzanine does not move your data! Migrations with the `migrate` > management comma

[mezzanine-users] moving data from development to production and the twitter model

2015-05-15 Thread Graham Oliver
Hello all I am just working through the process of moving data from development to production (which I will document at some point) I notice that after I do a 'flush' command various bits of data spring back to life. Doing some research I see that this is because of something called a post_migra

[mezzanine-users] Re: Using Mezzanine with Python 3: package compatibility

2015-05-15 Thread Graham Oliver
Hi Christian In terms of MySQL vs PostgreSQL have a look at https://docs.djangoproject.com/en/1.7/topics/migrations When I read 'PostgreSQL is the most capable of all the databases here in terms of schema support' and 'MySQL lacks support for transactions around schema alteration operations,

[mezzanine-users] Re: Introducing Mezzanine's Core Development Team

2015-05-11 Thread Graham Oliver
So awesome! In New Zealand there is a Māori proverb that asks... He aha te mea nui (What is the most important thing?) the answer being... He tāngata, he tāngata, he tāngata (It is people, it is people, it is people!) Glad to be part of this community, with this group of core developers :-) g

[mezzanine-users] Re: Webfaction fabfile with Django 1.7.7 and development version of Mezzanine - More detailed info

2015-05-05 Thread Graham Oliver
Tuesday, 5 May 2015 14:16:21 UTC+12, Graham Oliver wrote: > > I am just working through the webfaction fabfile written by Jervais > (thanks!) https://github.com/jerivas/mezzanine-webf > I am using Django 1.7.7, Python 2.7 and the current development version > of Mezzanine. > &g

[mezzanine-users] Re: new release?

2015-04-29 Thread Graham Oliver
Hi Gavin My understanding is that it is done on a best-efforts basis, so the short answer to your question is 'no'. Cheers g On Wednesday, 29 April 2015 10:06:51 UTC+12, Gavin Wahl wrote: > > Is there a timeline for a release that supports Django 1.8? > -- You received this message because you

[mezzanine-users] Search synonyms

2015-04-27 Thread Graham Oliver
Hello all Is there a way to add 'search synonyms'? An example, if a user searches for the word 'qi' searches will behave as if the user has searched for 'qi' or 'chi' and similarly if a user searches for the word 'chi' searches will behave as if the user has searched for 'qi' or 'chi' Thanks g

[mezzanine-users] PostgreSQL version on terminal

2015-04-17 Thread Graham Oliver
Just started using PostgreSQL and notice that on the terminal when I execute the runserver command the PostgreSQL version comes up as PostgreSQL 9.0306.3.06.6 When I run psql --version I get 9.3.6 Not sure if they should match or not g -- You received this message because you are subscribed

Re: [mezzanine-users] Re: new release? - TypeError at /search/ unsupported operand type(s) for |=:

2015-04-15 Thread Graham Oliver
20be1226844ad201baf > > On Tue, Apr 14, 2015 at 5:55 PM, Graham Oliver > wrote: > >> no problems in 1.7.7 >> Here is the return from the [m._meta.get_parent_list() for m in models] >> in 1.7.7 >> [{}, {> 'mezzanine.pages.models.Page'>}, {}, >

Re: [mezzanine-users] Re: new release? - TypeError at /search/ unsupported operand type(s) for |=:

2015-04-14 Thread Graham Oliver
April 2015 19:00:18 UTC+12, Graham Oliver wrote: > > Python 3.4 Django 1.8 > > Request Method: GET Request URL: > http://192.168.1.81:8000/search/?q=samoa Django Version: 1.8 Exception > Type: TypeError Exception Value: > > unsupported operand type(s) for |=: 'li

Re: [mezzanine-users] Re: new release? - TypeError at /search/ unsupported operand type(s) for |=:

2015-04-14 Thread Graham Oliver
Python 3.4 Django 1.8 Request Method: GET Request URL: http://192.168.1.81:8000/search/?q=samoa Django Version: 1.8 Exception Type: TypeError Exception Value: unsupported operand type(s) for |=: 'list' and 'list' Exception Location: /home/graham/Virtual-Environments/test-py3-dj1.8/lib

Re: [mezzanine-users] Re: new release? - TypeError: __init__() got an unexpected keyword argument

2015-04-11 Thread Graham Oliver
Can't reproduce No longer consider this a problem g On Friday, 10 April 2015 16:28:24 UTC+12, Graham Oliver wrote: > > All good on Python 3.4.3 and Django 1.8 > When I switch to Python 3.4.3 and Django 1.77 I get this stack trace when > doing 'python manage.py runserver&#x

Re: [mezzanine-users] Re: new release? - cannot import name 'find_template_loader'

2015-04-08 Thread Graham Oliver
Django 1.8 Python 3.4.3 Accessing the admin ImportError at /admin/login/ cannot import name 'find_template_loader' Request Method: GET Request URL: http://127.0.0.1:8000/admin/login/?next=/admin/ Django Version: 1.8 Exception Type: ImportError Exception Value: cannot import name 'fin

[mezzanine-users] Re: new release?

2015-04-07 Thread Graham Oliver
Django 1.8 - Python 3.4.3 Took the advice of the console 'You have unapplied migrations; your app may not work properly until they are applied. Run 'python manage.py migrate' to apply them.' and ran python manage.py migrate stack trace Running migrations: Rendering model states...Traceback (m

[mezzanine-users] Re: new release?

2015-04-07 Thread Graham Oliver
Same results on Python 2.7.9 I notice that all of the 4 tests except the first one had this text 'You have unapplied migrations; your app may not work properly until they are applied. Run 'python manage.py migrate' to apply them.' -- You received this message because you are subscribed to the

[mezzanine-users] Re: new release?

2015-04-07 Thread Graham Oliver
Django 1.7.7, Python 3.4.3 python manage.py runserver Performing system checks... System check identified some issues: WARNINGS: ?: (1_6.W001) Some project unittests may not execute as expected. HINT: Django 1.6 introduced a new default test runner. It looks like this project was generate

[mezzanine-users] Re: new release?

2015-04-07 Thread Graham Oliver
Just adding this to this thread. Let me know if it should go elsewhere Django 1.8, Python 3.4.3 When I do python manage.py runserver 1) I get many of these 'RemovedInDjango19Warning' also 2) I get this warning WARNINGS: core.SitePermission.user: (fields.W342) Setting unique=True on a Foreign

Re: [mezzanine-users] Trying to integrate Mezzanine to another project

2015-03-31 Thread Graham Oliver
Perhaps the top answer here can help? http://stackoverflow.com/questions/2606194/django-error-message-add-a-related-name-argument-to-the-definition On 1 April 2015 at 12:27, Melvin Ramos wrote: > Hello, > > I'm tryin to integrate Mezzanine to GeoNode. I added all I needed in > settings.py but th

Re: [mezzanine-users] Re: Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-30 Thread Graham Oliver
; file properly. > > Can you modify the error messages of the views.py file of filebrowser_safe > so we know which one is occuring? > > > Le vendredi 27 mars 2015 07:47:29 UTC+1, Graham Oliver a écrit : >> >> yes I was just wondering if there was anything more helpful with th

[mezzanine-users] Images, mobile devices and Mezzanine

2015-03-29 Thread Graham Oliver
I am confused as to how to go about making a Mezzanine web site I am developing work well with mobile devices (especially images). Initially I thought that I had to use Mobile templates, but I have noticed that, for example, with a bootstrap Carousel on the home page (with large images), it loo

Re: [mezzanine-users] Re: Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-26 Thread Graham Oliver
I also found this in the mailing list http://grokbase.com/p/gg/mezzanine-users/1326ek5pna/commenting-gives-me-an-error-when-debug-is-set-to-off On 27 March 2015 at 19:07, Wan Hsin Mao wrote: > I use Apache2.2, so there shouldn't be file permission problems if I set > my upload directory "Order a

Re: [mezzanine-users] Re: Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-26 Thread Graham Oliver
yes I was just wondering if there was anything more helpful with the error message. I have searched the code base and I can only find the text 'An error occurred' in one place https://github.com/orotau/mezzanine/blob/master/mezzanine/core/static/mezzanine/js/editable.js#L19 I don't know if that is

Re: [mezzanine-users] Re: Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-26 Thread Graham Oliver
Can you delete an image file ok? Like a jpg or a png? On 27 March 2015 at 16:07, Wan Hsin Mao wrote: > I got this message when I run the "manage.py runserver" command: > > > > > --

Re: [mezzanine-users] Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-26 Thread Graham Oliver
Hello.. You could look at the console to see more detailed error messages... Regards Graham On 27 March 2015 at 14:23, Wan Hsin Mao wrote: > I'm using the newest version of Mezzanine as my website CMS. There is > always "An error occurred" message after I click the trash can icon. Is > there an

Re: [mezzanine-users] Hosted solutions for Mezzanine

2015-03-25 Thread Graham Oliver
am relatively new to Mezzanine so there will be plenty more wisdom out there from those who have more experience... Thanks Graham On Wednesday, 25 March 2015 23:27:59 UTC+13, Luke Plant wrote: > > > > On Tuesday, March 24, 2015 at 7:40:28 PM UTC, Graham Oliver wrote: >> &g

Re: [mezzanine-users] Re: Site working perfectly in development, but admin and static pages are crashing in production

2015-03-15 Thread Graham Oliver
ok - looking at the error messages They seem to be being tiggered by {% admin_dropdown_menu %} which is in mezzanine_tags.py def admin_dropdown_menu(context): """ Renders the app list for the admin dropdown menu navigation. """ user = context["request"].user if user.is_staff: context["dropdown_m

[mezzanine-users] Validating between obejcts when the number of Inline objects >= 2

2015-03-06 Thread Graham Oliver
Kia Ora (Hello) I have a class 'Happening' that can have one or more 'Spans' In the admin I have the 'Spans' as an Inline, all good. I have a clean method on the Span class that validates the INDIVIDUAL Span objects, all good. However, if the user enters 2 or more Span objects I want to validate

[mezzanine-users] Trying to use 'inline' in Admin with a many to many relationship

2015-02-27 Thread Graham Oliver
I have a class 'Happening' with a ManyToMany relationship to 'Span' as follows class Happening(Page, RichText): spans = models.ManyToManyField(Span) class Span(Slugged): start_date = models.DateField() end_date = models.DateField() start_time = models.TimeField end_time = mo

[mezzanine-users] Getting started with Git

2015-02-19 Thread Graham Oliver
Hi there I have been attempting to get my head around Git and here is a blog post sharing my learning. Thanks to Stephen McDonald and Ross Laird for the inspiration. Mezzanine rocks! http://gitstarted.blogspot.co.nz/2015/02/git-for-one.html Graham -- You received this message because you are s

[mezzanine-users] Re: How to use TinyMCE V4?

2015-02-19 Thread Graham Oliver
Hi Daniel You could also look at this https://github.com/AlexHill/tinymezzce4 Note that I hit a road block https://github.com/AlexHill/tinymezzce4/issues/2 Cheers g On Thursday, 19 February 2015 18:51:25 UTC+13, Daniel Herrera wrote: > > I want to use the TinyMCE WYTIWYG editor at its latest vers

[mezzanine-users] Re: Ensure unqiue title field on model inherited from Displayable

2015-02-12 Thread Graham Oliver
The code I posted prevents any editing of existing records :-( To remove this bug it needs to be preceded by if not self.pk: Regards Graham I have a model which inherits from Displayable, giving me a 'title' field. > What would be a good strategy to ensure the uniqueness of the 'title' > field

Re: [mezzanine-users] Re: Ensure unqiue title field on model inherited from Displayable

2015-02-05 Thread Graham Oliver
Hi Eduardo At the moment I have decided to create a field on the inherited model call 'title_copy' with unique = TRUE and then in the clean method I have self.title_copy = self.title I realise that this is pretty ugly but I have decided FOR THE MOMENT to do it for 2 reasons a) I understand it b

[mezzanine-users] Foreign Key to Page Object - Controlling the dropdown text in Admin

2015-02-04 Thread Graham Oliver
Hi there I have a foreign key to a Page Object. I want to be able to control the text that appears on the drop down in the Admin. I am guessing that I need to override ModelChoiceField like here http://stackoverflow.com/questions/6836740/django-admin-change-foreignkey-display-text However, I am a

[mezzanine-users] Ensure unqiue title field on model inherited from Displayable

2015-02-01 Thread Graham Oliver
Hi there I have a model which inherits from Displayable, giving me a 'title' field. What would be a good strategy to ensure the uniqueness of the 'title' field for the instances of this model? TIA Graham -- You received this message because you are subscribed to the Google Groups "Mezzanine Us

[mezzanine-users] Re: Mezzanine Agenda 'EVENT_SLUG' - trying to change

2014-12-26 Thread Graham Oliver
Just in case anyone else has this problem here is the solution https://github.com/orotau/mezzanine-project-soul/commit/f88e68371b7e0b18a99f7cb34a6f956cfbaf9a3e G The problem was the way that I had set up On Thursday, 25 December 2014 14:13:56 UTC, Graham Oliver wrote: > > Hi there &g

[mezzanine-users] Mezzanine Agenda 'EVENT_SLUG' - trying to change

2014-12-25 Thread Graham Oliver
Hi there I have changed the default value of 'EVENT_SLUG' in the Mezzanine Agenda app (by updating settings.py). However, the change does not register, it stays with the default value 'events'. Any ideas as to where I should look in the code base to see if it has been 'hard-coded' somewhere TIA

[mezzanine-users] Non-ASCII text in image filenames causing images not to render

2014-12-04 Thread Graham Oliver
Using Ubuntu 14.04, Python 2.7.6 and Mezzanine 3.1.10 I note the following When I go to http://127.0.0.1:8000/gallery/ the 2 images that contain non-ASCII text in their filenames do not render. They render fine via the admin interface without a problem. I am using the latest version of Firefox and

Re: [mezzanine-users] Getting hold of the model instance when I save a Blog from the admin

2014-11-12 Thread Graham Oliver
re trying to accomplish? What do you want > to do with the instance? I believe in most cases, Django's signals ( > https://docs.djangoproject.com/en/dev/topics/signals/) are an easy way to > work with instances pre- or post-save. > > hth, > ken > > On Wed, Nov 12

[mezzanine-users] Getting hold of the model instance when I save a Blog from the admin

2014-11-12 Thread Graham Oliver
I am trying to get the model instance when the save button is pressed on the Blog Admin form. I have found the code (below) in \blog\admin.py that gets triggered for the save. However, I am not sure how to get the instance. I have looked at the types of 'self', 'request' and 'form' but they all