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
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
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:
>
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
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
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
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:
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
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
_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
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
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
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
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
>>
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
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
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
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
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
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
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
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
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 =
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
>
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.
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
, 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
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
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
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
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,
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
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.
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
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
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
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
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
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
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('
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
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
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
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
[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
45 matches
Mail list logo