Re: openid

2009-06-16 Thread Vance Dubberly
llison  django-openid implementing > new openid features. > > I did not face any problems and successfully implemented openid on my > site. > > --rama > > > > > > > > > > > On Jun 14, 9:42 am, Vance Dubberly <altjeri...@gmail.com> wrote: >> So aft

openid

2009-06-13 Thread Vance Dubberly
So after looking around a bit it looks like simonwilsons openid package is pretty where it's at for openid in django. Question is: is the package that hasn't been touched 2 years django_openidconsumer the right one to use or has django_openid come along far enough to implement/test. I note that

Re: application profiling

2009-05-05 Thread Vance Dubberly
gt; or using hotshots : > http://www.djangosnippets.org/snippets/605/ > > Also : > http://www.rkblog.rk.edu.pl/w/p/django-profiling-hotshot-and-kcachegrind/ > > Regards, > -- > Clément > > On Tue, May 5, 2009 at 1:28 PM, Vance Dubberly <altjeri...@gmail.com> wrote: >

application profiling

2009-05-05 Thread Vance Dubberly
Having a hard time trying to figure out how to profile a django application. Doesn't seem to be anything built into django itself that knows how to report on time spent in methods or sql queries or any such thing. Please tell me I'm delusional. Pretty Please? -- To pretend, I actually do the

Re: database fail over

2008-10-16 Thread Vance Dubberly
Just saw this: http://softwaremaniacs.org/soft/mysql_replicated/en/description/ anybody try it? Looks pre- queryset refactor, don't know if that matters. Vance On Thu, Oct 16, 2008 at 11:17 AM, Vance Dubberly <[EMAIL PROTECTED]> wrote: > Ok just got a huge project that is going t

database fail over

2008-10-16 Thread Vance Dubberly
Ok just got a huge project that is going to require alot of big iron. Prolly 4 webservers and at least 2 if not 4 database server and a memecache server. Load balancing across webservers isn't a big deal. But 1 very big weakness I'm seeing in django as it stands is the ability to deal with

Re: ModelMultipleChoiceField and initial values

2008-09-21 Thread Vance Dubberly
a bug report if I'm not. ( by default these days I just assume I'm an idiot. ) Vance On Sat, Sep 20, 2008 at 8:24 PM, Vance Dubberly <[EMAIL PROTECTED]> wrote: > Ok hopefully this will be the last stupid question I ask for a long > time... been struggling with this for several hours:

ModelMultipleChoiceField and initial values

2008-09-20 Thread Vance Dubberly
Ok hopefully this will be the last stupid question I ask for a long time... been struggling with this for several hours: I've got a ModelMultipleChoiceField in a form as such class ApplicationCriteraForm(forms.Form): pay_hourly = forms.CharField() pay_yearly = forms.CharField() locations

Re: ModelForm vs CheckboxSelectMultiple

2008-09-20 Thread Vance Dubberly
t; will supress the '' choice. > > Also, I think you want to use forms.ModelMultipleChoiceField in > conjunction with the widget forms.CheckboxSelectMultiple. > > On Sep 20, 6:26 pm, "Vance Dubberly" <[EMAIL PROTECTED]> wrote: >> End result is I duplicated the cod

Re: ModelForm vs CheckboxSelectMultiple

2008-09-20 Thread Vance Dubberly
_label)) Vance On Sat, Sep 20, 2008 at 2:04 PM, Vance Dubberly <[EMAIL PROTECTED]> wrote: > Unfortunately no luck > > locations = forms.ModelChoiceField(Location.objects.all(), > widget=forms.CheckboxSelectMultiple(), initial='') > locations = forms.ModelChoiceField(Locat

Re: ModelForm vs CheckboxSelectMultiple

2008-09-20 Thread Vance Dubberly
PM, Joshua Jonah <[EMAIL PROTECTED]> wrote: > > ... use the 'initial' attribute of the form field. > > Vance Dubberly wrote: >> So with a form that does this: >> forms.ModelChoiceField(TransportMethod.objects.all(), >> widget=forms.CheckboxSelectMultiple()) &g

ModelForm vs CheckboxSelectMultiple

2008-09-19 Thread Vance Dubberly
So with a form that does this: forms.ModelChoiceField(TransportMethod.objects.all(), widget=forms.CheckboxSelectMultiple()) The first check box has no value and is labeled '-' is there an option to have that not exist. I don't don't see a passable param which would turn it off in

Re: dumb question model-dictionary

2008-09-02 Thread Vance Dubberly
Bruno, thanks that 2 mins of yours was exactly what I was looking for. I feel much worse about myself and much better about the world in general, which is the way things should be, thanks! Does seem odd that there is no such method in Model already but that it's in ModelForm instead. Oh well

Re: dumb question model-dictionary

2008-09-01 Thread Vance Dubberly
ck <[EMAIL PROTECTED]> wrote: > > > On Mon, 2008-09-01 at 15:10 -0400, Jay Parlar wrote: >> On Mon, Sep 1, 2008 at 2:48 PM, Vance Dubberly <[EMAIL PROTECTED]> wrote: >> > >> > So I'm finding there are multiple places where I'm needing to iterate >>

dumb question model-dictionary

2008-09-01 Thread Vance Dubberly
So I'm finding there are multiple places where I'm needing to iterate over the properties of a Model and I'm absolutely certain it's got to be insanely easy to get a dictionary from a model but for the life of me I can't figure it out, and I can't find any documentation on the matter. basically

dictionary from object

2008-08-26 Thread Vance Dubberly
So I want to do something I'd think would be extremely common and simple. user = User.objects.get(pk=data['id']) I want a dictionary of the model attributes/values from user. user_dict = { 'first_name' : 'foo', .. Am I asking to much or reading to little? -- To pretend, I actually do

Re: select only some feilds

2008-06-03 Thread Vance Dubberly
Thank you ! I'm obviously gone blind. w On Tue, Jun 3, 2008 at 1:29 PM, josesoa <[EMAIL PROTECTED]> wrote: > > http://www.djangoproject.com/documentation/db-api/#values-fields > > On Jun 3, 4:08 pm, "Vance Dubberly" <[EMAIL PROTECTED]> wrote: >> So I thi

select only some feilds

2008-06-03 Thread Vance Dubberly
So I think I heard somewhere out there in django land that with the merge of QuerySet refactor we gained the ability specify the fields we want returned in a query. Unfortunately I can't find any info on this, am I being delusional or blind? Got any pointers? Vance -- To pretend, I actually do

Re: OneToOne Relationships

2008-02-06 Thread Vance Dubberly
Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Tue, 2008-02-05 at 17:51 -0800, Vance Dubberly wrote: > > The Documentation has said for as long as I can remember (a year+) > > that the semantics of a the OneToOne relationship is going to change > > soon. Any clue a

Re: Extending Django's admin application

2008-02-05 Thread Vance Dubberly
Using the FileField or ImageField will get your files uploaded. Image field is also nice enough to check that it's an image. http://www.djangoproject.com/documentation/model-api/#filefield http://www.djangoproject.com/documentation/model-api/#imagefield Image Field also requires PIL which is

OneToOne Relationships

2008-02-05 Thread Vance Dubberly
The Documentation has said for as long as I can remember (a year+) that the semantics of a the OneToOne relationship is going to change soon. Any clue as to when this is going to change and/or what it's going to look like? -- To pretend, I actually do the thing: I have therefore only pretended

Re: Best Practice for Ajax and Django. Please share your thoughts.

2008-01-29 Thread Vance Dubberly
Interesting and organized but it seems like a lot of work. Do you write two versions of every method? For instance def ajax_latest_news(request): ... latest_news = ... json = simplejson.dumps(latest_news) return HttpResponse(json, mimetype='application/json') and also def

Re: newforms validation problem

2008-01-28 Thread Vance Dubberly
If I get what you are asking correctly, you are trying to pre-populate some fields in a form without printing out the validation errors that occur from not having all the fields populated? If so this should help: # create object instance with pre-populated data obj_instance =

Re: newforms and updating

2008-01-25 Thread Vance Dubberly
wrote: > > On 2008-01-25 19:18:22 -0700, "Vance Dubberly" <[EMAIL PROTECTED]> said: > > > > > ok so this ones got to be really simple and I've go to be really stupid. > > > > I want to update a model of something I already have in the database >

newforms and updating

2008-01-25 Thread Vance Dubberly
ok so this ones got to be really simple and I've go to be really stupid. I want to update a model of something I already have in the database so I made a ModelForm that doesn't do anything special for it and I use that form to generate a form in a template using the normal form.as_table method.

Re: file upload RAM buffer or stream to tmp

2008-01-14 Thread Vance Dubberly
and Rails hit the scene. Sends chills up my spine. Vance On Jan 14, 2008 10:56 AM, James Bennett <[EMAIL PROTECTED]> wrote: > > On Jan 14, 2008 12:01 PM, Vance Dubberly <[EMAIL PROTECTED]> wrote: > > Kind of a bummer, guess I'll be using cherrypy for this project. Was

Re: file upload RAM buffer or stream to tmp

2008-01-14 Thread Vance Dubberly
, 2008 1:54 AM, Sebastjan Trepca <[EMAIL PROTECTED]> wrote: > > I'm afraid it still uses memory: > > http://code.djangoproject.com/browser/django/trunk/django/http/__init__.py#L100 > > Sebastjan > > > On 1/14/08, Vance Dubberly <[EMAIL PROTECTED]> wrote: > &g

Re: Performance / Memory/CPU Usage of A Django App with 10,000+ Models in a High Traffic Site

2008-01-13 Thread Vance Dubberly
umm ouch. 1) Aside from the description of your app sounding entirely unreal you've probably gone beyond the world that any basic web application framework can handle and into the world of needing to higher a few Ph.D's. No simple ORM is going to work for you not django, not sqlalchemy, not

file upload RAM buffer or stream to tmp

2008-01-13 Thread Vance Dubberly
Does django still buffer file uploads into RAM or is has it started streaming to temp files yet? -- To pretend, I actually do the thing: I have therefore only pretended to pretend. - Jacques Derrida --~--~-~--~~~---~--~~ You received this message because you

Re: File upload virus scanning

2007-11-20 Thread Vance Dubberly
Before it's saved to a file... that would be tricky. But this might get you started: http://www.clamav.net/ . It'll run a daemon though I don't know if it opens sockets or ports... Vance On Nov 20, 2007 2:22 PM, leifbyron <[EMAIL PROTECTED]> wrote: > > Hi there, > > Is anyone aware of a

Django Developer wanted.

2007-07-26 Thread Vance Dubberly
I'm posting this here because I couldn't find anything on the django site about there being an appropriate place for "Help Wanted." == official post == Web Application Developer Challenging full-time permanent position with ASANI Solutions, LLC. at NASA Ames Research Center in Mountain View,

Re: nasa site on django

2007-06-28 Thread Vance Dubberly
AIL PROTECTED]> wrote: > > > On 6/27/07, Vance Dubberly <[EMAIL PROTECTED]> wrote: > ... > > ball of red tape but let's just say django is ALOT more resource > intensive > > and ALOT slower. > > Have you done any profiling? I haven't compared such

Re: nasa site on django

2007-06-28 Thread Vance Dubberly
No dynamically assembling the pages via django is faster than serving static files off disk with Apache. Vance On 6/27/07, KpoH <[EMAIL PROTECTED]> wrote: > > > I don't understand. Static files served by django? > > Vance Dubberly wrote: > > Moved http://opensource.arc.

Re: nasa site on django

2007-06-28 Thread Vance Dubberly
files it'll make your router cry out for mercy. Vance On 6/27/07, Kai Kuehne <[EMAIL PROTECTED]> wrote: > > > Hi, > > > Vance Dubberly wrote: > > > On the plus side it is faster than a similar PHP app ( with APC ) and > > > faster than serving static f

nasa site on django

2007-06-27 Thread Vance Dubberly
Moved http://opensource.arc.nasa.gov to django a couple of weeks ago. Thought ya'll might want to know that. Also thought you might want to know the site was running on Tomcat/Mysql and the performance difference is mind blowing. Unfortunately the actual server specs and benchmarks can't be

Re: Apache configuration

2007-05-22 Thread Vance Dubberly
James, If I get you right the request path is ^mysite/admin/ so ^admin shouldn't work. You've got to update all your top level urls to ^mysite/module_name as such (r'^mysite/admin/', include('django.contrib.admin.urls')), Also the stuff in the virtual host isn't neccesary if you are

Re: Displaying my table data

2007-05-22 Thread Vance Dubberly
My bet would be that this little bit of code right here: def __str__(self,): return self.choice the return of __str__ needs to be a string not an object. Vance On 5/21/07, Greg <[EMAIL PROTECTED]> wrote: > > I am trying to display the table in my Choice table. However it's > error's

Re: newforms file upload

2007-05-03 Thread Vance Dubberly
Thanks Sandro. I concur newforms beats the socks off maninpulator and validators but putting it in trunk prior to getting basic functionality completed was mean. But hey it's pre-1.0 so I guess anything goes. ;) Vance On 5/3/07, vega <[EMAIL PROTECTED]> wrote: > > Hi, > > in fact there is

newforms file upload

2007-05-02 Thread Vance Dubberly
Am I correct in my guess that uploading files and new forms are two things that just don't go together? I'm about to just do the file handling myself ( not a big deal ) but thought I'd check with the smart people before I went there. -- To pretend, I actually do the thing: I have therefore

Re: getElementsByClass

2007-01-29 Thread Vance Dubberly
DISREGARD. WRONG LIST!! SORRY. On 1/29/07, Vance Dubberly <[EMAIL PROTECTED]> wrote: > > Just checking if I'm delusional or whether dojo.html.getElementByClass is > broken in IE 7. > > dojo.debug("pre getElementByClass") > tabs = dojo.html.getElementByClass('

getElementsByClass

2007-01-29 Thread Vance Dubberly
Just checking if I'm delusional or whether dojo.html.getElementByClass is broken in IE 7. dojo.debug("pre getElementByClass") tabs = dojo.html.getElementByClass('tab', 'tabs', 'div'); dojo.debug("post getElementByClass") on a chunk o' code that looks like this blah blah results in

Re: Re: Re: Extending user model in 0.95?

2006-08-24 Thread Vance Dubberly
Labath <[EMAIL PROTECTED]> wrote: > > Hi, > > > On 8/9/06, Vance Dubberly <[EMAIL PROTECTED]> wrote: > > > I very much want to subclass User as I have more than one kind of user > > > and each has a different type of profile. > > > > Which is a

Re: Re: syncdb without shell access

2006-08-16 Thread Vance Dubberly
Some combination of cgi and a system or execute command is a fun way to both piss off your hosting provider and get that done. You'll need to insert all the appropriate paths but it would look something like this: os.system('/path/to/python /path/to/manage.py syncdb'); If your hosting provider

Re: Re: How to build a tree on the page?

2006-08-16 Thread Vance Dubberly
Thanks for sharing that spaceman. On 8/16/06, spacedman <[EMAIL PROTECTED]> wrote: > > > 一首诗 wrote: > > I have a table like this > > > > id | name | parentid > > > > And parentid is a Foreign Key to ID. > > > > So I have a tree in my database. My question is that, how can I > > represent it on

Re: psycopg2

2006-08-11 Thread Vance Dubberly
[EMAIL PROTECTED]> wrote: Le mercredi 9 août 2006 19:42, Vance Dubberly a écrit:>> Warning psycopg2 is not supported by django.  ( still in beta yada > yada yada ). Unless you're willing to eat your own pie when things go> awry, don't use it.>Snip,Fromhttp://initd.org/project