Re: Django over modpython

2007-02-16 Thread akonsu
hello, you might consider a VPS hosting if you know how to administer an OS yourself. this would allow you to set up anything you want on your server. konstantin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

error pages ?

2007-02-16 Thread akonsu
hello, the tutorial on djangoproject.com explains how to set up views generating error pages for responses such as 404 or 500. is there a way to use mod_python functionality and make apache serve its own error pages? in case when it is running under mod_python of course. or is it against django d

rendering dynamic fields in newforms

2007-02-16 Thread Rubic
Hi, I'm the 985th person to attempt dynamic fields in newforms. ;-) Actually I've been able to do lots of dynamic stuff in newforms. It's rendering the forms in templates that sometimes confuses me. For example, given the following code to build a form based on an arbitrary number of medicatio

Only Validator

2007-02-16 Thread limodou
http://code.djangoproject.com/wiki/OnlyValidator I worte it just because I only need pure validator functionality, and I also want it support validator_list. So it'll not replace the newforms, just for my personal usage, if you find it has some useful, I'll be very happy for that. And current ve

Re: unordered_list in templates

2007-02-16 Thread Malcolm Tredinnick
On Fri, 2007-02-16 at 15:16 -0800, [EMAIL PROTECTED] wrote: > Hello, I have a menu in a database, and I want to display it in an > unordered list, but I have to apply a class for every element like > Entry 1 > I think that this can't be done with the filter unordered_list. > > Is there any way t

Re: ValueError: Empty module name

2007-02-16 Thread Malcolm Tredinnick
On Fri, 2007-02-16 at 12:27 -0800, cory wrote: > Hello all, > > I keep getting a very strange error in my latest Django project. It > repeatedly sends back a ValueError saying 'Empty module name', but in > the debug output all of the settings from the settings files are > displayed correctly and

Re: Extending feeds with Apple iTunes information?

2007-02-16 Thread Malcolm Tredinnick
On Fri, 2007-02-16 at 16:24 +, Oliver Charles wrote: > I'm using the feed system to do a podcast, and it's up on the iTunes > Store as well. But I'd like to make it more user friendly, taking > advantage of the images that are supported, and extended meta data. Is > there anyway to add my own

unordered_list in templates

2007-02-16 Thread aribao
Hello, I have a menu in a database, and I want to display it in an unordered list, but I have to apply a class for every element like Entry 1 I think that this can't be done with the filter unordered_list. Is there any way to use a kind of recursion to generate a menu like this: - Entry 0 - Entr

ValueError: Empty module name

2007-02-16 Thread cory
Hello all, I keep getting a very strange error in my latest Django project. It repeatedly sends back a ValueError saying 'Empty module name', but in the debug output all of the settings from the settings files are displayed correctly and the settings file that's listed is the correct one. The on

Re: Django over modpython

2007-02-16 Thread Nathan R. Yergler
It might work, but you probably won't be happy with the performance. Using CGI means that *every request* needs to load the Python interpreter and Django libraries into memory. FastCGI and mod_python keep them in memory, which is a huge performance gain. I know that Webfaction supports both mod_

Django over modpython

2007-02-16 Thread aribao
Maybe this is a stupid question. I have been looking for a hosting which supports modpython to run django. One of them (bluehost) told me that they support it through CGI. I suppose that this is all right and django would run without any problem isn't it? I just want t be sure before buying. Than

Re: post_url in admin add_stage

2007-02-16 Thread David S.
The delete_stage view does not take a post_url argument. Code follows, but, really, it seems there must be a better way. Thanks. #from url.py: urlpatterns = patterns('', (r'^admin/(?Pcourse)/(? Pcoursetagassignment)/(?P\d*)/delete/(? P.*)$' , 'admin.views.delete_stage_with_post_url'), ) #f

Re: Change class name in Admin interface

2007-02-16 Thread Nebojša Đorđević
* Matias wrote, On 06.02.2007 05:36: > Hi, > > I've a class named "Category", but this application must be in > Spanish, so I need it to be displayed on the Admin interface as > "Categoria". ¿how can I accomplish that? > > Here is the model definition: > > class Category(models.Model): > name

post_url in admin add_stage

2007-02-16 Thread David S.
I want to change where a user redirects after an add. For instance, here I want to add a tag to a course and return to that course record. The URL in this example is horrendous but the code works. Is there a better way? #from url.py: urlpatterns = patterns('', (r'^admin/(?Pcourse)/(? Pcour

Re: catalog of django apps?

2007-02-16 Thread James Tauber
No reason at all. In fact, I'd encourage the apps to be listed on Cheeseshop. But I think the real value would be the conventions for making sure the apps "jam well together". James On 16/02/2007, at 12:14 AM, Nathan R. Yergler wrote: > > Is there a reason *not* to use the Cheeseshop, and

Re: catalog of django apps?

2007-02-16 Thread James Tauber
On 16/02/2007, at 1:46 AM, James Bennett wrote: > > On 2/15/07, James Tauber <[EMAIL PROTECTED]> wrote: >> That would be great. In fact, it would be nice if many of the >> component apps of the site were themselves available on the site for >> building other software component catalog sites. > >

Re: 2 layer join

2007-02-16 Thread James Bennett
On 2/16/07, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> wrote: > How do I select all the Cities from a State? I'm from sqlobject world > and I don't realize how can I do this with django. kansas_cities = City.objects.filter(region__state__name__exact='Kansas') -- "Bureaucrat Conrad, you are tech

newforms field attributes

2007-02-16 Thread Rubic
I find myself occassionally tripping over how field attributes are handled in newforms because it follows a Python convention of declaration, but doesn't assign them directly to the form instance. >>> from django import newforms as forms >>> class XForm(forms.Form): ... xattr = '42' ... y

Re: Comparison between Dreamhost and ASmallOrange

2007-02-16 Thread sansmojo
ASO MySQL is on localhost, but I'm not sure that there isn't some networking technogeekery going on there as it's very similar to another setup I used to use where it only appeared to be local. Anyhow, at work (a small university), we've got Django running with mod_python and a separate MySQL serv

Re: Comparison between Dreamhost and ASmallOrange

2007-02-16 Thread sansmojo
I certainly don't know a lot about fcgi vs flup, but on my site, every single request for a page results in at least a several second delay before it attempts to load, even if I've been browsing around the site or the same page for a while. Thanks for the info about the non- profit discount. I d

Re: sorting in model

2007-02-16 Thread Mae
Oh, I should mention that I do know about the extra clause, but I'd really like to use simple, more database-ignorant queries like all().order_by() for elegance and portability. I just want them to work on loaded class instances, not raw database fields. Is this possible? On Feb 16, 11:48 am, "

Re: Comparison between Dreamhost and ASmallOrange

2007-02-16 Thread sansmojo
It's a medium shared plan. On Feb 15, 2:41 pm, "Bob T." <[EMAIL PROTECTED]> wrote: > Thanks for posting, Branton. Just curious, ASO service plan are you > using? > > On Feb 15, 11:01 am, "sansmojo" <[EMAIL PROTECTED]> wrote: > > > I thought this might be useful for those considering Django hostin

Re: verdjn PhotoField problem...

2007-02-16 Thread Anthony Batchelor
Oops, I meant to say form here... > > The interesting part from the model is > > from django import forms > from hc.fields.photofield import PhotoField > from django.core import validators > from django.contrib.auth.models import User > from hc.users.models import UserProfile > > class EditAccoun

sorting in model

2007-02-16 Thread Mae
Hi All, I have a class Film that owns a Product: class Product(models.Model): name = models.CharField(maxlength=100) class Film(models.Model): product = models.ForeignKey(Product, unique=True) Film has a property "title" that corresponds to Product's "name": def _getTitle(self):

2 layer join

2007-02-16 Thread Michel Thadeu Sabchuk
Hi guys! I want to do a 2 layer join, look at the tables: class State(models.Model): name = models.CharField(maxlength=200) class Region(models.Model): state = models.ForeignKey(State) name = models.CharField(maxlength=200) class City(models.Model): region = models.ForeignKey(

verdjn PhotoField problem...

2007-02-16 Thread Anthony Batchelor
Hi, I'm using the verdjn PhotoField and in most of the app it works fine. But, when I try to use it for an 'old' form, I get the following error Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/ core/handlers/base.py" in get_response 74.

Extending feeds with Apple iTunes information?

2007-02-16 Thread Oliver Charles
I'm using the feed system to do a podcast, and it's up on the iTunes Store as well. But I'd like to make it more user friendly, taking advantage of the images that are supported, and extended meta data. Is there anyway to add my own namespaces into the feeds, or am I going to have to get my hands

Restrict form selections to subset of all data?

2007-02-16 Thread jws
I want to create a basic data entry form where the selection options are constrained to some subset of all the data. For example, a salesman may only want to be shown the prospects in his sales territory, not all prospects. Assuming I can get the limiting values by url parameters or post variables

Re: Using django for CMS stuff

2007-02-16 Thread yary
On Feb 14, 12:12 pm, "walterbyrd" <[EMAIL PROTECTED]> wrote: > CMSes like joomla and drupal have a rich assortment of plugins/modules/ > extensions for stuff like: blogs, forums, galleries, news aggregators, > ecommerce, document management, and so on. > > How difficult would it be to get that sor

Hotlist from Kraftware

2007-02-16 Thread mandar
Hi Partners, Let me present you with list of consultants currently available. Name / Job Title Summary Ramchandran/Java · 7+ years experience in the field of Software Development. · Expertise in full Software Development Life Cycle (SDLC) · Expertise in J2EE architecture and application develop

New model - HSTORE

2007-02-16 Thread bluszcz
Hi. I need to implement new model type into django - HSTORE (postgres 8.2). Is there any documentation which will be helpful in this task? Cheers, -- Rafał Zawadzki http://glam.pl/secondhand/clothes/ --~--~-~--~~~---~--~~ You received this message because you a

Re: Comparison between Dreamhost and ASmallOrange

2007-02-16 Thread [EMAIL PROTECTED]
In my personal experience, Dreamhost sucks for Django. I found their FCGI implementation to be flakey and unreliable, and when they say they allow it but don't really support it, they're not kidding. I still have my DH account, but won't put another Django site on there. On Feb 16, 7:31 am, "Der

Re: catalog of django apps?

2007-02-16 Thread limodou
On 2/16/07, mamcxyz <[EMAIL PROTECTED]> wrote: > > Other hard points is what to do with common "modules". > > For example, I made my own CMS. Then I wanna get Schatmo. Both have > custom-extended user modesl, but both are diferent. Also city, > country, etc... > > This is a hard problem. Because i

Re: catalog of django apps?

2007-02-16 Thread mamcxyz
Other hard points is what to do with common "modules". For example, I made my own CMS. Then I wanna get Schatmo. Both have custom-extended user modesl, but both are diferent. Also city, country, etc... This is a hard problem. Because is necesary get rid of one of them, merge both or simply deny

Re: Comparison between Dreamhost and ASmallOrange

2007-02-16 Thread Derek Lee-Wo
I just moved to Dreamhost so I can start to work with Django as my previous host wouldn't support it. I'd be curious to know if the general concensus is that the speed difference is a "fcgi vs flup" issue, or if there could be other factors at play. E.g.: - Maybe the Dreamhost servers are more

Re: Django Cheat Sheet

2007-02-16 Thread Matt
On Feb 13, 10:24 am, "John Sutherland" <[EMAIL PROTECTED]> wrote: > Issue 2 has been published: * The list_per_page Admin class option is now marked as an integer, not as an list. * CommaSeparatedIntegerField no longer has auto_now

Re: Creating HTML emails

2007-02-16 Thread Tipan
Thanks for the posts - I've checked out the ticket, the patch from which I assume is required to action the calls: from email.MIMEMultipart import MIMEMultipart from email.MIMEText import MIMEText in Clint's script. In your script, if I assume I pass my HTML to the function as the mess

Re: new forms - problem populating with data from a table

2007-02-16 Thread Tipan
Thanks for this post it really helped and I've got it working nicely now. Like Honza, I wondered why you copied the post data- but I'm not sure I understood your explanation. Does it give you more flexibility to work with a copy? Rgds, Tim --~--~-~--~~~---~--~~

hello

2007-02-16 Thread [EMAIL PROTECTED]
hello iam new here --~--~-~--~~~---~--~~ 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 PROTEC

Re: "Best" way of using templates

2007-02-16 Thread Jonathan Ballet
Thanks for all your answers ! I knew there was no One True Way of doing this, but I have more point of views now. I think, we might use the __str__() method, since it seems the simplest and cleanest way of doing this (a title is a sort of presentation in fact). Or maybe, we will stick with the g