I am not able to pass a variable to a widget with its "mark_safe" attribute intact.

2015-06-16 Thread Dennis Marwood
Hello, I want to display images in my manyTomany so that a user can choose what images would be included inside of a "BlogWidgetCarousel". The issue I am running into is that the render function for the widget returns html via the "format_html" and the variable has lost its "safe" setting at th

Re: Django 1.8 migrate - relation “django_content_type” already exists

2015-06-16 Thread Leandro Zanuz
Maybe you need make migrations for all your apps or remove all apps to use migrations. I had the same problems, but with auth_group. In my case, I removed all apps to use migrations and works fine. http://stackoverflow.com/questions/25161425/disable-migrations-when-running-unit-tests-in-django-1-7

Re: Django 1.8 migrate - relation “django_content_type” already exists

2015-06-16 Thread Tim Graham
Take a look at the migrate --fake-initial option. It's new in 1.8. In 1.7, --fake-initial was an implicit default, but we decided to make it explicit in 1.8. https://docs.djangoproject.com/en/1.8/ref/django-admin/#django-admin-option---fake-initial On Tuesday, June 16, 2015 at 3:22:39 PM UTC-4,

Re: ProgrammingError: relation "django_content_type" already exists

2015-06-16 Thread Adam Teale
Hey guys did you manage to get anywhere with this? On Tuesday, 24 March 2015 03:00:28 UTC-3, Mike Dewhirst wrote: > > This is my first stab at upgrading directly from Django 1.6.11 to 1.81c > to see what needs to be done. I thought I'd skip 1.7.x - is that a bad > idea? Is there some step in

Django 1.8 migrate - relation “django_content_type” already exists

2015-06-16 Thread Adam Teale
Hi Guys, Any idea why I would be getting this error when I try to migrate? django.db.utils.ProgrammingError: relation "django_content_type" I am using using django 1.8 & postgresql Thanks! Adam -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: Core error in showing records?

2015-06-16 Thread Simon Charette
Hi MikeKJ, I suppose the ModelAdmin subclass in use here has a list_display method marked as boolean that return an unexpected value

Core error in showing records?

2015-06-16 Thread MikeKJ
Can anyone shed any light on what this is please? Exception Type: TemplateSyntaxError Exception Value: Caught KeyError while rendering: 10 Exception Location: /home/paston3/webapps/bbus/lib/python2.7/django/contrib/admin/templatetags/admin_list.py in _boolean_icon, line 126 The effect is t

Re: Scaling/Parallel patterns for a View executing complex database transaction

2015-06-16 Thread mesulphur
Exactly! We did prototype with Mongo and Riak to see if there were significant performance gains and the answer was no. Well tuned Postgres performed as well and as others. Add to this the complexities and risks associated with introducing a new component in your stack as against something stab