Re: Need good image on the fly resizing

2013-04-21 Thread yati sagade
Check PIL out: http://stackoverflow.com/questions/273946/how-do-i-resize-an-image-using-pil-and-maintain-its-aspect-ratio On Mon, Apr 22, 2013 at 6:05 AM, frocco wrote: > Can someone point me to a good package? > > Thanks > > -- > You received this message because you are

debugging with pycharm

2013-04-21 Thread Mark Lybrand
I can't get PyCharm to break at breakpoints when debugging a django app. what is the magic incantation i neec to invoke to make this happen regardless of where i am in code (views, urls, models, templates, etc) -- Mark :) -- You received this message because you are subscribed to the Google

a wired problem with Debug for django1.5.1

2013-04-21 Thread liu li
Hi When Debug = False, all of things are working fine, when Debug = True, browser got an error with 500 so do you know why? I am using nginx to handle all of static files like css,img -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: django 1.5 not getting css

2013-04-21 Thread Carlos Aboim
ok I understand that, but I am using the development server. any other clues? thanks Domingo, 21 de Abril de 2013 17:44:46 UTC+1, Rainy escreveu: > > > > On Sunday, April 21, 2013 11:18:22 AM UTC-4, Carlos Aboim wrote: >> >> Hi everyone. >> >> Anybody can tell me why I can get css on my flatpage

Re: IDE to practice django template language

2013-04-21 Thread frocco
PyCharm is what I use and recommend. -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send

Need good image on the fly resizing

2013-04-21 Thread frocco
Can someone point me to a good package? Thanks -- 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 django-users+unsubscr...@googlegroups.com. To post to this

Re: css for flatpages

2013-04-21 Thread Michael Hernandez
Sorry what do you mean by flat. Do you mean that they dont import css files into them. As in mobile optimized? You would just create file in a templates directory and include it in any flat pages. It would be fully rendered on the server side, and no extra browser calls to grab the files. On

Re: How to link different kinds of objects?

2013-04-21 Thread Avraham Serour
If I could understand you right, a m2m field is exactly what you are describing. an object may belong to one or more feeds. Feed an object have an relation, The question if an object have to belong to a feed or not necessarily? does an object always have a related feed? does a feed always have a

css for flatpages

2013-04-21 Thread Carlos Aboim
Hi tell me, where should live css files for flatpages, these need a special folder for server to find them as for apps for example? thank you! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

How to link different kinds of objects?

2013-04-21 Thread Bastian
In the mean time I will try with a many to many field. That's probably more than enough. -- 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: logging within celery processes

2013-04-21 Thread Ask Solem
On Sunday, April 21, 2013 5:51:06 AM UTC+1, Mike wrote: > > I'm trying to get logging to work from within my celery process. I have > set: > CELERY_SEND_TASK_ERROR_EMAILS = True > in settings.py > > within the process I am logging to level INFO: > > logger.info('some info') > > I launch the

How to link different kinds of objects?

2013-04-21 Thread Bastian
Hi group, In a Django project I would like to create feeds of objects (could be text like in twitter or other kind of content, don't know yet, not relevant anyway). Each user could create new feeds and each user could also create new objects to put in those feeds. I am thinking about creating

Re: error and django forms

2013-04-21 Thread Vijay Shanker
yess that does it. thanks On Sun, Apr 21, 2013 at 11:57 PM, vijay shanker wrote: > > > On Sunday, April 21, 2013 10:58:47 PM UTC+5:30, vijay shanker wrote: >> >> hi >> >> i have a django form like this: >> >> class AddArtistForm(forms.Form): >> fname = forms.CharField()

Re: error and django forms

2013-04-21 Thread vijay shanker
On Sunday, April 21, 2013 10:58:47 PM UTC+5:30, vijay shanker wrote: > > hi > > i have a django form like this: > > class AddArtistForm(forms.Form): > fname = forms.CharField() > lname = forms.CharField() > profession = forms.CharField() > dob = forms.DateField() > > i want to

Re: Aggregate on part of a date field?

2013-04-21 Thread dan
Please do not license your code with GPL. On Thursday, September 9, 2010 12:38:19 AM UTC+2, sebastien piquemal wrote: > > I created a library to address this kind of problems : > http://code.google.com/p/django-cube/ > > It bases the aggregation on a multidimensional view of your data (a >

Re: error and django forms

2013-04-21 Thread Jesús Lucas Flores
You can get the errors of a field: {% for field in form %} {{field}} {% for error in field.errors %} {{ error }} {% endfor %} {% endfor %} 2013/4/21 vijay shanker > hi > > i have a django form like this: > > class AddArtistForm(forms.Form): >

error and django forms

2013-04-21 Thread vijay shanker
hi i have a django form like this: class AddArtistForm(forms.Form): fname = forms.CharField() lname = forms.CharField() profession = forms.CharField() dob = forms.DateField() i want to display errors as this {% for field in form %} {{field}} # error associated with

Re: django 1.5 not getting css

2013-04-21 Thread Rainy
On Sunday, April 21, 2013 11:18:22 AM UTC-4, Carlos Aboim wrote: > > Hi everyone. > > Anybody can tell me why I can get css on my flatpage /home/ ? > > http://dpaste.com/hold/1066757/ -> this is the html of the page > > http://dpaste.com/hold/1067747/ ---> this is the css styles > >

django 1.5 not getting css

2013-04-21 Thread Carlos Aboim
Hi everyone. Anybody can tell me why I can get css on my flatpage /home/ ? http://dpaste.com/hold/1066757/ -> this is the html of the page http://dpaste.com/hold/1067747/ ---> this is the css styles http://dpaste.com/hold/1066760/ -->settings.py

Re: How many workers do you run on one machine using django celery?

2013-04-21 Thread sparky
wow, some good advice here thanks. I tested with RabbitMQ and its fast, all I can say is it seems to be SQS. My advice don't use it! -- 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: How many workers do you run on one machine using django celery?

2013-04-21 Thread Scott Anderson
You can't test a system like this by sending one message: you're just testing the latency, not throughput. Latency is the end-to-end time it takes for a single message to make its way through the system. Throughput is the number of total messages per second that can make their way through. As

Re: SQLite3 database error!!!

2013-04-21 Thread Brad Pitcher
Can you post the rest of the traceback? On Apr 21, 2013 7:06 AM, "Kakar" wrote: > I am in settings.py and using SQLite3. But when i execute manage.py > syncdb, it gives me error: "Value error: Empty module name" I didn't > understood this part. Plz help me guyz.

Re: SQLite database module name???

2013-04-21 Thread yati sagade
Hi Kakar, I can't say what is the problem with your environment with the little info you have provided, but I feel this question can help you: http://stackoverflow.com/questions/3384576/problems-setting-up-django-valueerror-empty-module-name If that does not solve your problem, post the detailed

Re: How many workers do you run on one machine using django celery?

2013-04-21 Thread Michael Hernandez
you should try to not use Task Dispatching. Rather if you are doing this once a day, have a periodic task run every 24 hours. In the same module as the thread try doing something like what is at the bottom of this page http://docs.python.org/2/library/queue.html . It is a queue thread daemon

SQLite3 database error!!!

2013-04-21 Thread Kakar
I am in settings.py and using SQLite3. But when i execute manage.py syncdb, it gives me error: "Value error: Empty module name" I didn't understood this part. Plz help me guyz. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

SQLite database module name???

2013-04-21 Thread Kakar
I am in settings.py and using SQLite3, but when i run manage.py syncdb it tells me: " Value Error: Empty module name." Please help me with this, i didn't undesrtood this part. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: How many workers do you run on one machine using django celery?

2013-04-21 Thread Michael Hernandez
Sorry darn phone changed daemon to farming On Apr 21, 2013 9:39 AM, "Michael Hernandez" < michael.hernandez1...@gmail.com> wrote: > I have been working with heavy reporting and analytics lately. I would > suggest use thread queuing with many farming threads. I use python thread > but Greenlets it

Re: How many workers do you run on one machine using django celery?

2013-04-21 Thread Michael Hernandez
I have been working with heavy reporting and analytics lately. I would suggest use thread queuing with many farming threads. I use python thread but Greenlets it some else should be better On Apr 21, 2013 5:48 AM, "sparky" wrote: > One last thing to add, the task it's self

Re: How many workers do you run on one machine using django celery?

2013-04-21 Thread sparky
Maybe SQS is the issue here have a read: http://dataexcursions.wordpress.com/2011/12/15/amazon-sqs-vs-rabbitmq/ -- 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: How many workers do you run on one machine using django celery?

2013-04-21 Thread sparky
One last thing to add, the task it's self does not seems to be the issue, 'got message from broker' is the 3-4 second wait I can see. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: How many workers do you run on one machine using django celery?

2013-04-21 Thread sparky
Thanks for the responses it's very helpful. You are right, I won't have 100,000 tasks every seconds it's just a huge batch I have to send which at the moment would be 100,000 tasks. But just to be clear: Loop each contact in my DB: TASK: SEND 1 SMS FOR CONTACT I'm use Amazon SQS for the

Modifying a field in another model

2013-04-21 Thread Vittorio
My (newbye) problem is as follows: Suppose class Person(models.Model): first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=30) address = models.CharField(max_length=100) class Lent_Book(models.Model): title =