winpdb and django

2006-07-13 Thread Scott Chapman
I can run django under winpdb with no problem but I can't figure out how to do a set_trace() which makes the winpdb active. pdb.set_trace() makes pdb active in a text window. I'd love to make it make winpdb active instead. Anyone make this work? I'd also like to know how to get it (winpdb) to

Re: Set up problems ( webfaction )

2006-07-13 Thread Iain Duncan
> Now my only remaining hurdle ( db migration was surprisingly easy! ) is > those admin media files. I notice you have > > alias /media/ /home2/bmg/django/django/contrib/admin/media/ > > and that you have loaded the alias module from > loadmodule alias_module /etc/httpd/modules/mod_alias.so >

Re: Set up problems ( webfaction )

2006-07-13 Thread Iain Duncan
> in your apache config do something similar to > http://svn.zyons.python-hosting.com/trunk/zilbo/conf/zyons.conf.tmpl > > and that will let the apache handle the 'images' area of your site > instead of django. > > On 14/07/2006, at 12:02 PM, Iain Duncan wrote: Thanks Ian, got them working.

About iServicePro

2006-07-13 Thread zw_sea
iServicePro is an innovative approach to offering affordable tools for Java and J2EE developers. in particular, we are a professional team for applying oneself to develop and integrate eclipse plug-in for user applications. Our mission now is to deliver business value and to maximize developers'

Re: Samples for displaying a tree of data

2006-07-13 Thread Malcolm Tredinnick
On Thu, 2006-07-13 at 22:03 -0500, Chris Moffitt wrote: > I'm using the recipe here > (http://code.djangoproject.com/wiki/CookBookCategoryDataModelPostMagic) > for a category model. It's working well for the most part. > > I am getting a little stuck trying to figure out how to turn it into

Samples for displaying a tree of data

2006-07-13 Thread Chris Moffitt
I'm using the recipe here (http://code.djangoproject.com/wiki/CookBookCategoryDataModelPostMagic) for a category model. It's working well for the most part. I am getting a little stuck trying to figure out how to turn it into a vertical navigation structure. I've looked at

Re: Set up problems ( webfaction )

2006-07-13 Thread Ian Holsman
Hi Iain. in your apache config do something similar to http://svn.zyons.python-hosting.com/trunk/zilbo/conf/zyons.conf.tmpl and that will let the apache handle the 'images' area of your site instead of django. On 14/07/2006, at 12:02 PM, Iain Duncan wrote: > > I'm setting up a sight on

Re: [Django Publicity] Cameron Moll's Screen Grab Confab

2006-07-13 Thread James Bennett
On 7/13/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > Sweet! Thanks for sharing that. :) Last I checked, there were five Django-powered projects in there. It's growing. -- "May the forces of evil become confused on the way to your house." -- George Carlin

Set up problems ( webfaction )

2006-07-13 Thread Iain Duncan
I'm setting up a sight on webfaction, and so far things are coming along ok, but I can't figure out how to serve images. I've never used a shared hosting setup that didn't have a directory called 'public' or 'htdocs'. Has anyone on here used them? Any tips on where I need to put media and what I

Re: Problems with __str__ methods in my Models

2006-07-13 Thread Kenneth Gonsalves
On 14-Jul-06, at 12:01 AM, Jason Murray wrote: > TypeError: int argument required put int(value) around all your int values, or refer to int values by % s and put a str() around them -- regards kg http://lawgon.livejournal.com http://avsap.org.in

Re: Please fix my ugly code

2006-07-13 Thread Kenneth Gonsalves
On 13-Jul-06, at 11:06 PM, Jorge Gajon wrote: > But I'm totally wrong there. Your original code should be fine, > because you were chaining the filters. The 'extends' is not necessary > and in fact it is wrong. you scared me a bit there ;-) -- regards kg http://lawgon.livejournal.com

Re: [Django Publicity] Cameron Moll's Screen Grab Confab

2006-07-13 Thread Adrian Holovaty
On 7/13/06, Paulo <[EMAIL PROTECTED]> wrote: > This is slightly OT, and I apologize if this has been posted already, > but I thought it was pretty darn cool... In 60+ entries (already) I've > seen reference to *three* different posts where people were working > with django. Check it out < >

Re: SQL Queries with columns not in the DB

2006-07-13 Thread Malcolm Tredinnick
On Thu, 2006-07-13 at 10:48 -0400, Jason Murray wrote: > I'm reposting this because I was told my last post got lost in an existing > thread. Sorry about that. > > I figured out my syncdb question. It turns out that as long as the model is > defined correctly things go well. And the output from

Re: Custom SQL in Q objects

2006-07-13 Thread Malcolm Tredinnick
On Thu, 2006-07-13 at 21:54 +0800, Russell Keith-Magee wrote: > > > On 7/13/06, Kilian CAVALOTTI <[EMAIL PROTECTED]> wrote: > > Argh, bad news. Actually I asked the question because I'd like > to use custom > SQL in a 'limit_choices_to' option, in the admin

[Django Publicity] Cameron Moll's Screen Grab Confab

2006-07-13 Thread Paulo
This is slightly OT, and I apologize if this has been posted already, but I thought it was pretty darn cool... In 60+ entries (already) I've seen reference to *three* different posts where people were working with django. Check it out < http://www.cameronmoll.com/archives/001045.html >.

Re: Problems with __str__ methods in my Models

2006-07-13 Thread Adrian Holovaty
On 7/13/06, Jason Murray <[EMAIL PROTECTED]> wrote: >File "/home/jmurray/prfa/../prfa/standings/models.py", line 88, in __str__ > return "%s: %i (%i)" % (self.game.datetime.strftime("%Y-%m-%d"), > self.game.away.number, self.away_runs) > TypeError: int argument required This is

Re: django for end users?

2006-07-13 Thread maphew
thanks for the response eas. I have seen and tried to install some of the django blog apps people have shared but without success (so far). I guess the message here is that there is just no way around setting some time aside to sit down and learn how the pieces go together, that it is not for end

Re: Django Blog Code

2006-07-13 Thread Jeremy Dunck
On 7/13/06, keukaman <[EMAIL PROTECTED]> wrote: > {% free_comment_form for blog.entry object.id %} is highlighted as an > error in the template. Based on the settings file here: http://code.djangoproject.com/svn/djangoproject.com/django_website/settings.py They're using the

Problems with __str__ methods in my Models

2006-07-13 Thread Jason Murray
Yes it's me again :) Anyway I've populating my Models with __str_ methods. I've only had on hicough. Here is the model in question: class Result(models.Model): ID = models.IntegerField(primary_key=True) home_runs = models.IntegerField("home team runs", null=True, blank=True)

Re: Non iterable argument

2006-07-13 Thread Jorge Gajon
Hi, You are calling manipulator.do_html2python() before the call to get_validation_errors() The correct thing is to call do_html2python() after you have validated the data and there are no errors. It should look like this: errors = manipulator.get_validation_errors(new_data)

Re: Please fix my ugly code

2006-07-13 Thread Jorge Gajon
Hi again Carlos, I suggested this change in your code: > results = Vozilo.objects.all() > if selected_model_id != 0: > results = results.filter(model_id__exact=selected_model_id) > if selected_gorivo_id != 0: >

Non iterable argument

2006-07-13 Thread Lucas Vogelsang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have an integer in my model: rating= models.IntegerField(null=true, blank=true) And I create my Add form for the class like as described in the manipulator doc with a manipulator[1]. As expected, { form.rating } creates an input field.

Re: MySQLdb problems

2006-07-13 Thread Geert Vanderkelen
Hi David, birrafondaio wrote: .. > raise ImproperlyConfigured, "Error loading MySQLdb module: %s" % e > django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb > module: cannot import name ImmutableSet > --- > > I already searched for people with similar

MySQLdb problems

2006-07-13 Thread birrafondaio
Hi all, I`m just starting to use Django and I`m trying to install it on my Fedora Distro but when i try to sync the db with "python manage.py syncdb" I keep on getting this traceback: - Traceback (most recent call last): File "manage.py", line 11, in ?

Re: Please fix my ugly code

2006-07-13 Thread Jorge Gajon
Hi Carlos, I think your code is going good so far. Of course I'm not a guru but I think your code is fine. Is there something that you don't feel comfortable with? With respect to adding the results of both filters, you need to extend the results of the first results (if any), like this:

Re: Django Blog Code

2006-07-13 Thread keukaman
I get an attibute error and a template error when I try to view the detail of a post: 'NoneType' object has no attribute '_default_manager' is the attribute error. {% free_comment_form for blog.entry object.id %} is highlighted as an error in the template. Can you give me some idea of where to

Re: Please fix my ugly code

2006-07-13 Thread Kenneth Gonsalves
On 13-Jul-06, at 8:02 PM, Carlos Yoder wrote: > There must be a better way of doing this, right? I'm a terrible newbie > both at Python and Django --and I'm not a kid anymore, so no more time > to spare hitting my head on walls :-) i have done more or less the same thing - yet to try it out

Re: Camino and Safari do not open feeds

2006-07-13 Thread Adrian Holovaty
On 7/13/06, bayerj <[EMAIL PROTECTED]> wrote: > If I point Safari to the url, I get a "Don't understand content" error. > Camino just saves the file to the download folder. The structure and > everything of the file ( := the feed) is as intended. But I want Safari > and Camino and all the other

Re: Django hosting

2006-07-13 Thread Carlos Yoder
www.no-ip.com ! On 7/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I have not static ip :( > > > > > -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Django hosting

2006-07-13 Thread Jeremy Dunck
On 7/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, all! > > Can anybody give me hosting for my django project for a week? I assume you've seen this: http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts Failing that, I'm sorry... I don't have a proper dev environment to share.

Re: Django hosting

2006-07-13 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > I have not static ip :( http://www.dyndns.com/services/dns/dyndns/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

SQL Queries with columns not in the DB

2006-07-13 Thread Jason Murray
I'm reposting this because I was told my last post got lost in an existing thread. Sorry about that. I figured out my syncdb question. It turns out that as long as the model is defined correctly things go well. And the output from syncdb will help you with any trivial troubles you might have

Re: Django hosting

2006-07-13 Thread [EMAIL PROTECTED]
I have not static ip :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: Camino and Safari do not open feeds

2006-07-13 Thread David Reynolds
On 13 Jul 2006, at 2:37 pm, bayerj wrote: > > Hi group, > > I implemented a feed as described in > http://www.djangoproject.com/documentation/syndication/. > > The source can be found here: http://paste.e-scribe.com/703/ > > The url configuration is: > > ( > r'^feeds/(?P.*)/$', >

Re: Django hosting

2006-07-13 Thread Jeremy Dunck
On 7/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I can't meet with customer, project must be shared. > Give him your IP. ;-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Please fix my ugly code

2006-07-13 Thread Carlos Yoder
Hello people, my ongoing adventures in firstdjangoappland continue thus: I'm putting together a simple search app for a car project. On entry, user sees a list of 5 random cars. He can use up to two comboboxes to filter the results (car model and fuel type). This is what I've come up with on my

Setting up Django on Archlinux with MySQL backend

2006-07-13 Thread [EMAIL PROTECTED]
Hi all, I was trying to set up Django on Archlinux with MySQL, and I'm running without problems. I have post "Setting up Django on Archlinux with MySQL backend" on my blog http://laitsas.com/lighttpd/49/django_archlinux/ I hope it helps someone :-)

Re: Django hosting

2006-07-13 Thread Waylan Limberg
On 7/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, all! > > Can anybody give me hosting for my django project for a week? > > I need to show my project to my customer tomorrow but i can't take > hosting for it now. > > Thanks. > Perhaps you could take advantage of some hosting

Re: Django hosting

2006-07-13 Thread [EMAIL PROTECTED]
I can't meet with customer, project must be shared. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this

Re: Django hosting

2006-07-13 Thread Jeremy Dunck
On 7/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, all! > > Can anybody give me hosting for my django project for a week? > > I need to show my project to my customer tomorrow but i can't take > hosting for it now. In a pinch, the built-in dev server might save you for a demo:

Re: Alternative to PIL (Python Imaging Library)?

2006-07-13 Thread Jeremy Dunck
On 7/13/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: > > > http://packages.debian.org/unstable/python/python-imaging > > ? > > Don't think so. I don't have root access to my box in Bluehost. Can > anythone think of an alternative, short of telling support to install > it themselves? I may be

Django hosting

2006-07-13 Thread [EMAIL PROTECTED]
Hi, all! Can anybody give me hosting for my django project for a week? I need to show my project to my customer tomorrow but i can't take hosting for it now. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Camino and Safari do not open feeds

2006-07-13 Thread bayerj
Hi group, I implemented a feed as described in http://www.djangoproject.com/documentation/syndication/. The source can be found here: http://paste.e-scribe.com/703/ The url configuration is: ( r'^feeds/(?P.*)/$', 'django.contrib.syndication.views.feed', {

Image auto resizing

2006-07-13 Thread Enrico
Hi, I'm trying to resize an image automatically after the upload. Maybe Django should have this by default, but until there I'll try myself... I got it working sucessfully, but I don't know if this is the best way, the image is processed every time I save the object, it should be done only on

apache, fastcgi, auto-reload?

2006-07-13 Thread Gábor Farkas
hi, (yes, i know that the devel-server does auto-reload) i'm using apache with fastcgi with flup with django. is there a way to somehow have my source-code changes cause a reload? (so that i do not have to restart the fastcgi server (or apache) after every source-code change?) thanks,

Re: admin ordering question

2006-07-13 Thread Carlos Yoder
I solved it! The problem was because I was trying to sort by a field that was not listed on Admin.list_display Updated code: class Model(models.Model): opis= models.CharField(maxlength=50) znamka = models.ForeignKey(Znamka) def __str__(self):

Re: admin ordering question

2006-07-13 Thread Carlos Yoder
>> class Item(models.Model): > > name = models.Charfield(maxlength=100) > > user = models.ForeignKey(User) > > > > def get_user_name(self): > > return self.user.name > > > > class Admin: > > list_display = ('name', 'get_user_name') >

Re: Referring to media files

2006-07-13 Thread Steven Armstrong
> > One more thing, if you don't mind. The documentation, and your > context_processors.py show in the myapp directory. Can that file be in > "mysite", rather than "myapp" so I don't have to repeat it for > application I make? > Yep that'll work. You can put the context_processors.py file

Re: Menus parent/child foreign key dropdown too big

2006-07-13 Thread Aidas Bendoraitis
What about autocomplete functionality there? Try to integrate this one into your system: http://code.djangoproject.com/wiki/AJAXWidgetComboBox Regards, Aidas Bendoraitis [aka Archatas] On 7/12/06, Mike <[EMAIL PROTECTED]> wrote: > > So here's the deal. I have Menus and MenuItems: > > class

Re: Alternative to PIL (Python Imaging Library)?

2006-07-13 Thread [EMAIL PROTECTED]
Sean Perry wrote: > > Don't think so. I don't have root access to my box in Bluehost. Can > > anythone think of an alternative, short of telling support to install > > it themselves? > > Technically all PIL is needed for is determining height, width and what > not of the image. If you do not

Re: Alternative to PIL (Python Imaging Library)?

2006-07-13 Thread Carlos Yoder
Aidas, thanks for the great tip! I'll get cracking. Best regards, On 7/13/06, Aidas Bendoraitis <[EMAIL PROTECTED]> wrote: > > Carlos, > > If you need to get started quickly, you can use FileField instead of > ImageField, so the PIL won't be necessary. The requirements of the > uploaded image

Re: Custom SQL in Q objects

2006-07-13 Thread Kilian CAVALOTTI
On Thursday 13 July 2006 01:33, Russell Keith-Magee wrote: > On 7/12/06, Kilian CAVALOTTI <[EMAIL PROTECTED]> wrote: > No. Q objects do not support custom SQL - they are just wrappers that can > be used to wrap groups of keyword search parameters (e.g., > article__name__contains='foo') so that

Re: Alternative to PIL (Python Imaging Library)?

2006-07-13 Thread Aidas Bendoraitis
Carlos, If you need to get started quickly, you can use FileField instead of ImageField, so the PIL won't be necessary. The requirements of the uploaded image may be written in help_text. Maybe some validation of the image width and height can be done using Javascript. I'm not sure about that,

How to use lighttpd error-handler-404 handler to serve django?

2006-07-13 Thread Wei Litao
I already have lots of static files in my lighttpd web server, so I'd like it to only talk to the django server if it can't find what it's looking for. So I'd like use error-handler-404 directive to do that thing. In django official document, it use url-write method to talk to django server. Is

Re: conflict between edit_inline and ManyToManyField

2006-07-13 Thread Arnaud Delobelle
arnodel wrote: > Hi everyone, > > I am trying to get to grips with django and so far I find it wonderful! > But I am stuck on the following problem, which I have tried to make a > test case of below (see models.py). The problem is that when I try to > add a new parent with some children, then I

Re: Django and MySQLdb on Bluehost

2006-07-13 Thread Carlos Yoder
Hey Steve, seems like I'm not the only one struggling with Django+Bluehost. If you manage to get ImageFields running on your models, let me know... I can't make PIL work. Regards, Carlos On 7/13/06, Steve <[EMAIL PROTECTED]> wrote: > > Nevermind, I figured it out. Gosh I get smarter just by

Re: Alternative to PIL (Python Imaging Library)?

2006-07-13 Thread Carlos Yoder
>> Don't think so. I don't have root access to my box in Bluehost. Can >> anythone think of an alternative, short of telling support to install >> it themselves? > Technically all PIL is needed for is determining height, width and what > not of the image. If you do not need it or can ask the

Re: Alternative to PIL (Python Imaging Library)?

2006-07-13 Thread Sean Perry
Carlos Yoder wrote: >>> Is there a way around PIL? Can Django use another kind of library? If >>> not, has anyone got around this? Maybe by getting a precompiled Linux >>> PIL? > >> http://packages.debian.org/unstable/python/python-imaging >> ? > > Don't think so. I don't have root access to my

Re: Alternative to PIL (Python Imaging Library)?

2006-07-13 Thread Kenneth Gonsalves
On 13-Jul-06, at 12:13 PM, Carlos Yoder wrote: > Don't think so. I don't have root access to my box in Bluehost. Can > anythone think of an alternative, short of telling support to install > it themselves? tell them - PIL is such an integral part of all python programs that python hosting is

Re: Alternative to PIL (Python Imaging Library)?

2006-07-13 Thread Carlos Yoder
>> Is there a way around PIL? Can Django use another kind of library? If >> not, has anyone got around this? Maybe by getting a precompiled Linux >> PIL? > http://packages.debian.org/unstable/python/python-imaging > ? Don't think so. I don't have root access to my box in Bluehost. Can anythone