Re: Audio Streaming Using Django

2012-04-13 Thread sebastien piquemal
Django won't be of much use for the audio streaming part in itself. I've done it a while ago using Icecast2. Very simple to setup. On Friday, April 13, 2012 7:21:49 AM UTC+3, atul khairnar wrote: > > Hi, > I am developing Internet Radio App using Django. But i don't know how to > stream the au

Re: Port Django to Javascript

2012-04-05 Thread sebastien piquemal
I guess the people that don't get the point have probably never made a heavy Javascript application ... Ever used Backbone.js ? client-side - one page - websites are much nicer to use than any website with a page load after every click. So I totally understand why you would do such a project, a

Re: Creating a hospital erp (hospital management) in Django

2012-02-14 Thread sebastien piquemal
+1 to @Patricio Valarezo's comment : If you want to build a system for hospitals, you've got to know how an hospital works first. So, make interviews, draw mockups, more interviews, code a prototype, more interviews, and so on ... and only then you'll know what you need to do. On Feb 14, 4:07 am,

Re: Since Django has its own database schema, can we still use sqlalchemy instead?

2012-01-08 Thread sebastien piquemal
Actually the guy in that blog post forgets to mention quite a lot of stuff. By giving-up Django ORM, not only you loose all the management commands based on Django-orm (loaddata, dumpdata, syncdb, ...), but also you loose admin, you loose auth, you loose the generic views, you loose the model forms

Best approach to code an inventory system

2011-12-12 Thread sebastien piquemal
HI ! We currently have an inventory system for our employees. It contains laptops, phones, but also ergonomic chairs, fridges or software licenses ... So very different stuff that admins can create/read/ update/delete. After doing a version completely based on admin interface, I gave up cause it

Re: New design for class-based views

2011-12-05 Thread sebastien piquemal
Hi Tobia ! Could you post a link to a place where class-based views are being criticized ? And also in what sense are they convoluted ? Personally, I have started using the class-based views heavily as soon as they were released, and I think they are great. Very flexible. However, I'll tell you w

Re: Constructing / rendering a complex

2011-08-03 Thread sebastien piquemal
Hi ! I have written this small library a while ago : http://code.google.com/p/django-cube/ . It is not exactly what you are looking for, but one of the aim is indeed easy generation of html tables. I don't know if it can be of any help to you, but you could check how the template tag is written f

Re: Django Knowledge Strorehouse

2011-07-07 Thread sebastien piquemal
Hi all ! My humble opinion, ... where there is the most room for improvements in existing services is django-snippets. It is very useful, the idea is good, but it is not so nice to use at the moment. Instead of using own custom code to power the site, wouldn't it be good to use something like OSQA

Re: Json serialization for use in JS

2011-05-20 Thread sebastien piquemal
Hi ! I have written a small library that (among other transformations) can serialize django objects to dict (then you can just use 'json' to make your dict to a json string) : Docs on readthedocs : http://readthedocs.org/docs/any2any/en/latest/doc_pages/djangocast.html Pypi page : http://pypi.py

Re: ANN : any2any, serializers & deserializers for Django

2011-05-07 Thread sebastien piquemal
Apparently there was a bug in my setup file on the release on pypi. It is now fixed ! On May 6, 10:16 am, sebastien piquemal wrote: > Hi all ! > > I am pleased to announce that I have finally released a piece of code > I begun to write a while ago, ... > It is a python library

ANN : any2any, serializers & deserializers for Django

2011-05-06 Thread sebastien piquemal
Hi all ! I am pleased to announce that I have finally released a piece of code I begun to write a while ago, ... It is a python library called any2any, which helps to write casts operations (from one python instance, to another of a different type). It all started with Django serializations and d

Bug with ModelForm ?

2011-04-20 Thread sebastien piquemal
Hi ! I have posted this question on SO : http://stackoverflow.com/questions/5718838/django-adding-new-form-fields-dynamically-in-admin As you can see I am not the only one to have this problem. I was wondering, could it be reported as a bug ? Or enhancement proposal ? -- You received this messa

Re: Creating REST APIs in Django...advice

2011-04-12 Thread sebastien piquemal
Well ... http://django-rest-framework.org allows you to override the method by adding a post parameter. So in your form, you just add a hidden input or and django-rest-framework will pipe your POST request into the "put" handler or "delete" handler. Of course name="_method" can be configured

Re: Implementing a ldap db backend

2011-03-24 Thread sebastien piquemal
backend / ldap > orm for django. > > Felipe 'chronos' Prenholato. > Linux User nº 405489 > Home page:http://chronosbox.org/blog > Twitter:http://twitter.com/chronossc > > 2011/3/21 David De La Harpe Golden > > On 03/11/10 07:48, sebastien piquemal wrote:

Re: ANN: Django 1.3 release candidate available

2011-03-03 Thread sebastien piquemal
Oh ... actually, I just deleted the django folder from `dist-packages` and ran again `setup.py`, and now it works. On Mar 4, 9:18 am, sebastien piquemal wrote: > Great ! > > > > However, I don't know if it is me, but I just installed it, tried to > start my develo

Re: ANN: Django 1.3 release candidate available

2011-03-03 Thread sebastien piquemal
Great ! However, I don't know if it is me, but I just installed it, tried to start my development server, and I got : File "manage.py", line 14, in execute_manager(settings) File "/usr/local/lib/python2.6/dist-packages/django/core/management/ __init__.py", line 438, in execute_mana

Re: Announcing djeneralize

2011-01-25 Thread sebastien piquemal
Great packages ... I was looking for something exactly similar for a project I am working on. I will surely use one of those ! On Jan 25, 4:49 pm, Euan Goddard wrote: > Hi Tom, > > I hadn't seen that. django_polymorphic looks pretty fully featured and > from a quick look, I'd say it accomplishe

Re: ANN: django-widget-tweaks

2011-01-12 Thread sebastien piquemal
Sounds cool ! On Jan 12, 9:48 pm, Mikhail Korobov wrote: > Hi guys, > > Designers often want to add some css classes and html attributes to > django form fields. But now they have to either patch the python code > or copy-paste full html widget output and then customize it. In order > to make the

Implementing a ldap db backend

2010-11-03 Thread sebastien piquemal
Hi ! I am currently on a big project, which should result in a ldap management service (modifying users, groups, and any other ldap object). Until now, I have been using django-ldapdb, in order to use ldap as a db backend. It was good for a very basic read-only prototype of the service. However,

Re: How to aggregate values by month

2010-10-29 Thread sebastien piquemal
Hi ! You could also give django-cube a try : http://code.google.com/p/django-cube/ Unlike Mikhail's app, the aggregates are not efficient (because no optimization is made, I am working on this), but this is more than enough if you have a reasonable amount of data (less than millions of rows !!!).

Re: Staticstic app, ask for idea.

2010-09-12 Thread sebastien piquemal
; in stdout, and I'm going to debug it later. > If you aware of anything I'm doing wrong, please let me know. Or is > there any sample I can quickly run just to verify there is nothing > wrong with my enviroment. > Thanks. > > On Sat, Sep 11, 2010 at 7:40 AM, sebastien pi

Re: Staticstic app, ask for idea.

2010-09-11 Thread sebastien piquemal
don't use the Cube for any other statistic than that, it is too much > >> overhead. > > >> On Aug 31, 5:30 am, Lucian Romi wrote: > >>> Thanks Sebastien. > > >>> Can I integrate Cube with filter and search features from the admin app? > >>> A

Re: Aggregate on part of a date field?

2010-09-08 Thread sebastien piquemal
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 cube), so basically you can group_by in any way you want ("any way you want" = "on all the dimensions that you want", so you have to decl

Re: Staticstic app, ask for idea.

2010-08-31 Thread sebastien piquemal
me on it. Thanks. > > On Mon, Aug 30, 2010 at 4:16 PM, sebastien piquemal wrote: > > I created an app to easily generate the stats part : > >http://code.google.com/p/django-cube/; however you still have to > > create the chart, for example with matplotlib : > >http:/

Re: Staticstic app, ask for idea.

2010-08-30 Thread sebastien piquemal
I created an app to easily generate the stats part : http://code.google.com/p/django-cube/ ; however you still have to create the chart, for example with matplotlib : http://www.scipy.org/Cookbook/Matplotlib/Django. To create your stats with django-cube, you can use this code : from cube.mode

Introducing django-cube

2010-07-25 Thread sebastien piquemal
Hi everybody, I just want to "advertise" a small Django app that I have begun a few months ago, and little by little came to maturity : http://code.google.com/p/django-cube/ " django-cube realizes multi-dimensional analysis on a queryset. It tries to make easy : 1. Calculating complex aggreg

Re: annotate with query set for distinct values

2010-06-10 Thread sebastien piquemal
I think you didn't really look well anotate, because it looks like it is what you qre looking for ! Or is there something I misunderstood ? http://docs.djangoproject.com/en/dev/ref/models/querysets/#annotate-args-kwargs "Annotates each object in the QuerySet with the provided list of aggregate va