Re: Installing django

2009-05-20 Thread Kenneth Gonsalves
On Thursday 21 May 2009 11:15:29 LeonTheCleaner wrote: > @sdc, yeah I plan to try webfaction. The only thing is I just quickly > checked out their demo video to setup django and itès 21 mins. I am > blown away to see how complicated just setting this up, and I am an > experienced windows

Re: Best Django host

2009-05-20 Thread LeonTheCleaner
Thanks all for replying. I appreciate it. Webfaction seems to be popular amongst many. The only thing is I just quickly checked out their demo video to setup django and it is 21 mins. I am blown away to see how complicated just setting this up, and I am an experienced windows programmer. Just

Re: Installing django

2009-05-20 Thread LeonTheCleaner
Thanks for all the replies. @sdc, yeah I plan to try webfaction. The only thing is I just quickly checked out their demo video to setup django and itès 21 mins. I am blown away to see how complicated just setting this up, and I am an experienced windows programmer. Just expected a lot less

Re: django captcha

2009-05-20 Thread jai
svn checkout http://django-simple-captcha.googlecode.com/svn/trunk/ django-simple-captcha-read-only On May 21, 9:30 am, online wrote: > Could anyone please recommend a open source library captcha working > fine with django? > >

Re: please help me

2009-05-20 Thread Apple
That's the point ,thank you friend ! On 5/17/09, Apple wrote: > > I write some code like following: > > #coding=utf8 > from django.shortcuts import

Re: perfomance question

2009-05-20 Thread Rodrigo Aliste P.
OH! It does it alone! Another awesome thing to my awesomeness list of django. 2009/5/20 Rodrigo > Hi users and devs > > In the next example for pagination: > >contact_list = Contacts.objects.all() >paginator = Paginator(contact_list, 25) # Show 25 contacts per > page

Re: django captcha

2009-05-20 Thread Sam Kuper
2009/5/21 online > Could anyone please recommend a open source library captcha working > fine with django? Personally, I'm a fan of ReCAPTCHA, but it may not be quite what you're after. > http://code.google.com/p/django-simple-captcha/ looks but i just > cannot

Re: Installing django

2009-05-20 Thread Sam Kuper
2009/5/19 LeonTheCleaner > I am trying to install django by using this: > > http://wiki.dreamhost.com/Django > > but there are a few things I don't understand. > > 1. Where am I supposed to run stuff like these: > > export PATH=$PATH:$HOME/django_src/django/bin > export

perfomance question

2009-05-20 Thread Rodrigo
Hi users and devs In the next example for pagination: contact_list = Contacts.objects.all() paginator = Paginator(contact_list, 25) # Show 25 contacts per page Consider that Contacts.objects.all() returns a list with 1.000.000 objects, and I want to paginate to 25 objects per page.

django captcha

2009-05-20 Thread online
Could anyone please recommend a open source library captcha working fine with django? http://code.google.com/p/django-simple-captcha/ looks but i just cannot find where to download. Thanks --~--~-~--~~~---~--~~ You received this message because you are

Re: Installing django

2009-05-20 Thread Sam Chuparkoff
On Tue, 2009-05-19 at 11:06 -0700, LeonTheCleaner wrote: > Hi, > > I am trying to install django by using this: > > http://wiki.dreamhost.com/Django > > but there are a few things I don't understand. I see you asked another question about the best django host, and got a lot of replies to that

Integrity error handling

2009-05-20 Thread Bobby Roberts
hi group I have a situation here. I need to make sure that a field is unique in the database. In my model i have the following: url= models.CharField (max_length=254, blank=False, db_index=True,unique=True) When i go to save, it throws the IntegrityError just like it should. How can i

[br...@vpac.org: selecting foreign keys]

2009-05-20 Thread Brian May
Hello, I tried to send this several months ago via the Gmane NNTP server, but I suspect it didn't get through. At least I can't find it. The same problems seems to exist with the current subversion code. My apologies if this did get through and was discussed, if so could somebody please

Groups documentation

2009-05-20 Thread ringemup
The docs on groups in contrib.auth are beyond minimal: http://docs.djangoproject.com/en/dev/topics/auth/#groups Are there any recommended resources for learning about working with groups and permissions, beyond spelunking through the code? --~--~-~--~~~---~--~~

Re: Installing django

2009-05-20 Thread LeonTheCleaner
bump On May 19, 7:16 pm, LeonTheCleaner wrote: > Thanks for replying. I wanted to do that, but I canèt find the file. I > use win btw. > > Also I am trying to install this on my host (dreamhost). Am I supposed > to do this operation on my machineÉ > > Thanks. > > On May

UnicodeEncodeError

2009-05-20 Thread Sean Brant
Traceback (most recent call last): File "manage.py", line 11, in ? execute_manager(settings) File "/home/58124/data/python/django/django/core/management/ __init__.py", line 362, in execute_manager utility.execute() File "/home/58124/data/python/django/django/core/management/

Re: FormWizard and ImageField - "this field is required" error

2009-05-20 Thread ringemup
UPDATE: I found a workaround, but it's not pretty. Has anyone done this in a more elegant manner? 1) when defining the initial data to pass into the FormWizard (I do this in a view wrapped around the FormWizard): if len(request.FILES): initial.update({'request_files':request.FILES})

Re: Separate User namespace

2009-05-20 Thread Timboy
I have thought about this and will probably do so. I was just hoping it would be easy to just add an additional namespace. Seems cleaner to me. On May 20, 11:46 am, Andy Mikhailenko wrote: > What about using emails or openIDs for authentication? These include > namespaces

FormWizard and ImageField - "this field is required" error

2009-05-20 Thread ringemup
In the last step of my FormWizard, I have an ImageField. I've made sure that the uploaded image is appearing in request.FILES, but I'm still getting a "this field is required" error upon submission. I assume that this problem is related to this ticket: http://code.djangoproject.com/ticket/7439

Re: Best Django host

2009-05-20 Thread jdbaker
I've had a reseller account with www.site5.com for a couple years with no complaints - service has always been quick... They've recently added django to all their servers... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Custom urlconfs in django.contrib.auth tests failing when reverse is used in templates

2009-05-20 Thread Andrew Fong
I have the contrib.auth app installed, and in order for its tests to pass, I have to define certain registration templates. When defining those templates, if I use the url tag / reverse to point to a view outside the auths app, the auth tests fail. This occurs because the auth tests use a custom

Re: Displaying objects in template

2009-05-20 Thread Oleg Oltar
Strange :( This code produces nothing in template how can I debug it? Please help 2009/5/20 Oleg Oltar > Just want to tell you big big thank you! > > > On Wed, May 20, 2009 at 10:52 PM, Alex Gaynor wrote: > >> >> >> 2009/5/20 Oleg Oltar

django-cms admin template format off

2009-05-20 Thread Jesse
I installed django-cms with Apache/windows. Pages comes up under the admin menu. I can also see new pages I added. When I open the new page the formatting is off. The add content to template is hiding behind the info window (dates, times, etc). I'm not sure how to fix this formatting

Re: Displaying objects in template

2009-05-20 Thread Oleg Oltar
Just want to tell you big big thank you! On Wed, May 20, 2009 at 10:52 PM, Alex Gaynor wrote: > > > 2009/5/20 Oleg Oltar > >> Is there any doc I can read about it? >> >> On Wed, May 20, 2009 at 9:50 PM, Alex Gaynor wrote: >>

Re: MultiValueField with required=True problem

2009-05-20 Thread [CPR]-AL.exe
I understood that, i just thought there is some nicer way to do it :) Thx. On Wed, May 20, 2009 at 11:52 PM, Sam Chuparkoff wrote: > > On Wed, 2009-05-20 at 07:09 -0700, [CPR]-AL.exe wrote: > > So, what is the best way to throw a ValidationError only if None of > > values a

Re: MultiValueField with required=True problem

2009-05-20 Thread Sam Chuparkoff
On Wed, 2009-05-20 at 07:09 -0700, [CPR]-AL.exe wrote: > So, what is the best way to throw a ValidationError only if None of > values a entered in subclassed field? I don't know if you understood my post or read the code for MultiValueField. MultiValueField is designed to check for empty values

Re: Displaying objects in template

2009-05-20 Thread Alex Gaynor
2009/5/20 Oleg Oltar > Is there any doc I can read about it? > > On Wed, May 20, 2009 at 9:50 PM, Alex Gaynor wrote: > >> >> >> 2009/5/20 Oleg Oltar >> >>> Ok, I got it now >>> What about the inheritance? Question 2? >>> >>>

Re: Displaying objects in template

2009-05-20 Thread Oleg Oltar
Is there any doc I can read about it? On Wed, May 20, 2009 at 9:50 PM, Alex Gaynor wrote: > > > 2009/5/20 Oleg Oltar > >> Ok, I got it now >> What about the inheritance? Question 2? >> >> On Wed, May 20, 2009 at 9:30 PM, Alex Gaynor

Re: Callable objects instead of functions in views.py

2009-05-20 Thread Filip Gruszczyński
> For a 404 you should still be able to just raise the exception, for other > response you could create your own Exception like ResponseIsReady and just > raise it and have __init__ return as soon as it's done. I though about this, but isn't raising an exception to provoke not really an

Re: Callable objects instead of functions in views.py

2009-05-20 Thread Alex Gaynor
2009/5/20 Filip Gruszczyński > > Yeah, I did a quick check in the interpreter and this is indeed very cool. > > There is another thing though that worries me (but just a little). > Often, when I write views, it's nice to be able just to return 404 or > 302 at any moment and

Re: Callable objects instead of functions in views.py

2009-05-20 Thread Filip Gruszczyński
Yeah, I did a quick check in the interpreter and this is indeed very cool. There is another thing though that worries me (but just a little). Often, when I write views, it's nice to be able just to return 404 or 302 at any moment and not proceed with a current function. For 404 it can be always

Disabling middleware on a per view basis

2009-05-20 Thread luddep
Hello, I've been vigorously searching for a way to disable middleware on a per view basis, something like: @disable_middleware def my_view(request): ... I'm wondering if something like this might be possible right now or if anyone else has had the need for this? -- I'm asking this

Django Class method and attribue summary on the lines of JavaDoc

2009-05-20 Thread Sonal Breed
Hi all, I am a newbie to Django and I come from Java background. I was looking for a comprehensive summary of Django classes like you have it in Java. This would enable one to know where to look for a possible class to use and find all the methods in it. Thanking you in advance, Sincerely, Sonal

Re: ModelChoiceField help

2009-05-20 Thread Bobby Roberts
> Sure, label_for_instance gets the object itself, with all it's fields.  So > isntead of returning the string with the id number, change it to return: > obj.name. > > Alex PERFECT! Thanks a lot! --~--~-~--~~~---~--~~ You received this message because you are

Re: Weird problem in url resolving after restarting django dev. server

2009-05-20 Thread Konstantin S
On 20 май, 22:48, Steve Howell wrote: > On May 20, 10:49 am, Konstantin S wrote: > > > > > On 20 май, 19:43, Steve Howell wrote: > > > > To elaborate on Karen's suggestion, one way to see which URLs are > > > among the candidates

Re: ModelChoiceField help

2009-05-20 Thread Alex Gaynor
On Wed, May 20, 2009 at 2:05 PM, Bobby Roberts wrote: > > > > Your class should inherit from "forms.ModelChoiceField", not just > > ModelChocieField. > > > > Alex > > > Ok i'm getting somewhere! Thanks for your patience. I'm still > finding my python / django legs. This

Re: ModelChoiceField help

2009-05-20 Thread Bobby Roberts
> Your class should inherit from "forms.ModelChoiceField", not just > ModelChocieField. > > Alex Ok i'm getting somewhere! Thanks for your patience. I'm still finding my python / django legs. This populates the dropbox with My Object #1 My Object #2 My Object #3 I see why it's dong that

Re: Dojo widgets inside Django

2009-05-20 Thread Guri
On May 19, 8:57 am, Guri wrote: > On May 19, 12:27 am, Alex Gaynor wrote: > > > On Mon, May 18, 2009 at 2:04 PM, Guri wrote: > > > > Hi, > > >          Is there are way to useDojowidgets insideDjangoforms.py? > > > > Any

Re: Best Django host

2009-05-20 Thread Lakshman Prasad
In a sentence, to sum it up, Use Slicehost for VPS and Webfaction for shared servers. Go shopping if you want to save some bucks and dont mind some extra effort for installation. On Wed, May 20, 2009 at 11:19 PM, ringemup wrote: > > > FWIW, I got django working on Dreamhost

Re: Displaying objects in template

2009-05-20 Thread Alex Gaynor
2009/5/20 Oleg Oltar > Ok, I got it now > What about the inheritance? Question 2? > > On Wed, May 20, 2009 at 9:30 PM, Alex Gaynor wrote: > >> >> >> 2009/5/20 Oleg Oltar >> >> Hi! >>> I have a model with a Sections and

Re: Weird problem in url resolving after restarting django dev. server

2009-05-20 Thread Steve Howell
On May 20, 10:49 am, Konstantin S wrote: > On 20 май, 19:43, Steve Howell wrote: > > > > > To elaborate on Karen's suggestion, one way to see which URLs are > > among the candidates for resolving the reverse match is to > > deliberately hit a bad URL

Re: ModelChoiceField help

2009-05-20 Thread Alex Gaynor
On Wed, May 20, 2009 at 1:38 PM, Bobby Roberts wrote: > > > You don't access the class at forms.MyModeChoiceField, since it doesn't > live > > in that namespace. You access it with just MyModelChocieField, since > it's > > defined in the same file. As a note, you're going

Re: Separate User namespace

2009-05-20 Thread Andy Mikhailenko
What about using emails or openIDs for authentication? These include namespaces per se ;) On May 20, 1:09 am, Timboy wrote: > Initially we will have in the ballpark of 10,000 Private users. Anyone > have an idea on an additional user namespace? > > On May 19, 8:42 am,

Re: Displaying objects in template

2009-05-20 Thread Oleg Oltar
Ok, I got it now What about the inheritance? Question 2? On Wed, May 20, 2009 at 9:30 PM, Alex Gaynor wrote: > > > 2009/5/20 Oleg Oltar > > Hi! >> I have a model with a Sections and Categories related this way: >> >> class Category(models.Model):

Re: ModelChoiceField help

2009-05-20 Thread Bobby Roberts
> You don't access the class at forms.MyModeChoiceField, since it doesn't live > in that namespace.  You access it with just MyModelChocieField, since it's > defined in the same file.  As a note, you're going to want to have the > MyModelChoiceField class before your form (in the file), otherwise

Re: Displaying objects in template

2009-05-20 Thread Alex Gaynor
2009/5/20 Oleg Oltar > Hi! > I have a model with a Sections and Categories related this way: > > class Category(models.Model): > categoty = models.CharField(max_length=200) > name = models.CharField(max_length = 200, help_text=u"Имя категории") > > def

Displaying objects in template

2009-05-20 Thread Oleg Oltar
Hi! I have a model with a Sections and Categories related this way: class Category(models.Model): categoty = models.CharField(max_length=200) name = models.CharField(max_length = 200, help_text=u"Имя категории") def __unicode__(self): return u"Категория %s" %self.name class

Re: model form validation always failing

2009-05-20 Thread Karen Tracey
On Wed, May 20, 2009 at 2:39 AM, watad wrote: > > this is my form after thomas reply: > > {{ form.as_p }} > > > > > and this is my view after your reply : > > def

Re: how can I reset the form object variable (errors)?

2009-05-20 Thread Lokesh
Hi Karen, In one of my HTML page I have included 2 forms, where both the forms have required=True fields and have submit buttons respectively. The problem is when a user submits one form (by clicking one of submit button form the page) and if at all it has some errors (as validated in clean

Re: ModelChoiceField help

2009-05-20 Thread Alex Gaynor
On Wed, May 20, 2009 at 12:32 PM, Bobby Roberts wrote: > > > You aren't actually using that Field though, you need to use it in place > of > > ModelChoiceField where you want that behavior. > > > > Alex > > > here's what i've got: > > class FrmWebPage (forms.Form): >

Re: Best Django host

2009-05-20 Thread ringemup
FWIW, I got django working on Dreamhost by basically using the instructions here: http://www.soasi.com/2008/09/django-10-on-dreamhost-with-passenger-mod_rails/ On May 20, 1:13 pm, Masklinn wrote: > On 20 May 2009, at 17:10 , Aneesh wrote: > > > I've set up a couple

Re: Weird problem in url resolving after restarting django dev. server

2009-05-20 Thread Konstantin S
On 20 май, 19:43, Steve Howell wrote: > > To elaborate on Karen's suggestion, one way to see which URLs are > among the candidates for resolving the reverse match is to > deliberately hit a bad URL like the following: > >

Re: Django version

2009-05-20 Thread Aaron Maxwell
On Tuesday 19 May 2009 10:47:05 am VidrSan wrote: > How can I see django version on my web-server? Just python's code, > beaucause I can't find any information on hosting An addendum to others' replies - since I have several django sites still around that were made with different releases of

Re: ModelChoiceField help

2009-05-20 Thread Bobby Roberts
> You aren't actually using that Field though, you need to use it in place of > ModelChoiceField where you want that behavior. > > Alex here's what i've got: class FrmWebPage (forms.Form): active = forms.ChoiceField(required=True, choices=active_choices,

FileBrowser: Models for media

2009-05-20 Thread eric.frederich
My application models Training courses. Those courses may have training material in a variety of formats. I came across FileBrowser and it seems real nice. Are any of you using a FileBrowseField in your models? I get the feeling that what I'm doing below is wrong... creating a model that

Re: Best Django host

2009-05-20 Thread Masklinn
On 20 May 2009, at 17:10 , Aneesh wrote: > I've set up a couple Django sites on Dreamhost, as well as one on > Webfaction. Webfaction is great. Dreamhost requires lots of > tweaking, but you can definitely run a Django site just fine there > too. I've had no issues with uptime. If you need

Re: Cache and i18n

2009-05-20 Thread Alex Gaynor
On Wed, May 20, 2009 at 12:01 PM, Dmitriy Sodrianov wrote: > > Hi, there! > > I've configured bilingual site. At this site some forms are present. > All the forms field 'verbose_name' attribute are marked with ugettext > utility. > > The problem is that when language is changed

Using Django with app-engine-patch to provide authentication for an application deployed on GAE

2009-05-20 Thread GuruDutta
Hi, I have an application who's start page is hello.html(dynamic page where the contents change based on which user has logged in). Now I want to protect this page using django's app-engine patch so that only authenticated users can access their respective pages. I followed the example in

Cache and i18n

2009-05-20 Thread Dmitriy Sodrianov
Hi, there! I've configured bilingual site. At this site some forms are present. All the forms field 'verbose_name' attribute are marked with ugettext utility. The problem is that when language is changed labels for form's fields does not change. All the localization files are provided and

Re: how can I reset the form object variable (errors)?

2009-05-20 Thread Karen Tracey
On Wed, May 20, 2009 at 12:11 PM, Lokesh wrote: > > Hi, > > Is it possible to clear the variable 'errors' of a form object? If so, > could some one please help me in clearing the errors variable. > Well, almost anything's possible and there is probably some way to do

Re: Callable objects instead of functions in views.py

2009-05-20 Thread Alex Gaynor
2009/5/20 Filip Gruszczyński > > > Take a look at this: > http://code.djangoproject.com/ticket/6735#comment:37 > > snippet which actually does let you store state on the object. > > The suggested solution is very cool, but I wonder, how to change > status code of such

Re: can't get admin to work on google apps.

2009-05-20 Thread Aaron
I am doing this for a job. I am not experienced with python nore google apps engine or django. I was hired in to make a website with html, css and that was really it. I asked about his server in the start but he said he will give me that info when I am done with the site. so when I got done

Re: Callable objects instead of functions in views.py

2009-05-20 Thread Filip Gruszczyński
> Take a look at this: http://code.djangoproject.com/ticket/6735#comment:37 > snippet which actually does let you store state on the object. The suggested solution is very cool, but I wonder, how to change status code of such responses. status_code is a class attribute, so if while serving a

Re: Callable objects instead of functions in views.py

2009-05-20 Thread Alex Gaynor
2009/5/20 Filip Gruszczyński > > > I don't have major beefs with your solution, but I'll offer a few > > alternatives that might accomplish the same thing, without creating > > inheritance. Inheritance feels a little heavy for what you're trying > > to provide, which is

how can I reset the form object variable (errors)?

2009-05-20 Thread Lokesh
Hi, Is it possible to clear the variable 'errors' of a form object? If so, could some one please help me in clearing the errors variable. I have tried by below scenarios but, of no use. form1.errors = {} form1.errors = '' Here is the code and output details: class SearchForm(forms.Form):

Re: Callable objects instead of functions in views.py

2009-05-20 Thread Filip Gruszczyński
> I don't have major beefs with your solution, but I'll offer a few > alternatives that might accomplish the same thing, without creating > inheritance.  Inheritance feels a little heavy for what you're trying > to provide, which is basically just a common method to tie together > three other

Style question (model naming conventions)

2009-05-20 Thread zinckiwi
Hi folks, Let's say I have an app called "Attributes" that holds flags for user account modifiers (e.g. "TurnOffAds"). So I might have a model inside this app to contain all the available attributes: class Attribute(models.Model): name = models.CharField(max_length=50)

Re: Creating a custom form from models, problems when ordering

2009-05-20 Thread Alex Gaynor
On Wed, May 20, 2009 at 10:34 AM, ccsakuweb wrote: > > Sorry, I forgot to tell it, I use the 1.0.2 version > > On 19 mayo, 23:41, Alex Gaynor wrote: > > On Tue, May 19, 2009 at 2:53 PM, ccsakuweb wrote: > > > > > I have a form from a

Re: ModelChoiceField help

2009-05-20 Thread Alex Gaynor
On Wed, May 20, 2009 at 10:38 AM, Bobby Roberts wrote: > > > Take a look at label_from_instance: > http://docs.djangoproject.com/en/dev/ref/forms/fields/#modelchoicefield > > > > Alex > > > > yeah I'm lookin at that but it makes no sense to me. > > Here's what i have and

Re: Callable objects instead of functions in views.py

2009-05-20 Thread Steve Howell
On May 20, 6:33 am, Filip Gruszczyński wrote: > > I have recently created a class: > > class RequestService: > >         def __call__(self, request, *args, **kwargs): >                 self.prepare(request, *args, **kwargs) >                 if request.method == 'POST': >    

Re: Callable objects instead of functions in views.py

2009-05-20 Thread Filip Gruszczyński
> One thing to keep in mind is that the object is shared across all requests > in that process, so you can't actually store state on your object. What exactly do you mean? Because I just got very worried. I have a class like this: class CreateAddressService(RequestService):

Re: Weird problem in url resolving after restarting django dev. server

2009-05-20 Thread Steve Howell
On May 20, 6:41 am, Karen Tracey wrote: > On Wed, May 20, 2009 at 7:28 AM, Konstantin S wrote: > > > On 20 май, 14:02, Konstantin S wrote: > > > Hello! > > > > I have a very strange problem and really don't know where to start in

Re: ModelChoiceField help

2009-05-20 Thread Bobby Roberts
> Take a look at > label_from_instance:http://docs.djangoproject.com/en/dev/ref/forms/fields/#modelchoicefield > > Alex > yeah I'm lookin at that but it makes no sense to me. Here's what i have and it's not working: from django import forms from web_pages.models import PageCategory from

Re: Creating a custom form from models, problems when ordering

2009-05-20 Thread ccsakuweb
Sorry, I forgot to tell it, I use the 1.0.2 version On 19 mayo, 23:41, Alex Gaynor wrote: > On Tue, May 19, 2009 at 2:53 PM, ccsakuweb wrote: > > > I have a form from a model. I add 3 new inputs. Then when I write in > > Meta : > > model = models.Table

Chunked transfer of a file fetched through xml-rpc

2009-05-20 Thread Nico Ayci
Hello everyone, here is the situation: I have a Django web server A that communicates with another local server B through xml-rpc. A storage C (NAS, but it doesn't really matter) is mounted on B. I would like to make a file located on C available for download from A. I would like to avoid

Re: Fwd: Best Django host

2009-05-20 Thread Laszlo Antal
+1 for WebFaction. Very easy control panel and directory layout. Very-very helpfull technical support. Great price for what you get. lzantal http://twitter.com/lzantal http://www.antalconsulting.com On Wed, 20 May 2009 7:48 am, Kegan Gan wrote: > > +1 for WebFaction. > > The control panel

Re: strange entry in admin interface- how can this happen?

2009-05-20 Thread snorkel
Absolutely right, Doh! thanks very much karen On May 20, 3:51 pm, Karen Tracey wrote: > On Wed, May 20, 2009 at 10:39 AM, snorkel wrote: > > > > > Hullo everyone, > >    I can't understand how this is happening... when i go to the admin > > page

Re: Fwd: Best Django host

2009-05-20 Thread Aneesh
I've set up a couple Django sites on Dreamhost, as well as one on Webfaction. Webfaction is great. Dreamhost requires lots of tweaking, but you can definitely run a Django site just fine there too. I've had no issues with uptime. If you need help setting it up on Dreamhost, check out Jeff

Re: Error notification in admin site. Should be easy!!!

2009-05-20 Thread Alex Gaynor
On Wed, May 20, 2009 at 10:09 AM, Felipe Martinez wrote: > > > > Sorry, but I got lost somewhere in formsets. I'm using actions from > change_list.html, so I suppose I should use cl.formset.errors: > > {% if cl.formset.errors %} > > {% blocktrans count

Re: ModelChoiceField help

2009-05-20 Thread Alex Gaynor
On Wed, May 20, 2009 at 10:00 AM, Bobby Roberts wrote: > > Hi Group. Please look at this snippet from my forms. It uses two > ModelChoiceFields as shown below. Each database table currently has 2 > records. > > On the webpage, when the form is being called, the options

Re: Error notification in admin site. Should be easy!!!

2009-05-20 Thread Felipe Martinez
Sorry, but I got lost somewhere in formsets. I'm using actions from change_list.html, so I suppose I should use cl.formset.errors: {% if cl.formset.errors %} {% blocktrans count cl.formset.errors|length as counter %} Please correct the error below.{% plural %}Please

ModelChoiceField help

2009-05-20 Thread Bobby Roberts
Hi Group. Please look at this snippet from my forms. It uses two ModelChoiceFields as shown below. Each database table currently has 2 records. On the webpage, when the form is being called, the options are like this: Template object Template object and PageCategory object PageCategory

Re: strange entry in admin interface- how can this happen?

2009-05-20 Thread Karen Tracey
On Wed, May 20, 2009 at 10:39 AM, snorkel wrote: > > Hullo everyone, >I can't understand how this is happening... when i go to the admin > page I get two entries for Element, > the database (sqlite3) does not show two tables for Element, and when > you click on

Re: Fwd: Best Django host

2009-05-20 Thread Kegan Gan
+1 for WebFaction. The control panel look+feel may looks weird, but the simplicity is just great and you get everything you need. The structure in your home directory is also sensible. Another plus for great technical support when you needed it. On May 20, 7:41 pm, Sam Kuper

Re: Admin interface is slow

2009-05-20 Thread Alex Gaynor
On Wed, May 20, 2009 at 9:31 AM, Skylar Saveland wrote: > > Is this something having to do with pools? > > > Django doesn't pool connections, so unless the original poster is using an external pool, no. Alex -- "I disapprove of what you say, but I will defend to the

strange entry in admin interface- how can this happen?

2009-05-20 Thread snorkel
Hullo everyone, I can't understand how this is happening... when i go to the admin page I get two entries for Element, the database (sqlite3) does not show two tables for Element, and when you click on the first Element it takes you to the page for Shots? Is this a bug or am i doing

Re: Admin interface is slow

2009-05-20 Thread Skylar Saveland
Is this something having to do with pools? --~--~-~--~~~---~--~~ 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

Re: Error notification in admin site. Should be easy!!!

2009-05-20 Thread Alex Gaynor
On Wed, May 20, 2009 at 6:24 AM, Felipe Martinez wrote: > > Hi, everybody > > I've done a simple app using admin actions in django's admin site. > Everytime somebody executes an action some checks are made and > messages are delivered informing about actions result (ok,

Re: Callable objects instead of functions in views.py

2009-05-20 Thread Alex Gaynor
2009/5/20 Brian Neal > > On May 20, 8:33 am, Filip Gruszczyński wrote: > > I was wondering: have you considered using some callable objects to > > serve requests in views.py instead of functions? > > Sure, check out this blog post (not the only example): >

Re: Callable objects instead of functions in views.py

2009-05-20 Thread Brian Neal
On May 20, 8:33 am, Filip Gruszczyński wrote: > I was wondering: have you considered using some callable objects to > serve requests in views.py instead of functions? Sure, check out this blog post (not the only example):

Re: Getting distinct objects (well attributes)

2009-05-20 Thread Aldo
Ill help myself and anyone else who stumbles across this - The answer is: Place.objects.values_list('county', flat=true).distinct() On May 20, 2:52 pm, Aldo wrote: > Hi folks, > > The problem Im having is that I have a large number of objects. > Objects are people (name,

Re: Exception in model in admin with non unicode

2009-05-20 Thread Oleg Oltar
Well... I just restored my database from production dump... On prod I have correct UTF-8 On Wed, May 20, 2009 at 4:49 PM, Karen Tracey wrote: > On Wed, May 20, 2009 at 9:37 AM, Oleg Oltar wrote: > >> Hm... You're right...But I don't understand how it

Re: MultiValueField with required=True problem

2009-05-20 Thread [CPR]-AL.exe
So, what is the best way to throw a ValidationError only if None of values a entered in subclassed field? On 19 май, 23:10, Sam Chuparkoff wrote: > On Mon, 2009-05-18 at 10:13 -0700, [CPR]-AL.exe wrote: > > I've created a field+widget set that i use to render a number of > >

Re: Weird problem in url resolving after restarting django dev. server

2009-05-20 Thread Konstantin S
On 20 май, 17:41, Karen Tracey wrote: > There's got to be some difference between your server > environment and the shell environment you are using that is causing that. > All works fine until I restart django dev. http server. If at that moment I was logged in into my site

default selection on RadioSelect

2009-05-20 Thread Bobby Roberts
Is it possible to set the default selected value on a RadioSelect widget? I tried passing in default=1 and it didn't like that. Can you do it through an attr dict? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Possible bug in WSGIHanlder (Apache + Django + WSGI)

2009-05-20 Thread Felipe Prenholato
Hello for everyone. I have here a environment based on Apache, mod_wsgi and WSGIHandler for Django. Sometimes we get a really unusual problem - a blank screen - when we access django applications via Apache. Here is my Apache configuration for virtual host with Django application: # File:

Getting distinct objects (well attributes)

2009-05-20 Thread Aldo
Hi folks, The problem Im having is that I have a large number of objects. Objects are people (name, address, phone etc) I want to retrieve all the objects where name startswith "Mary" X = objects.filter(name__startswith="Mary").distinct() But, If there are 3 objects called "Mary Smith" I do

Re: Exception in model in admin with non unicode

2009-05-20 Thread Karen Tracey
On Wed, May 20, 2009 at 9:37 AM, Oleg Oltar wrote: > Hm... You're right...But I don't understand how it happened... I used sync > db to create those table > syncdb doesn't specify a character set, it uses the database default. I don't understand how some of your tables

Re: Weird problem in url resolving after restarting django dev. server

2009-05-20 Thread Karen Tracey
On Wed, May 20, 2009 at 7:28 AM, Konstantin S wrote: > > On 20 май, 14:02, Konstantin S wrote: > > Hello! > > > > I have a very strange problem and really don't know where to start in > > hunting it down. My app uses django-registration, all works

Re: Exception in model in admin with non unicode

2009-05-20 Thread Oleg Oltar
Hm... You're right...But I don't understand how it happened... I used sync db to create those table mysql> show create table articleManager_categoty\G *** 1. row *** Table: articleManager_categoty Create Table: CREATE TABLE

  1   2   >