Open Django Central - June 8/9

2012-05-08 Thread Steve Holden
OK, anyone want to help build the broader Django community? Open Django Central is on June 8 and 9 - http://opendjango/central/ the registration site is open and the hotel is taking reservations at an amazingly low rate if you are flying in from elsewhere. Chicago locals please note I am flying

Open Django East

2012-04-22 Thread Steve Holden
I realize it is way past time I publicized this conference to the Django users group - sorry for the omission. Open Django is a series of three conferences, so we hope to have at least one that's reasonable for you to travel through. http://opendjango.com/ There's less than a month to go now,

Re: Django (and Python) speakers

2012-02-08 Thread Steve Holden
es attention as well as the general progress towards Python 3. > > > I'd like to hear Jeff Croft talk about design and open source. > > > I fear I've given too many topics, but there you go. :) > > > On Tue, Feb 7, 2012 at 5:00 PM, Steve Holden <holden...@gmail.com>

Re: Django (and Python) speakers

2012-02-08 Thread Steve Holden
d PyPy is an exciting prospect. Few better qualifies to speak on that topic than Alex Gaynor, I'd have said. > I'd like to hear Jeff Croft talk about design and open source. > > I fear I've given too many topics, but there you go. :) > Hey, I asked! Thanks again for your enthusiastic input! re

Django (and Python) speakers

2012-02-07 Thread Steve Holden
I don't know if readers have heard the news that PyCon has closed registration early because it is full. So you may be interested in six new conferences, three about Python and three about Django, that we have just announced: http://www.prweb.com/releases/2012/1/prweb8945991.htm With this

Bumper DjangoCon this year

2011-08-23 Thread Steve Holden
DjangCon so magnificently. For those of you who are going, I look forward to seeing you there. regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- You received this message because you are subscribed to the Google Groups

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-06-23 Thread Steve Holden
ango-users+unsubscribe@** > googlegroups.com <django-users%2bunsubscr...@googlegroups.com>. > For more options, visit this group at http://groups.google.com/** > group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en> > . > > -- Steve Holden+1

DjangoCon US 2011: Call for Tutorial Proposals

2011-06-02 Thread Steve Holden
been deployed please send your proposals to steve at holdenweb dot com. I will also be happy to receive suggestions from non-authors about the topics people would like to see offered, either in reply to this email or to the address above. regards Steve -- Steve Holden+1 571 484 6266 +1 800

Re: django 1.1 performance versus django 1.2 performance

2011-05-03 Thread Steve Holden
s" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Steve

Re: DjangoCon US 2011

2011-03-31 Thread Steve Holden
I have already started nagging people about this. It's only just over five months to go, and it's definitely time the CfP went out. Expect to see movement in the next two weeks. Regards Steve On Mar 31, 2011 6:19 PM, "Shawn Milochik" wrote: > It's a bit early, in the year,

Re: django-admin-py?

2011-03-19 Thread Steve Holden
Last I looked (though it's been a,while) the Django install dropped django-admin.pt somewhere on the executable path. How did you install Django? Regards Steve On Mar 17, 2011 5:05 PM, "gh" wrote: > Hi > > I´m new to django and maybe this is a simple thing but I need some >

Re: django advent for 1.3

2011-02-02 Thread Steve Holden
:-) -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group

Re: django/contrib/auth/models.py goes nuts

2010-12-23 Thread Steve Holden
On 12/23/2010 11:54 AM, John Fabiani wrote: > On Thursday, December 23, 2010 12:39:44 am bruno desthuilliers wrote: >> On 23 déc, 06:33, John Fabiani wrote: >> >> (snip) >> >> John, may I suggest that instead of trying whatever comes to mind and >> wonder what happens, you

Re: Custom SQL questions

2010-12-19 Thread Steve Holden
On 12/19/2010 3:48 PM, Maksymus007 wrote: > you get array of arrays. Technically, in strict Python terms what you get is a list of tuples. Each element of the list is a tuple where each column from the query provides an element of each tuple. > First array contains rows. Every row is just an

Re: registering app level signal handlers

2010-12-16 Thread Steve Holden
On 12/16/2010 6:28 PM, Graham Dumpleton wrote: > Are you talking about UNIX process signals? > He's almost certainly talking about Django signals. I've never seen a definite recommendation as to how to do things exactly once early on in the life of your server process, so I am afraid I cannot

Re: Help for for loop

2010-12-10 Thread Steve Holden
On 12/9/2010 12:24 PM, Cal Leeming [Simplicity Media Ltd] wrote: > Uh, you *might* be able to use: > > {% for x in mylist %} > {% if x % 2 %} > yay: {{x}} > {% else %} > nay: {{x}} > {% endif %} > {% endfor %} > Blerch! This is a really good indication of why it's

Re: django to php

2010-11-30 Thread Steve Holden
On 11/30/2010 9:15 PM, Kenneth Gonsalves wrote: > On Tue, 2010-11-30 at 13:53 -0500, CLIFFORD ILKAY wrote: >>> I have a webapp created in django. Now I want to convert the entire >>> code into PHP. Is it possible?? If yes, how? >> >> I have a Porsche that I'd like to trade for an ox cart. Any

Re: If logged in show X, if not Y

2010-11-28 Thread Steve Holden
On 11/28/2010 6:50 PM, robos85 wrote: > Hi, > I've read about {% if user.is_authenticated %} and m template is going > to have the same structure, but some block will have different content > for logged users. Additionally there will by some more buttons. > I wondered if there's some other way to

Re: WEB SERVICE IN DJANGO USING ZSI

2010-11-27 Thread Steve Holden
On 11/27/2010 10:37 AM, sami nathan wrote: > But i am not havin python intreptor i use my command prompt this way > Microsoft Windows [Version 6.1.7600] > Copyright (c) 2009 Microsoft Corporation. All rights reserved. > > C:\Users\ezhil>python > Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC

Re: PIL issue opening an image file

2010-11-26 Thread Steve Holden
On 11/26/2010 9:58 AM, Sithembewena Lloyd Dube wrote: > Thanks for breaking this down, Tom. I'll play around with it and see if > I'm grasping this. For the record, while it might have seemed to you that Bruno was being "snooty", in fact he was probably (I have no direct evidence) simply

Re: Static files ...

2010-11-21 Thread Steve Holden
On 11/21/2010 10:52 AM, jonno wrote: > I think I'm getting there, and thanks Steve! I've switched my > directory structure around a bit, but I'm now able to make changes > with predictable results. Still no image, however, but I can't be too > far off. I'll return to the context processor thing

Re: A Model to store links to other models

2010-11-19 Thread Steve Holden
On 11/19/2010 8:51 PM, Micah Carrick wrote: > I'm having trouble coming up with a pretty solution to a seemingly > simple task. I'm relatively new to Django. > > I want to allow the end user to control various lists of links on the > site used for navigation. The admin should allow the creation

Re: Models not being updated when accessed by multiple processes

2010-11-19 Thread Steve Holden
On 11/19/2010 5:35 PM, Iqbal Abdullah wrote: > Hi, > > This might be a gotcha on the models side, but I would like > clarification and guidance on how to write the code better concerning > multiple process accessing the same data via models. > > I have a backend script that runs the following

Re: Static files ...

2010-11-19 Thread Steve Holden
On 11/19/2010 1:56 PM, jonno wrote: > And I have: > > {% load staticfiles %} > {% get_staticfiles_prefix as STATIC_PREFIX %} > > at the top of my template. Sorry to trouble all with this again! > Thanks for any help -- Jon. PS: You might want to consider injecting STATIC_PREFIX into your

Re: Static files ...

2010-11-19 Thread Steve Holden
On 11/19/2010 1:56 PM, jonno wrote: > Hello, > > Sorry not to have replied for so long, but I thought I'd better just > try and dig through it! In the meantime, I have upgraded to Django > (1, 3, 0, 'alpha', 1) and follow the instructions in the development > documentation. I am just trying to

Re: OT: getting strange attempted gets

2010-11-16 Thread Steve Holden
On 11/16/2010 10:52 AM, Scot Hacker wrote: > On Nov 15, 8:45 pm, Steve Holden <holden...@gmail.com> wrote: >> >> Perhaps he did, but that's no reason to believe him until we know that >> his assessment of the situation is likely to be realistic. Don't forget >> t

Re: OT: getting strange attempted gets

2010-11-15 Thread Steve Holden
On 11/15/2010 12:03 PM, Scot Hacker wrote: > On Nov 14, 11:25 am, Federico Capoano > wrote: >> > No one is attacking your server, that's just the django server telling >> > you what's going on in your app (when you perform any action the >> > server logs it). > Right,

Re: Automatically assume "models." prefix in models.py

2010-11-14 Thread Steve Holden
On 11/13/2010 11:20 PM, James wrote: > Forgive a django newbie... > > Maybe I'm the laziest person in the world, but sometimes I get tired > of typing "models.WhatEver" for every single model I have to write. Is > there anyway a shortcut could be added that would 'assume' the > 'models.' prefix

Re: Create User from an User extension

2010-11-12 Thread Steve Holden
On 11/12/2010 1:31 PM, Karim Gorjux wrote: > Hi all, I successfully extended the User as described in the > authorization documentation. Now I would like to use and edit the User > and my class Persona not like two entity but just one. > > When I want to create a Persona, I have also to create a

Re: Django 1.3 alpha 1 released

2010-11-11 Thread Steve Holden
On 11/11/2010 5:04 PM, Russell Keith-Magee wrote: > It won't be 100% frozen until the final release Shouldn't that be "first beta"? regards Steve -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this message because you are subscribed to the Google Groups "Django

Re: SELECT * FROM `student` WHERE mark=(select max(mark) from student)

2010-10-26 Thread Steve Holden
On 10/26/2010 12:40 PM, Phlip wrote: > Note that "isabelle_item" appears twice. We are following the auditing > rule "always write new records to change data - never edit previous > records". Someone edited isabelle_item's payload data (not shown), so > we add a new record without touching the

Re: how to use tkinter widget in django

2010-10-26 Thread Steve Holden
On 10/26/2010 8:50 AM, jimgardener wrote: > thanks for the replies.. > I am wondering if javascript is the only alternative if I want to use > such a custom widget. > If anyone knows about any such python widget please tell me.. > regards > jim > Jim: The reason you can forget using Python is

Re: how to use tkinter widget in django

2010-10-26 Thread Steve Holden
On 10/26/2010 7:17 AM, jimgardener wrote: > is it possible to use the sliderlike Scale widget from tkinter in > django?I am coding a web app where I need to get a numerical value > entered by the user.I thought ,instead of asking the user to enter a > value in a textfield ,I would provide a slider

Re: What does an ideal django workflow setup look like?

2010-10-25 Thread Steve Holden
On 10/25/2010 2:02 AM, Kenneth Gonsalves wrote: [shacker] >> Another approach to this problem: >> >> settings.py IS in version control and includes settings >> that are universal to all environments (local dev, staging, >> production), but has dummy info or empty strings for >> passwords or paths

Re: call more than one view action from an uri path?

2010-10-21 Thread Steve Holden
On 10/21/2010 2:24 PM, ringemup wrote: > #urls.py > #note: untested regex, but a regex should be able to do this > url('^((\w+)/(\d+)/)+$', 'myview', ...) > Oops. I omitted to point out (though the OP picked it up) that a repeated group in a regex only leaves behind its last match in the match

Re: call more than one view action from an uri path?

2010-10-21 Thread Steve Holden
On 10/21/2010 2:24 PM, ringemup wrote: > You can't do something like this? > > #urls.py > #note: untested regex, but a regex should be able to do this > url('^((\w+)/(\d+)/)+$', 'myview', ...) > > #views.py > # note: this is pseudocode > def myview(request, *args, **kwargs): > # iterate

Re: call more than one view action from an uri path?

2010-10-21 Thread Steve Holden
On 10/21/2010 9:36 AM, Phlip wrote: > On Oct 21, 5:26 am, Scott Gould wrote: > >> What's your use case? Are "nest, pest and rest" always "nest, pest and >> rest" -- or could they be "rest, pest and nest", or "nest, best, and >> rest"? > > Tx but - the use case is we can't do

Re: /admin list help ASAP

2010-10-20 Thread Steve Holden
On 10/20/2010 11:55 PM, Mike Dewhirst wrote: > On 21/10/2010 1:24pm, Bobby Roberts wrote: >> hi all. I have two models setup let's call them >> >> Gallery >> Photos >> >> photos has a field as such: >> >> GalleryId = models.ForeignKey('Gallery', verbose_name=_('Gallery Id'), >>

Re: about site price

2010-10-20 Thread Steve Holden
On 10/20/2010 4:17 PM, Lic. José M. Rodriguez Bacallao wrote: > hi folks, I have a client that need to develop a bet site like this: > http://www.webapuestas.com/ > the problem is that I am new in the business and I don't know how much > money can I ask for a > this work, can someone help me and

Re: Displaying a template table using a query set

2010-10-20 Thread Steve Holden
On 10/20/2010 7:58 AM, Pranav wrote: > > > On Oct 20, 4:13 pm, Daniel Roseman wrote: >> On Oct 20, 8:29 am, Pranav wrote: >> >> >> >> >> >>> I'm trying to display a table in template using the result retrieved >>> from a query set, but i get problem

Re: Different logins in same browser session and login_required

2010-10-20 Thread Steve Holden
On 10/20/2010 5:20 AM, PyMan wrote: > > > On 20 Ott, 10:28, Daniel Roseman wrote: >> On Oct 20, 8:11 am, PyMan wrote: >> Firefox has long had its "profile" functionality. >> firefox -no-remote -ProfileManager >> You can create

Re: MaxValueValidator to validate a model

2010-10-18 Thread Steve Holden
On 10/15/2010 9:18 PM, refreegrata wrote: > Now works. > validators=[MaxValueValidator(Decimal('14.5')) > > But I must to do an explicit declaration Decimal('14.5'). > > Somebody knows why? Because only decimal numbers can give exact comparisons to arbitrary decimal values. You would not want

Re: Escaping text for raw SQL?

2010-10-12 Thread Steve Holden
On 10/12/2010 4:34 PM, Nick Arnett wrote: > > > On Tue, Oct 12, 2010 at 9:00 AM, Javier Guerra Giraldez > > wrote: > > On Tue, Oct 12, 2010 at 10:46 AM, Nick Arnett > wrote: > >

Re: trouble creating first project

2010-10-12 Thread Steve Holden
On 10/12/2010 4:02 PM, Robbington wrote: > I mention this because some one has said that it is to do with your > Python path, and this isnt true, its to do with the way you installed > django in the first place. It's nothing to do with the Python path (which is held in sys.path, and is

Re: trouble creating first project

2010-10-11 Thread Steve Holden
On 10/11/2010 1:47 AM, Phil wrote: > Hi, > > I am having trouble creating my first project. I am running the latest > version of Ubuntu and I installed Django from svn, when I run 'import > django' i get no errors back so I assume its installed OK. > > When I run 'django-admin.py startproject

Re: I can't select day with calendar widget

2010-10-09 Thread Steve Holden
As others have observed, I see the correct dates for holidays I created, including 2010-10-10. regards Steve On 10/9/2010 7:46 AM, Rene Vielma wrote: > Hello > > I've upload the sandbox project whit develop server to > http://200.63.96.245:8000/admin/ > user and p: test > > For you can check

Re: dictionary doesn't get properly updated

2010-10-07 Thread Steve Holden
you are using Apache as a front-end then, as I understand it, >> there are no guarantees about that. >> -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Ho

Re: dictionary doesn't get properly updated

2010-10-07 Thread Steve Holden
On 10/7/2010 10:20 AM, jimgardener wrote: [...] > > When the view add_new_threadobj() is executed a couple of times,this > is the print output > adding for the first time, > tm= > TM::before::threads: {} > TM:: add_thread()::added=threadname1 > TM::after::threads:

Re: Possible backwards incompatibility introduced by change 12950 (in upgrade from 1.1.1 to 1.1.2)

2010-10-07 Thread Steve Holden
On 10/7/2010 3:24 AM, Jyrki Pulliainen wrote: >> So -- my original analysis still stands -- albeit for slightly more >> > complex reasons. The issue here is that your code was previously in >> > error, and now we're a little more vigilant about reporting the >> > potential problem. > Now that

Re: data synchronization

2010-10-06 Thread Steve Holden
On 10/6/2010 9:17 PM, hooda_28 wrote: > good day django peeps, i don't know if this is the right place to post > here but im giving it a try, > > website A is a publishing company, then website B is an agent of > website, as an agent some of the orders from website B are given to > website A.

Re: admin site not working, problem with urls.py?

2010-10-06 Thread Steve Holden
enable the admin: >(r'^stories/$','ccu_gen.views.all_stories'), >(r'^stories/(?P\d+)/$', 'ccu_gen.views.one_story'), >(r'^admin/', include(admin.site.urls)), > > ) > > stories works fine, but for the admin

Re: Django app that uploads media files and servers them through a view?

2010-10-06 Thread Steve Holden
On 10/6/2010 7:17 AM, Kenneth Gonsalves wrote: > On Thu, 2010-09-30 at 04:20 -0700, Stodge wrote: >> Is anyone aware of a Django app that lets you upload media files (not >> necessarily in the admin site) but serves them through a view instead >> of as static files via the web server? I need to

Re: Django Registration password reset problem

2010-10-05 Thread Steve Holden
On 10/5/2010 4:45 PM, Joel Klabo wrote: > Need to bump this, sorry. I don't get it. > > On Oct 5, 1:04 pm, Joel Klabo wrote: >> This is the error and location of the problem:http://gist.github.com/612210, >> I can't see what it's looking for. It seems like I could hard code

Re: treating different versions of website urls as one

2010-10-05 Thread Steve Holden
page /data will be the same. > .This is why I need to consider the validation for duplicates > thanks for the replies > harry > > On Oct 5, 10:00 pm, Steve Holden <holden...@gmail.com> wrote: >> What aboutwww.mysite.com/default.asp?It might be helpful if you could >>

Re: treating different versions of website urls as one

2010-10-05 Thread Steve Holden
What about www.mysite.com/default.asp? It might be helpful if you could give us a little more insight into the real requirement here, rather than a technical question based on some interpretation of the requirement. regards Steve On 10/5/2010 12:57 PM, Alec Shaner wrote: > Definitely sounds

Re: Any way to select which Model to initialize without resorting to "if-elfi" statements?

2010-10-03 Thread Steve Holden
On 10/3/2010 4:04 AM, Andy wrote: > I need to model many different product categories such as TV, laptops, > women's apparel, men's shoes, etc. > > Since different product categories have different product attributes, > each category has its own separate Model: TV, Laptop, WomensApparel, >

Re: Django documentation search not working

2010-10-02 Thread Steve Holden
On 10/2/2010 4:45 PM, NoviceSortOf wrote: > I used to be able to go to the following link and > seach django documents. > > http://docs.djangoproject.com/en/dev//search/ > >>From there I could search anything from 'widgets' to > 'login()' and find the related document/page discussion that time.

Re: Django website down?

2010-10-02 Thread Steve Holden
On 10/2/2010 5:50 PM, diogobaeder wrote: > Hi, guys, > > Is the Django website down? I've been trying to access it for days, > but I just can't get in. Has anyone here been able to access it > normally these days? > > Thanks! > > Diogo >

Re: Error

2010-10-01 Thread Steve Holden
On 10/1/2010 1:12 PM, Tsolmon Narantsogt wrote: > Hi there > > i got this error > > *Exception RuntimeError: 'maximum recursion depth exceeded while calling > a Python object' in > help me > Was this *really* the only output you got? [I suppose it's possible, given the nature of the error].

Re: Full Text Search

2010-09-30 Thread Steve Holden
On 9/30/2010 8:26 PM, Nick Arnett wrote: > Brain is mush, though. Obviously, otherwise you'd have left it in the hope that someone else would reply with an answer before you recovered consciousness. Great heavens, this community is *so* anxious to help. Kudos for trying with a frazzled brain!

Re: Need opinion for an object permission rule backend

2010-09-30 Thread Steve Holden
On 9/30/2010 1:55 PM, Miguel Araujo wrote: > Hi Michael, > > I have been looking at your project, django.extauth and I have to say I > really like its architecture and permission handling. I have to say that > my rule system is kind of the same thing of your role system, except > mine is less

Re: DjangoCon 2011

2010-09-30 Thread Steve Holden
On 9/30/2010 10:36 AM, sserrano wrote: >> I live in Argentina, If I wanted to go to the DjangoCon in >> Portland, it would require a Bus to Buenos Aires, then take an >> international flight to a US mayor city and then another to reach >> Portland, overall I would be travelling more nearly an

Re: url not going to view

2010-09-30 Thread Steve Holden
Just as "^" means "start of string" so "$" mean "end of string", so "^$" means a string where the end is next to the beginning. You can read the Python documentation for the "re"module for more insight into all this. regards Steve On 9/30/2010 11:20 AM, Bradley Hintze wrote: > LOL, let me

Re: template syntax errors in production admin site (version problem?)

2010-09-30 Thread Steve Holden
On 9/30/2010 9:50 AM, bobbymanuel wrote: > Hi all - i've got a mysterious problem with my admin templates and I > think its a version problem but can't figure it out. > > The contrib.admin templates seem to be throwing some very crazy > TemplateSyntaxError(s) in many of the admin templates when i

Re: UnicodeEncodeError

2010-09-29 Thread Steve Holden
y advices for where to look for this to happen ? > > I have a basic 'Bien' class and a *very basic* 'Image' class (with a > ForeignKey to Bien). > BienAdmin has a ImageInline and that's all. > > I am a bit confused.. > > cheers, > _y > > > > On Sep 29, 7

Re: UnicodeEncodeError

2010-09-29 Thread Steve Holden
It sounds to me as though the image is being transmitted with the wrong MIME Type. Image files are binary data, but something in your application is treating is as a string. regards Steve On 9/29/2010 1:05 PM, werefr0g wrote: > Hi, > > You should check that your file is actually utf-8 encoded

Re: What is the correct way to copy an object from one model to a similar model?

2010-09-29 Thread Steve Holden
On 9/29/2010 5:25 AM, Daniel Roseman wrote: > On Sep 29, 6:06 am, Yo-Yo Ma wrote: >> I have two models that are identical in structure except one has 2 >> extra fields. The second one is used for record keeping and is never >> edited by users. The system takes the first

Re: How to get an ajax call to return both QuerySet and paging info in Django

2010-09-28 Thread Steve Holden
On 9/28/2010 10:42 PM, Dmitrij wrote: > I am trying to implement paging across ajax calls. The page should not > refresh when the user wants to see the next x num of results. > > Here is my problem. Returning the QuerySet is super simple. I just do > (sumaJson is custom) > > data =

Re: Model field choices

2010-09-28 Thread Steve Holden
On 9/28/2010 10:39 PM, Derek wrote: > I have a model which has choices specified for the "offer_type" field: > > class Coupon(models.Model): > offer_types = ( > (1, 'Percentage Off'), > (2, 'Amount Off'), > (3, 'Free'), > ) > > business

Re: DjangoCon 2011

2010-09-28 Thread Steve Holden
et those costs? I'm finding it difficult to imagine how that could practically be done. regards Steve > On Sep 28, 8:54 am, Steve Holden <holden...@gmail.com> wrote: >> Without wishing to seem non-responsive, can I just point out that we >> can't keep extending the searc

Re: DjangoCon 2011

2010-09-28 Thread Steve Holden
Without wishing to seem non-responsive, can I just point out that we can't keep extending the search indefinitely. First of all, we need to make a decision reasonably quickly.Secondly, these venue searches take time. While it costs nothing to "toss something out there", there *are* costs involved

Fwd: Re: DjangoCon 2011

2010-09-28 Thread Steve Holden
On 9/28/2010 1:19 AM, Kenneth Gonsalves wrote: > On Mon, 2010-09-27 at 22:51 -0400, Steve Holden wrote: >> I'd just like to briefly report back on the inquiries Nancy and I have >> been making into East coast venues for DjangoCon 2011. > > just curious - why a ho

Re: DjangoCon 2011

2010-09-28 Thread Steve Holden
There seemed to be a general feeling that a change of venue should head Eastwards rather than South. So we are looking primarily for East coast locations as an alternative to Portland for 2011. regards Steve On 9/27/2010 11:49 PM, David Zhou wrote: > Is the bay area right out for cost reasons?

Re: DjangoCon 2011

2010-09-27 Thread Steve Holden
On 9/27/2010 11:02 PM, Shawn Milochik wrote: > > I live on the east coast, but the past two DjangoCons have caused me > > to fall in love with Portland. It would be a treat for me to get to > > go there again in 2011. > > > > In fact, if it's in Portland next year I plan to make a family > >

DjangoCon 2011

2010-09-27 Thread Steve Holden
I'd just like to briefly report back on the inquiries Nancy and I have been making into East coast venues for DjangoCon 2011. This is not a final answer, simply reassurance that things have actually been happening. Sadly, New York is out for 2011. Those (very few) venues whose costs are low

Re: Where do you put your business logic in django? Organizing big projects in django.

2010-09-27 Thread Steve Holden
On 9/27/2010 11:31 AM, Thomas Weholt wrote: > On Mon, Sep 27, 2010 at 4:52 PM, bruno desthuilliers > <bruno.desthuilli...@gmail.com> wrote: >> On 27 sep, 12:55, Thomas Weholt <thomas.weh...@gmail.com> wrote: >>> On Mon, Sep 27, 2010 at 12:40 PM, Steve Holden &l

Re: Where do you put your business logic in django? Organizing big projects in django.

2010-09-27 Thread Steve Holden
On 9/27/2010 4:57 AM, Thomas Weholt wrote: > On Mon, Sep 27, 2010 at 10:38 AM, bruno desthuilliers > wrote: >> On 27 sep, 09:08, MrMuffin wrote: >>> Where do you put your business logic in django? >> >> Depends on the definition of

Re: Python unexpectedly quit

2010-09-24 Thread Steve Holden
On 9/24/2010 2:23 PM, Axel Bock wrote: > Anything wrong here? I must say, the framework for the people "with > deadlines" is giving me a *really* hard time so far :) . Maybe you aren't in enough of a hurry? And, by the way, it's *perfectionists* with deadlines. Maybe you aren't being picky

Re: Why Django Apps Suck

2010-09-22 Thread Steve Holden
On 9/22/2010 8:36 AM, Russell Keith-Magee wrote: > Lastly, I can't deny that reusability has it's price. Engineering an > application to be reusable takes more effort and planning than > building an application as a once-off. Well, Unix certainly came a long way with this philosophy > The aim

Re: ManyToManyField to Phones model for enter phones manually (not select from list)

2010-09-22 Thread Steve Holden
On 9/22/2010 4:30 PM, Anton Danilchenko wrote: > Ihave found solution. > > I have changed only Form class: > > 1) added field for show text input field > phones = forms.CharField() > > 2) I have create in my Form instance method clear_phones() where I > check phones and save it all to

Re: multiple servers one database

2010-09-20 Thread Steve Holden
On 9/20/2010 11:11 AM, Tim Arnold wrote: > hi, I have two machines for a Django-powered site and they are setup > to be duplicates to provide redundancy. Each one runs its own apache > instance and accesses the same Django apps on a shared disk. > > The problem I have is that I need a single

Re: {% url %} template and javascript Get with callback

2010-09-19 Thread Steve Holden
On 9/19/2010 12:52 PM, Ben Kraft wrote: > I'm trying to do a javascript post to an internal api and use a > callback to process the JSON result. I'm referencing the api using, > > {% url %}, > > which returns a path url relative to my domain ( /api/... instead of > http://localhost/api/... for

Re: Relationship question: What do I do wrong?

2010-09-18 Thread Steve Holden
On 9/18/2010 3:23 PM, werefr0g wrote: > Hello, > > I was quite laconic previously in order to spare you my "english". Sorry > if you found this rude. > > Well, you describe the relashionship from one model perspective (Meal) > while setting your field (side1).By setting Field side1 in Meal as >

Re: need help with admin list images

2010-09-18 Thread Steve Holden
Read up on the concept of "safe" markup: http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#filters-and-auto-escaping regards Steve On 9/18/2010 6:16 PM, Bobby Roberts wrote: > only thing that does is return this: > > width="65"/> > > > > I need the image to show rather than

Re: Django template : For Loop

2010-09-05 Thread Steve Holden
On 9/5/2010 12:29 PM, Jagdeep Singh Malhi wrote: > >> If these objects are lists, say list1 and list2, in your view just >> create a single object made up of pairs of elements from the original lists: >> >>values = zip(list1, list2) >> >> Then you can pass that item to your template and

Re: Django template : For Loop

2010-09-05 Thread Steve Holden
On 9/5/2010 7:54 AM, Jagdeep Singh Malhi wrote: >> I have question about "for loop" used in Templates the correct >> Syntax of using For Loop in template is : {% for X in VALUE %} >> >> but I want to use For loop with two value Is it possible to use two >> value in one loop? For example : {% for

Re: Getting last or max "id" value from database

2010-09-05 Thread Steve Holden
On 9/5/2010 3:12 AM, Jagdeep Singh Malhi wrote: > I try to get the max value of id from database using max() function > but a face this error. > { > TypeError at /add_db/ > > 'builtin_function_or_method' object is not iterable > > Request Method: POST > Request URL:

DjangoCon Jobs Board

2010-09-04 Thread Steve Holden
Looking to hire someone? Looking to get hired on? DjangoCon wants to help. If you are an employer looking for staff (and whether or not you will be at the conference), please sent a letter- or A4-sized original (PDFs preferred) document that we can print out and attach to the jobs board for

Re: what to do instead of adding to Query.extra_where ?

2010-09-02 Thread Steve Holden
On 9/2/2010 1:44 AM, Paul Winkler wrote: > Hah. That was a pretty long message relative to how quickly I found > the answer myself :-p > Sorry for the noise. > > For posterity, extra(where=...) is indeed the solution. I overlooked > the obvious: > the class I was trying to fix is itself a

Re: How to display many-to-many field as a list of text input fields?

2010-09-02 Thread Steve Holden
On 9/2/2010 4:27 PM, adelein wrote: > When I display the ToolBoxEditForm it uses a multiple select field. > But what I want is a form that lets the user edit each tool he has in > the toolbox as a text field. I cant figure out how to do this with the > many-to-many field. > A many-to-many

Re: multiple oracle database queries in one request problem

2010-09-01 Thread Steve Holden
On 9/1/2010 5:54 PM, Reinout van Rees wrote: > On 09/01/2010 02:00 PM, Reinout van Rees wrote: >> Hi, >> >> I'm deploying a site on windows with oracle (and I don't know either of >> them well). Simple apache+wsgi setup for now. > > I'll have to test it out tomorrow when I'm near the windows

Re: fetching values from model

2010-09-01 Thread Steve Holden
On 9/1/2010 9:13 AM, Pradnya wrote: >> ok. Is there any way I can load the model inside HTML template? >> What is {% load %} tag all about? >> The {% load %} tag is for loading custom tags. Nothing to do with accessing the database. Why do you find it desirable to load records in the template?

Re: potential issue re in memory django file uploading.

2010-08-30 Thread Steve Holden
ands up in the air like you just don't care! > ... >>> blahblahblalbha sssh listen. > ... > > On Tue, Aug 31, 2010 at 9:42 AM, Steve Holden <holden...@gmail.com> wrote: > >> Frankly, at this stage you can stick it up your ass and set fire to it >> as far as I'm concerned. I

Re: potential issue re in memory django file uploading.

2010-08-30 Thread Steve Holden
On 8/30/2010 9:09 PM, dave b wrote: >>> Secure by default please! >> >> That's an easy epithet to throw around, but I disagree that it is >> appropriate here. "Security" doesn't mean "stops the user from making >> mistakes". > > Look like wsgi, apache2 and django all on ubuntu PLACE no size

Re: Overriding flatpages class meta

2010-08-29 Thread Steve Holden
verbose_name_plural = "New_name" > > > > On Aug 26, 4:39 am, Steve Holden <holden...@gmail.com> wrote: >> On 8/25/2010 8:26 PM, Goran wrote:> I need another verbose_name_plural for >> Flat pages so i need to >>> overrideclassmetafor it right? How ca

Re: Unable to add two Numbers

2010-08-29 Thread Steve Holden
On 8/29/2010 1:20 PM, Harbhag Singh Sohal wrote: > i am the new user of Django, i try the tutorials of django wesite > http://docs.djangoproject.com/en/1.2/intro/tutorial01/ > > > > Now i create a application in django to add two numbers, After filling form. > and store the values of two

Re: potential issue re in memory django file uploading.

2010-08-29 Thread Steve Holden
On 8/29/2010 8:07 AM, dave b wrote: >> An attacker could also assemble a powerful explosive device and detonate >> it near enough your hosting service to take your site down. What >> counter-measures are you going to take against that? > > Good question. I have two cats and they like to lick

Re: potential issue re in memory django file uploading.

2010-08-29 Thread Steve Holden
On 8/29/2010 7:43 AM, dave b wrote: >> OK, so you don't believe the advice you are getting, which is that of >> the many issues a Django sit will face this is a relatively low >> probability attack. That's fair enough - a vulnerability is a >> vulnerability, after all, no matter how improbable,

Re: potential issue re in memory django file uploading.

2010-08-29 Thread Steve Holden
On 8/29/2010 12:05 AM, dave b wrote: > On 29 August 2010 13:33, Graham Dumpleton <graham.dumple...@gmail.com> wrote: >> >> >> On Aug 29, 1:17 pm, dave b <db.pub.m...@gmail.com> wrote: >>> On 29 August 2010 08:28, Steve Holden <holden...@gmail.com&

Re: potential issue re in memory django file uploading.

2010-08-28 Thread Steve Holden
On 8/28/2010 6:10 PM, Graham Dumpleton wrote: > On Aug 28, 11:21 pm, dave b wrote: > So obviously my proposed attack is to simply say "content length is > tiny" and "this file is actually HUGE". [...] > All up, I would suggest you are getting worked up over nothing.

  1   2   3   4   >