Re: Crispy forms and its "coercing to unicode need string or buffer nonetype found"

2016-08-12 Thread RompePC
Ok, I just did again a *unicode(..)* call to a method that before worked without it. Sincerely, I just have no idea why now I need to do it. Solved. El jueves, 11 de agosto de 2016, 12:58:20 (UTC+2), RompePC escribió: > > I was working on an admin panel, and when I try to get to the add/update

Re: ProgrammingError: (2014, "Commands out of sync; you can't run this command now")

2016-08-12 Thread ANOOP M.S
any idea why this happens? On Tuesday, July 8, 2008 at 11:05:27 PM UTC+5:30, Rodrigo Culagovski wrote: > > In a production site, all of a sudden while trying to edit the site > via the admin interface I get: > > ProgrammingError: (2014, "Commands out of sync; you can't run this > command now")

ANN: django-admin-tools 0.8.0 released

2016-08-12 Thread David Jean Louis
Hello, We are happy to announce the availability of the version 0.8.0 of django-admin-tools: https://pypi.python.org/pypi/django-admin-tools/0.8.0 Django-admin-tools is a collection of extensions/tools for the default django administration interface, it includes: * a full featured and customizabl

Re: Django back button issue after log-out

2016-08-12 Thread Abhijeet Singh
It still does not work. Still "Back" button takes it to last session page On Monday, December 17, 2012 at 7:37:49 PM UTC+5:30, Ashish Sable wrote: > > yup... Got the solution just the bower cache needs to be cleared. > > from django.views.decorators.cache import cache_control > > @cache_control(no

Re: Parent initialization don't working

2016-08-12 Thread RompePC
An intereseting point is that, even after the *super*, *list_filter* remains still setted (which is what I want), but then in the web page it doesn't show anywhere (as if you just didn't setted it). Maybe there's some hidden *__init__* upside model admin that do some clean? El jueves, 11 de ago

Django 1.10, Issues with prefix_default_language

2016-08-12 Thread Keith Hackbarth
I'm having two issues with "prefix_default_language" that I was hoping to shed some insight on. My URL conf is as follows: urlpatterns += i18n_patterns( url(r'^(?P.+-parking)/?$', CityView.as_view()), prefix_default_language=False ) Issue #1: Prefixes If a city that matches my regex ALS

DoesNotExist on ForeignKey Access

2016-08-12 Thread TheBeardedTemplar
Hey all, I'm quite stumped with a problem that recently started showing up in my code. I have a model called a Widget that can have an associated Blob object. When a Widget is deleted, I want to make sure that the Blob associated with it isn't used elsewhere, and if it's not, delete it. I do t

Re: DoesNotExist on ForeignKey Access

2016-08-12 Thread Todor Velichkov
Some more code will be helpful, for example the model structure, how do you define the the `ForeignKey`? How do you subscribe for the signal? You are saying that with sleep(1) the code works fine, is this mean that you can reproduce the problem at any time? However test it without fetching the bl

Re: Crispy forms and its "coercing to unicode need string or buffer nonetype found"

2016-08-12 Thread Constantine Covtushenko
Hi, Sounds great. On Fri, Aug 12, 2016 at 11:12 AM, RompePC wrote: > Ok, I just did again a *unicode(..)* call to a method that before worked > without it. Sincerely, I just have no idea why now I need to do it. > > Solved. > > > El jueves, 11 de agosto de 2016, 12:58:20 (UTC+2), RompePC escrib

Re: ProgrammingError: (2014, "Commands out of sync; you can't run this command now")

2016-08-12 Thread Constantine Covtushenko
Hi Anoop, I've checked that such kind of errors comes from MySQL server. You can check detailed explanation here . Do you have any procedure run on your server? On Fri, Aug 12, 2016 at 11:37 AM, ANOOP M.S wrote: > any idea why th

Re: DoesNotExist on ForeignKey Access

2016-08-12 Thread TheBeardedTemplar
On Friday, August 12, 2016 at 1:19:17 PM UTC-6, Todor Velichkov wrote: > > Some more code will be helpful, for example the model structure, how do > you define the the `ForeignKey`? How do you subscribe for the signal? > You are saying that with sleep(1) the code works fine, is this mean that >

Re: Parent initialization don't working

2016-08-12 Thread Constantine Covtushenko
Sorry, I did not mention your point about xadmin. Sorry again. I've checked its github page. It seems like they do not have documentation in English. So may be your problem should be addressed to them? Did you try that? Else as for me we should go to xadmin code and check there. On Fri, Aug 12,

Re: DoesNotExist on ForeignKey Access

2016-08-12 Thread Constantine Covtushenko
HI guis, I need to mention one point that works well for me. If you check blob existence with: hasattr(widget, 'blob') then django responds False in the case Blob Does Not exist an True otherwise. At the same time DB request is performed but DoesNotExist exception is not raised. On Fri, Aug 12

Re: DoesNotExist on ForeignKey Access

2016-08-12 Thread Todor Velichkov
@TheBeardedTemplar, I'm happy this solves the problem, but its more like a workaround, I'm interested to understand how this raise condition is achieved. ;) One thing that I was thinking that can cause this raise condition is that by default Django emulates CASCADE DELETE behavior on ForeignKeys

How t o create more than one application

2016-08-12 Thread Timothy Steele
down votefavori I am studying the Django framework, reading the documentation, but have not found references on how to create more than one application on the same project, where each application has multiple app

Re: How t o create more than one application

2016-08-12 Thread Timothy Steele
On Saturday, August 13, 2016 at 1:37:10 AM UTC+1, Timothy Steele wrote: > > > > down votefavori > > > I am studying the Django framework, reading the documentation, but have > not found references on how to create