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

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

[mezzanine-users] Installing Mezzanine on a shared server?

2015-11-19 Thread Dan Konig
I use Dreamhost as my host for my websites. I am attempting to install Mezzanine for one of them. I've tried following the directions they supplied me from this site. https://www.a2hosting.com/kb/developer-corner/python/installing-and-configuring-mezzanine-on-shared-hosting I believe I got thro

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

2015-11-19 Thread Eduardo Rivas
It looks like you have a migration file inside Mezzanine's source code. If you see the name of the migration that raises the exception, it's blog.0007_auto_20151119 (meaning it was created on November 19, 2015, by your injected field I presume). Remove that file and the associated .pyc file and

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

2015-11-19 Thread Danny
On 20/11/2015 4:34 AM, 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 ob

[mezzanine-users] Field Injection Will Not Migrate

2015-11-19 Thread R.J. Jackson
Hello, so I have worked with Django for over a year now, and wanted to give Mezzanine a try but I have not gotten far with it. I'm just doing some Field Injections and when I run a migrate command I get an error. *settings.py* EXTRA_MODEL_FIELDS = ( ( "mezzanine.blog.models.BlogPost.fea

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

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

2015-11-19 Thread Eduardo Rivas
Also, you were looking at the official grappelli repo. Mezzanine uses a custom fork (grappelli-safe), which is the one I linked to in my previous message. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and st

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

2015-11-19 Thread Eduardo Rivas
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 ow

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