Re: Is file based cache is safe for concurrent process?

2013-03-26 Thread Andre Terra
safe or not, it is slow. why not use redis? On Tue, Mar 26, 2013 at 9:57 PM, Ivan Smirnoff wrote: > Hi all. > Can anyone tell, does django.cache locks file for writing by concurrent > process? > > -- > You received this message because you are subscribed to the Google

Re: Using values_list and extra on same queryset

2013-03-26 Thread Larry Martell
On Tue, Mar 26, 2013 at 4:51 PM, Larry Martell wrote: > I have some existing code that calls values_list on a queryset. I need > to add something using extra to this queryset. If I call extra before > values_list the extra stuff is gone from the query after the >

Is file based cache is safe for concurrent process?

2013-03-26 Thread Ivan Smirnoff
Hi all. Can anyone tell, does django.cache locks file for writing by concurrent process? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Is there a plan for Django to handle NoSQL databases natively?

2013-03-26 Thread Russell Keith-Magee
On Wed, Mar 27, 2013 at 12:46 AM, Javier Guerra Giraldez wrote: > On Tue, Mar 26, 2013 at 11:10 AM, Donnie Darko > wrote: > > I was wondering if there there was a plan to change Django's ORM to > support > > NoSQL databases? > > > since there's no such

Re: Create Django web apps with drag and drop interface builder

2013-03-26 Thread timothy crosley
While I have a horrible microphone, I went ahead and made a screencast that shows building an app using WebBot, it's using AppEngine in this example but the steps are more or less the same when used with Django: http://www.youtube.com/watch?v=ucougrZK9wI On Monday, March 25, 2013 12:40:34 PM

Re: Is there a plan for Django to handle NoSQL databases natively?

2013-03-26 Thread Russell Keith-Magee
On Wed, Mar 27, 2013 at 12:10 AM, Donnie Darko wrote: > I really like Django. I've fiddled around a bit with Rails, but I > personally prefer Django's logic. I also prefer Python over Ruby. Again, > personal preferences. Despite all that, I am now switching back to Rails >

Re: Using values_list and extra on same queryset

2013-03-26 Thread Larry Martell
On Tue, Mar 26, 2013 at 5:04 PM, Andre Terra wrote: > Could you provide us any examples or code at all? The app is very abstracted. It builds a queryset, starting with: queryset = self.data_model.objects.filter(**args) then there are more calls to filter on it and then

Re: Using values_list and extra on same queryset

2013-03-26 Thread Andre Terra
Could you provide us any examples or code at all? Cheers, AT On Tue, Mar 26, 2013 at 7:51 PM, Larry Martell wrote: > I have some existing code that calls values_list on a queryset. I need > to add something using extra to this queryset. If I call extra before >

Using values_list and extra on same queryset

2013-03-26 Thread Larry Martell
I have some existing code that calls values_list on a queryset. I need to add something using extra to this queryset. If I call extra before values_list the extra stuff is gone from the query after the values_list. If I call extra after the call to values_list it seems to have to effect - the

Re: [django-users] Limit uploaded image properties

2013-03-26 Thread Avraham Serour
next time consider recommending pillow instead of PIL https://github.com/python-imaging/Pillow https://pypi.python.org/pypi/Pillow/2.0.0 On Tue, Mar 26, 2013 at 4:30 AM, Nikolas Stevenson-Molnar < nik.mol...@consbio.org> wrote: > I think you can get at a file's size with the 'size' attribute

Re: 1.5 user abstract question

2013-03-26 Thread Rafael E. Ferrero
Inherid from User Model 2013/3/26 frocco > Hello > > I need a couple of extra fields in my user model > > Do I have to specify all fields in django user? > > Is django user still used? > > -- > You received this message because you are subscribed to the Google Groups >

1.5 user abstract question

2013-03-26 Thread frocco
Hello I need a couple of extra fields in my user model Do I have to specify all fields in django user? Is django user still used? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from

Re: Runtime error (using SQLite)

2013-03-26 Thread Bill Freeman
More error message details? Stack trace? Does it happen right away at startup, or do you have to visit one of these views,and if so, which? On Tue, Mar 26, 2013 at 8:32 AM, Fusi0n wrote: > Can someone spot something that could possibly cause a runtime error ? > This

Re: NoReverseMatch at /my_account/

2013-03-26 Thread Bill Freeman
You haven't shown us the call to reverse of use of the url template tag that evokes this issue. A stack trace might be helpful too, in jogging someone's memory. But I seem to recall problems when I named my url patter the same as the name of my view function. It's not that it can't work that

Re: Casting a raw query set as a list for pagination

2013-03-26 Thread Bill Freeman
Wouldn't you be better served by implementing the count() (which is probably what the paginator calls) method on your raw queryset (subclassing as necessary, whatever a raw queryset is), rather than poking into paginator internals? On Tue, Mar 26, 2013 at 5:51 AM, wrote:

Announcement - django-base64field

2013-03-26 Thread Alir3z4
Hi, I've released django-base64feld. Current version is 0.9. I'm using this app for couple of months now, So I've done some clean-up on it, wrote some tests and released it. Overview A django model field to bring ``base64`` encoded key to models. It generate a base64 encoded key

Re: makemessages failing with non ascii characters in templates

2013-03-26 Thread Bastian
I have to search again to filter only the non ascii chars in the comments. Right now I have a list of all non ascii characters. But I am considering upgrading to 1.4 before that not only for the translations. If not, or if the problem still exists by then I will search for the exact template.

Re: Is there a plan for Django to handle NoSQL databases natively?

2013-03-26 Thread Nikolas Stevenson-Molnar
Does anyone know what approach Rails takes to support for non-rel databases? _Nik On 3/26/2013 9:46 AM, Javier Guerra Giraldez wrote: > On Tue, Mar 26, 2013 at 11:10 AM, Donnie Darko wrote: >> I was wondering if there there was a plan to change Django's ORM to support >>

Re: Is there a plan for Django to handle NoSQL databases natively?

2013-03-26 Thread Javier Guerra Giraldez
On Tue, Mar 26, 2013 at 11:10 AM, Donnie Darko wrote: > I was wondering if there there was a plan to change Django's ORM to support > NoSQL databases? since there's no such thing as "common NoSQL features", each datastore would need its own modifications, so i think the

Is there a plan for Django to handle NoSQL databases natively?

2013-03-26 Thread Donnie Darko
I really like Django. I've fiddled around a bit with Rails, but I personally prefer Django's logic. I also prefer Python over Ruby. Again, personal preferences. Despite all that, I am now switching back to Rails because of Django's lack of native support for databases like mongodb. I saw

Re: makemessages failing with non ascii characters in templates

2013-03-26 Thread Ramiro Morales
On Tue, Mar 26, 2013 at 9:23 AM, Bastian wrote: > If I understand well, your fix is used to allow non ascii characters in the > comments of a template. I found non ascii characters outside comments too, > won't this break also? Unfortunately we don't have information

Re: how to copy a cart session

2013-03-26 Thread Galia Weiss
Hi, Not sure this is what you mean, but I am trying to help. If I understand the cart data is saved somewhere in your database, and is linked to the user. How did you do your cart form? I think I have a similar scenario, in my case, I have a ModelForm based on an Order model I have defined

Re: save as

2013-03-26 Thread Larry Martell
On Tue, Mar 26, 2013 at 6:48 AM, Larry Martell wrote: > On Wed, Mar 20, 2013 at 6:26 PM, Felipe Coelho wrote: >>> 2013/3/20 Larry Martell >>> >>> >>> I'm not outputting any PDF. I have a zip file I want to download to >>>

Runtime error (using SQLite)

2013-03-26 Thread Fusi0n
Can someone spot something that could possibly cause a runtime error ? This the Poll example from the djangoproject homepage. Any help is appreciated. *views.py: * from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render, get_object_or_404 from

Re: save as

2013-03-26 Thread Larry Martell
On Wed, Mar 20, 2013 at 6:26 PM, Felipe Coelho wrote: >> 2013/3/20 Larry Martell >> >> >> I'm not outputting any PDF. I have a zip file I want to download to >> the user's computer, and I also want my template rendered. > > > That means you have

Re: makemessages failing with non ascii characters in templates

2013-03-26 Thread Bastian
If I understand well, your fix is used to allow non ascii characters in the comments of a template. I found non ascii characters outside comments too, won't this break also? On Tuesday, March 26, 2013 12:19:36 PM UTC+1, Ramiro Morales wrote: > > On Tue, Mar 26, 2013 at 8:04 AM, Bastian

problems with django-celery

2013-03-26 Thread Mateusz Iwański
Hi, I have a problem with django-celery. When i want to delay function I get an error from celery worker, it happens every second time when i want to use it. Error from celery worker: Can't decode message body: ImportError('No module named manager.apps.ffmpeg.tasks',)

Re: NoReverseMatch at /my_account/

2013-03-26 Thread rainikotobary
Hello, I dont have the $ sign like you but I'm still getting this error. Please, is there any workaround, what are the issues ? I really about to give up Le lundi 4 février 2013 21:48:37 UTC+3, frocco a écrit : > > I am getting NoReverseMatch at /my_account/ > what is wrong with my urls? >

Casting a raw query set as a list for pagination

2013-03-26 Thread chambers24889
I'm trying to implement Django's built in pagination feature with a raw query set. I've researched the issue and the answer is I need to cast my set as a list. Something like this: paginator = Paginator(refg, 100) # Show 100 contacts per page paginator._count = len(list(refg)) >From my

Re: makemessages failing with non ascii characters in templates

2013-03-26 Thread Bastian
Thanks Ramiro, I don't know the actual burden of upgrading a whole project from 1.3 to 1.4 but it does sound terrifying :) I might go the patch way. On Tuesday, March 26, 2013 12:19:36 PM UTC+1, Ramiro Morales wrote: > > On Tue, Mar 26, 2013 at 8:04 AM, Bastian > wrote:

Re: makemessages failing with non ascii characters in templates

2013-03-26 Thread Ramiro Morales
On Tue, Mar 26, 2013 at 8:04 AM, Bastian wrote: > Hi, I am trying to create a .po file to start a translation. I use the > command './manage.py makemessages -l ru' to try to create the Russian > locale. The script seems to be working for a while and then crashes with:

makemessages failing with non ascii characters in templates

2013-03-26 Thread Bastian
Hi, I am trying to create a .po file to start a translation. I use the command './manage.py makemessages -l ru' to try to create the Russian locale. The script seems to be working for a while and then crashes with: processing language ruTraceback (most recent call last): File "./manage.py",