Re: image bundle for django

2007-06-12 Thread aaloy
2007/6/12, Jeremy Dunck <[EMAIL PROTECTED]>: > > On 6/11/07, Amit Upadhyay <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I just finished a image bundle implementation for django, its a technique > > used in > > I really like this idea, but my needs are different. > > I don't need resizing of images i

Re: The going rate for Django-based web developers ...

2007-06-08 Thread aaloy
2007/6/8, Kenneth Gonsalves <[EMAIL PROTECTED]>: > > > On 08-Jun-07, at 11:57 PM, ZebZiggle wrote: > > > Strong python, javascript, CSS, postgres, jquery (or alike), debugging > > and lots of general experience in software development. And when I say > > CSS, I don't mean graphic design skills, bu

Re: SQL Debug middleware

2007-04-22 Thread aaloy
2007/4/22, Honza Král <[EMAIL PROTECTED]>: > Hi, > try http://www.djangosnippets.org/snippets/93/ with the standard debug > context preprocessor shipped with django (see the snippet for how-to) > > it seems cleaner to add this to your base template than to hackishly > replace the tag. The use the

Re: SQL Debug middleware

2007-04-22 Thread aaloy
2007/4/21, Jesse Lovelace <[EMAIL PROTECTED]>: > > Hey all, > > I made this the other day to help me track all the sql statements my > pages were doing. I wanted something unobtrusive (i.e. middleware) > and simple. Hope you like: > Hi! Thanks you for sharing it with us. I have addapted the midd

Re: Spanish tutorial

2007-04-19 Thread aaloy
2007/4/19, David Asorey Álvarez <[EMAIL PROTECTED]>: > > Hi all. > This is my first post in this group. > My name is David Asorey. I'm a "multi-language" developer, but my > preferred language is Python, and I'm starting to play with Django > (nice name!). > > I've written a tutorial in Spanish, m

Re: Super long response times/load times: Looking for some guidance on alleviating the issue

2007-04-15 Thread aaloy
> > It's in general. Although.. I can't really tell to be dead honest. > Last night I was crawling at 5-10 secs for response times. > > On Apr 15, 1:55 pm, "Julio Nobrega" <[EMAIL PROTECTED]> wrote: > > On 4/15/07, Roboto <[EMAIL PROTECTED]> wrote: > > > > > You'll notice a SOLID 5-10 sec "wait"

Re: django-Postgre bug?

2007-04-15 Thread aaloy
2007/4/15, Grupo Django <[EMAIL PROTECTED]>: > > This is the postgrelog: > 2007-04-15 11:23:06 CEST ERROR: no se puede truncar una tabla > referida en una llave foránea > 2007-04-15 11:23:06 CEST DETALLE: La tabla «galeria_galeria» hace > referencia a «galeria_album». > 2007-04-15 11:23:06 CEST

Re: Which ajax framework django will support in the upcoming 1.0, prototype/dojo/jquery?

2007-04-10 Thread aaloy
2007/4/10, James Bennett <[EMAIL PROTECTED]>: > > > Again, it's not terribly hard to write views which return JSON or XML; > integration with form widgets, etc. requires binding to a specific JS > library or rolling our own, and that's not going to happen. > With Django is terribly easy to do tha

Re: choosing ajax framework (for my projects) :)

2007-03-09 Thread aaloy
2007/3/9, ashwoods <[EMAIL PROTECTED]>: > > with so many choices, you dont really know where to start :( > > things like i would like to do. > > 1) update the contents of a div element with the content fading out > and in (news on the first page) > 2) select form elements that populate depending w

Re: Job Ad: Full-time Python software developer, Wimbledon, London, England

2007-02-27 Thread aaloy
2007/2/27, John J Lee > > `ReportLab `_ (Wimbledon, London, England) > > > **Job Description**: ReportLab develop enterprise reporting and > document generation solutions using cutting-edge Python technology, > and have a growing business with an excellent blue chip custo

Re: Django snippets

2007-02-26 Thread aaloy
Nice place, thank you! On think I have missed from the actual wiki is to be able to filter the code snipets by version. I like very much the firefox plugin idea, wich marks each plugin with the compatible versions. Best regards, -- Antoni Aloy López Binissalem - Mallorca http://www.trespams.com

Re: Newforms: Setting field width?

2007-02-21 Thread aaloy
You can specify the with using css styles. As on rendering you know the form field id, you can create a css style for that id. 2007/2/21, ScottB <[EMAIL PROTECTED]>: > > > All my form elements on a newforms form are rather tiny. Is there any > > way to specify the width of these fields? -- Ant

Re: full content feeds

2007-02-03 Thread aaloy
2007/2/3, James Tauber <[EMAIL PROTECTED]>: > > However, I'd like my feed to be full content. Given what I have > below, what's the most straightforward way to make my feed full content? The full content would depend on your template. That is, you can make your template to present full content,

Re: Forms inheritance

2007-02-02 Thread aaloy
2007/2/2, Honza Král <[EMAIL PROTECTED]>: > On 2/2/07, aaloy <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > I'm trying use form inheritance to render the form, but it seems > > Django just renders the child fields and not the parent ones. Is t

Forms inheritance

2007-02-01 Thread aaloy
Hello, I'm trying use form inheritance to render the form, but it seems Django just renders the child fields and not the parent ones. Is this a feature or a bug? class Pare(forms.Form): ...: referencia = forms.CharField(max_length=12) class Fill(Pare): ...: test = forms.IntegerFi

Re: The Holy Grail of Web Development

2006-09-24 Thread aaloy
2006/9/24, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Tom Smith wrote: > > > Has anyone tried running Django from within an IDE with the ability > > to set breakpoints? Does anyone have ideas/experience about this? > > I debugged Django with this and was quite happy: > http://www.digitalpeers.com/

edit_inline problem

2006-09-13 Thread aaloy
Hello, I have an strange issue when trying to edit inline my model on the Django admin. Some of the models works properly and others not. It doesn't give any error but the data is not saved. For example: class Provincia(models.Model): nombre = models.CharField(maxlength=50, unique = Tru

ImageField not working properly in admin?

2006-09-13 Thread aaloy
I'm trying to modify an ImageField in Admin. That is, I have been able to upload the Image and now I want to change it. The Admin gives me an error saying that I must supply a valid filename. As I have supplied a good one (even the same I upload sucessfully) I can't understand why it happens, unl

Re: Initial SQL data using Django ORM - A HowTo

2006-09-12 Thread aaloy
2006/9/12, limodou <[EMAIL PROTECTED]>: > > On 9/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > I've added a small tutorial: > > http://code.djangoproject.com/wiki/InitialSQLDataDiangoORMWay > > > > It describes how to use Django ORM to add initial SQL data to freshly > > installed app

Re: Initial SQL data using Django ORM - A HowTo

2006-09-11 Thread aaloy
2006/9/11, James Bennett <[EMAIL PROTECTED]>: > > On 9/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > It describes how to use Django ORM to add initial SQL data to freshly > > installed apps without files with RAW SQL > > There's actually a much better way to do this, which won't require a

Re: verbose_name option not working...

2006-08-27 Thread aaloy
2006/8/27, mediumgrade <[EMAIL PROTECTED]>: > > In my models, I have added the options "verbose_name" and > "verbose_name_plural" to make my models easier to understand in the > admin interface. However, even though I have added these options in my > models, the admin interface still displays the

Re: Hola

2006-07-02 Thread aaloy
No. Tienes que venir aprendido :) http://www.python.org Saludos, 2006/7/2, Joan <[EMAIL PROTECTED]>: > > Quisiera saber si en este grupo podemos aprender el lenguaje de > programación para crear software u otros programas. Saludos > >Joan Translation: He wants to know if in

Re: Importing several thousand records into a database

2006-06-13 Thread aaloy
Python itself could do it. Of course ;) Just be sure not to create a transaction for every record, as it would be terribly slow. One transaction every 5.000 record works for me on an import of ~150.000 records. I didi it with the DB Api. To be honest I haven't tested directly with Django. Best

Save method called twice on override?

2006-06-05 Thread aaloy
, I can see how the save method is called twice. Here is the log: Pre Save Url : FileName : Post save Url : FileName : Pre Save Url : http://localhost/~aaloy/django/fotos/IMG_0022.JPG FileName : /home/aaloy/public_html/django/fotos/IMG_0022.JPG Post save Url : http://localhost/~aaloy/django/fotos/IMG_

Re: Vim users - syntax highlighting for Django templates

2006-04-17 Thread aaloy
2006/4/17, Jeroen Ruigrok van der Werven : > For those of you who use vim, please see > > http://www.vim.org/scripts/script.php?script_id=1487 > > for some lovely syntax highlighting files by Dave Hodder. > > Thanks Dave, you were faster than me. :D > Thank you for the lina and thanks a lot Dave

Re: Fate of 0.91 projects

2006-04-14 Thread aaloy
2006/4/14, James Bennett <[EMAIL PROTECTED]>: > > On 4/14/06, Bill de hÓra <[EMAIL PROTECTED]> wrote: > > Simulataneous releases will confuse people and enhance any perception > > that Django is unstable not ready for production work. Parallel branch > > management has really hurt the Zope communi

Re: Eclipse based Django IDE???

2006-03-16 Thread aaloy
To start the Django server inside Eclipse and see the messages: a) Create a external too. Call it, Run Django Server for example. b) The main location should be something like /usr/local/bin/django-admin c) Set the working Directori to ${project_loc} d) Set arguments as runserver --settings=${

Re: Run time lookups

2006-03-01 Thread aaloy
2006/3/1, Jan Rademaker <[EMAIL PROTECTED]>: > > aaloy wrote: > > I'm trying to make a dynamic lookup filter depending on the parameters > > that the user inputs on a web search. > > > > That is, I have three optional search fields and I wan't to be a

Run time lookups

2006-03-01 Thread aaloy
Hello, I'm trying to make a dynamic lookup filter depending on the parameters that the user inputs on a web search. That is, I have three optional search fields and I wan't to be able to make a lookup search on my database withot having to code all the search options. Something like: search={}

Re: CLI application integration

2006-01-31 Thread aaloy
2006/1/31, Kenneth Kalmer <[EMAIL PROTECTED]>: > > Guys > > I've been doing some extensive reading on frameworks recently, and > dango definitely looks like the solution to a huge project that I'm > undertaking at the moment. It provides several features that key > including multiple applications

Re: Accessin actual object inside a for loop

2006-01-08 Thread aaloy
2006/1/8, Adrian Holovaty : > > On 1/8/06, aaloy <[EMAIL PROTECTED]> wrote: > > I'm trying to set the defaul value of a select box based on a > > parameter, I'm trying something like > > > > {% for item in items_list %} &g

Accessin actual object inside a for loop

2006-01-08 Thread aaloy
Hello! I'm trying to set the defaul value of a select box based on a parameter, I'm trying something like {% for item in items_list %} {{item.name}} {% endfor %} But it complains about non existent item.id. As far as I can see in the for documentation there is no way to get the actual value

Re: Confused about where to put css and images

2006-01-07 Thread aaloy
Hello! Thank you for your answer! 2006/1/7, PythonistL : > > For my development server I only have one more line in urls.py > > (r'^Media/(?P.*)', 'django.views.static.serve', {'document_root' > : 'C:/Django/TEMPLATES/Static/', 'show_indexes':True}), > This is quite the same that I have actually

Confused about where to put css and images

2006-01-07 Thread aaloy
Hello! I'm a bit confused about where to put css and images to the application in order to use them in Django. I have read http://www.djangoproject.com/documentation/static_files/ and I'm trying to use the "if DEBUG trick" but it does not work for me. What I like to do is to use some css for the

Numbre formatting in the admin application

2006-01-05 Thread aaloy
Hello! Is there any way to format a number in the admin aplication? For example: Integers: Right align Float: Right aling Currency: Right aling+ format acording to locale. That is 1234.23 -> 1.234.23 € Best regards, -- Antoni Aloy López Binissalem - Mallorca Soci de Bulma

Re: Problem adding new classes to a model

2005-12-30 Thread aaloy
2005/12/30, Adrian Holovaty : > > On 12/30/05, aaloy wrote: > > The new table appears on the admin interface, and I have introduced > > data manually on it I can see it, but when I try to modify o add a new > > record I get the exception: > > > > Exception T

Problem adding new classes to a model

2005-12-30 Thread aaloy
Hello! I have a problem when I try to add new classes to a model. The steps I follow are: * I create the new classes * I use the administrative tool to generate the sql * I create the new tables from the generated sql. * I refresh the Django web admin The new table appears on the admin interfac

Tree Structure on the manager

2005-12-29 Thread aaloy
Hello all! I have been testing Django for a while and I'm trying to create my first application. This application requieres a self relation model as the one we have at http://www.djangoproject.com/documentation/models/m2o_recursive/ . It would be nice to have some kind of tree struture to edit s