Re: Implementing a monitoring system with django.

2012-12-11 Thread ephan
Depending on what you need for the graphs,have a look at flot,jqplot or rapheal.js(heavy).There is also high charts althought there are some licensing issues you may want to avoid. If you get stuck with the charts,let me know..am running some. On Tuesday, December 11, 2012 11:09:06 PM UTC+2,

Unique Id issue

2012-12-11 Thread ephan
Hi all, Am in a bit of a fix which I put myself in,I have the following models: class Town(...): name = models.CharField(unique=true) province = models.foreignKey(Province) class Area(): name = models.CharField(unique=true,max_length=120) town = models.CharField(Town)

Re: Django Celery FIFO ORDER

2012-12-11 Thread Nikolas Stevenson-Molnar
Sorry, I'm not sure I understand the full problem correctly. If you're running these tasks serially, why bother with a queue at all? Just run each task one after the other in the same process. _Nik On 12/11/2012 8:01 AM, psychok7 wrote: > I got the named queues working with 1 worker, but i am

Re: JSONResponseMixin: Best handle "context" before dumping it to JSON?

2012-12-11 Thread Russell Keith-Magee
On Wed, Dec 12, 2012 at 3:21 AM, Micky Hulse wrote: > Hello, > > I'm modifying a version of this code (JSONResponseMixin): > > < > https://docs.djangoproject.com/en/1.3/topics/class-based-views/#more-than-just-html > > > > ... so it can handle jsonp and caching (so far so

Re: Project path

2012-12-11 Thread Lachlan Musicman
I don't think I've ever got a more comprehensive and excellent response - cheers L. On Wed, Dec 12, 2012 at 4:25 AM, Bill Freeman wrote: > > > On Mon, Dec 10, 2012 at 8:59 PM, Lachlan Musicman wrote: >> >> Hola, >> >> I've got a split settings set up for my

Re: Implementing a monitoring system with django.

2012-12-11 Thread Marc Aymerich
On Tue, Dec 11, 2012 at 4:32 PM, Bill Freeman wrote: > > > On Mon, Dec 10, 2012 at 2:41 PM, Marc Aymerich wrote: >> >> Hi, >> I'm considering to implement a simple monitorization system that >> basically gathers some data from a set of nodes (<1000 nodes).

Re: Django-MongoDb deployment at production servert

2012-12-11 Thread Chuck James
Really in-depth reply with fair option :) thanks, Seems, I should take a dedicated web server and then start implementing it with Gunicorn (will try first, then I may move to apache). Now I need to read how to deploy django with Gunicorn/apache. Thanks. On Tue, Dec 11, 2012 at 2:24 PM, yati

Re: Django-MongoDb deployment at production servert

2012-12-11 Thread yati sagade
A webserver written in Python is almost certainly something you don't want for production as frankly, Python in its current form is just not suited for that. You can try Tornado, though, which is a pure Python non-blocking webserver that seems to be very scalable. The "best" way - you can arrive

JSONResponseMixin: Best handle "context" before dumping it to JSON?

2012-12-11 Thread Micky Hulse
Hello, I'm modifying a version of this code (JSONResponseMixin): ... so it can handle jsonp and caching (so far so good)... I was just curious, the comments say: # Note: This is *EXTREMELY* naive; in

Re: Django-MongoDb deployment at production servert

2012-12-11 Thread Chuck James
Thanks for the reply guys :). The reason, I am mentioning the DB here, is that MongoDb is not a relational database, so when one will tell me the Django deployment, he should keep non relational database in mind. Other point, deployment without any common web server (apache/nginx) because

Re: Django-MongoDb deployment at production servert

2012-12-11 Thread yati sagade
Hi Whether your database should live on a separate server or not is a question you can best answer by testing various configurations out depending on the load your app expects. As for the webserver, you can (and probably should) do away with Apache, and try GUnicorn, which is a great WSGI

Re: Django-MongoDb deployment at production servert

2012-12-11 Thread Sam Solomon
I'm guessing that the problem is there are many ways to deploy Django so it's hard for anyone to give a good one-size-fits-all answer and also hard to run down the complete list of possibilities, and I'm guessing that since this list is only viewed by a small percentage of Django users, that

Re: Project path

2012-12-11 Thread Bill Freeman
On Mon, Dec 10, 2012 at 8:59 PM, Lachlan Musicman wrote: > Hola, > > I've got a split settings set up for my prod/dev sites, and in all the > hints I've seen over the years, I've most appreciated the line at the > top of the settings file that goes like this (there are

Re: Django Celery FIFO ORDER

2012-12-11 Thread psychok7
I got the named queues working with 1 worker, but i am not able to make it FIFO.. Its only fifo for the tasks that were rescheduled, but my latest task runs and i only want that to happen after the other ones get executed.. any more ideas? On Monday, December 10, 2012 4:20:52 PM UTC, psychok7

Re: Templates not found

2012-12-11 Thread Sergiy Khohlov
please paste your urls.py 2012/12/11 Sithembewena Lloyd Dube : > Hi Segiy, > > Thanks for the response. "myproject" is only an alias I used while posting > the code on here, in the project code it is actually "tracks". > > > On Tue, Dec 11, 2012 at 1:31 PM, Sergiy Khohlov

Re: Implementing a monitoring system with django.

2012-12-11 Thread Bill Freeman
On Mon, Dec 10, 2012 at 2:41 PM, Marc Aymerich wrote: > Hi, > I'm considering to implement a simple monitorization system that > basically gathers some data from a set of nodes (<1000 nodes). The > gathered data should be stored in order to let users perform some > queries

Re: Django Celery FIFO ORDER

2012-12-11 Thread Tom Evans
On Tue, Dec 11, 2012 at 12:32 PM, psychok7 wrote: > i need to get my queue back from the worker when i need to add a new task to > the queue (if it isn't yet executed) in order to keep a FIFO order, i read > somewhere that i cant do that and that its not a good idea. > > do you

Re: Django Celery FIFO ORDER

2012-12-11 Thread psychok7
thanks guys you pointed me in the write path now ill try to figure it out by myself. cheers On Monday, December 10, 2012 4:20:52 PM UTC, psychok7 wrote: > > So I have this 2 applications connected with a REST API (json messages). > One written in Django and the other in Php. I have an exact

DjangoCon Europe 2013 call for papers

2012-12-11 Thread Daniele Procida
DjangoCon Europe http://2013.djangocon.eu will be held in Warsaw from the 15th-19th May 2013 (three days of talks followed by two of sprints and workshops). The organisers are very pleased to invite members of the Django community to submit their talk proposals for the event. We're looking

Re: django's management functionsdon't seem to work with py2exe.

2012-12-11 Thread rwman
I encountered this today... the only way i found to overcome this is to provide load_initial_data = False kwarg to the command On Friday, June 24, 2011 2:17:11 PM UTC+4, Gelonida wrote: > > Hi, > > > I'm using django 1.3 > > I tried to create a tiny django app with management functions and to

Re: Django Celery FIFO ORDER

2012-12-11 Thread psychok7
i need to get my queue back from the worker when i need to add a new task to the queue (if it isn't yet executed) in order to keep a FIFO order, i read somewhere that i cant do that and that its not a good idea. do you have a solution? my i am just thinking about this the wrong way, please let

Modelform and Ajax (Select a valid choice..... Error)

2012-12-11 Thread siddharth ghumre
Hi, I am facing problem in handling modelform and ajax together. The situation is:- I am using modelform to get display the form as ul in the template. I have 3 ChoiceFields (country, state,city). On select of a country from the dropdown, the valid states dropdown gets populated and on select of

Re: Templates not found

2012-12-11 Thread Sergiy Khohlov
take a look you have error related to myproject.view.home but importing track.view.home 2012/12/11 Sithembewena Lloyd Dube : > > > On Tue, Dec 11, 2012 at 4:36 AM, Sithembewena Lloyd Dube > wrote: >> >> Hi all, >> >> I have a Django project running

Re: GAE+Django+Threaded comments

2012-12-11 Thread JG
I resolved my issue and decided to post the solution in case someone will need something similar. The thing is that Javier was right - mptt is not working. I also tried to switch to Google Cloud SQL. But at the end I found a simple solution that was all the time in front of me -