Re: Simple question from a Django newbie.

2007-12-31 Thread Jeff Anderson
I am sure it is just one of those "doh!" issues where it is something small, hiding in plain site. I just had one of those "doh!" moments, and I stared at the code for several minutes, and didn't see the blatent syntax error causing it. I suggest you take the paths out, close the file, eat lunch

How to load test a website

2007-12-31 Thread shabda
This is not really specific to Django, still. How can I load test a website. I have a Django website, and I want to see how many users its can serve concurrently, and how many pages can it generate each second. How can I do this? (I am not looking to profile it at this moment, I just want to see

Re: Simple question from a Django newbie.

2007-12-31 Thread Jeff Anderson
I am not sure exactly what you mean by 'cross-linking' files. Are you referring to when a css references an external file, like a background image? keep in mind that the relative paths that you need to put into static files depend on how the paths appear to the user agent, not how they appear on

Re: Getting related data...

2007-12-31 Thread Todd O'Bryan
There's probably an easier/more efficient way to do it, but you can do services = [] for p in Profile.objects.all(): services += p.service_set.all() Todd On Dec 31, 2007 7:07 PM, ocgstyles <[EMAIL PROTECTED]> wrote: > > Hi All, > > I'm trying to figure out how to accomplish something using

Re: WTF - SPAM

2007-12-31 Thread Jed Drury
Hello Sean, LOL. You rock! I'm tired of getting spammed by this group as well. They all talk about how their religion is one of "peace" but it is BS. I lived in Saudi Arabia for 2 years and I saw 1st hand that they are hypocrites and killers. To make it worse, I have to put up with their damn

Re: How to create an "iffirst" tag?

2007-12-31 Thread Ned Batchelder
Malcolm, thanks for continuing this (I was away for a few days). I was thinking about the forloop internals as well, and it seems to me that there's no reason the forloop dictionary needs to be completely new each time around. Why not change forloop to create a new dictionary before the

Getting related data...

2007-12-31 Thread ocgstyles
Hi All, I'm trying to figure out how to accomplish something using Django's database API, that I can easily do with SQL. Here's my models: class Service(models.Model): name = models.CharField(max_length=50) class Profile(models.Model): user = models.ForeignKey(User) service =

Simple question from a Django newbie.

2007-12-31 Thread randomNic39292
Hi, I am teaching myself Django and so far everything has been fun and easy. But now I am stumped by something I hope is obvious to everybody else. I have Django configured to serve static files when in debug mode. It works with images. But I am running into problems with js and css files that

Re: how to deal with inherited template context variables?

2007-12-31 Thread Brian Costlow
Sam, Am I missing something, or is there a reason you don't just factor out the common bits into a function or set of functions in views.py, or a library it imports? For a couple of simple things we do on multiple sites (e.g. we do friendly names including Title and Suffix etc, from data in the

The computer of the most sophisticated science and technology, in our websites

2007-12-31 Thread yoyo00
Dear ladies and gentlemen: Welcome to visit our shopping web. Our products (notebook PC,digital camera,plasma and LCD TV,digital DV,Motos,phones,Mp3/4 and more) are at trade price, with the purpose of increasing the number of customers cooperating with our company in the long run. Anyone

Override widget for TextFields on Admin site

2007-12-31 Thread Justin Piper
Is there an easy way to get the Admin site to use an for a TextField rather than a ? In my model I have fields that do not have an upper bound on its length, so CharField is not appropriate, but do not benefit from having a multi- line edit box. It looks like the Admin site will call the

Re: Help with form-builder application

2007-12-31 Thread Doug B
> When I tried to run the command (python manage.py syncdb), the table cannot > be created. The SQL command are just > > Begin; > Commit; Your form definitions have nothing to do with the database. They are completely separate things. There are a few helpers that combine the two for

Re: File Upload perfomance

2007-12-31 Thread Brian Rosner
On 2007-12-30 20:53:34 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> said: > > Hello, > > Django is looking promising as a web app plattform for us. > We want to build an Webapp which major function is to allow users > upload files securely and fast. > File upload speed will be a major

science:

2007-12-31 Thread hot sex
science: would you like science project notes and collect more science details open a www.myproo.blogspot.com wish you happy new yearscience: would you like science project notes and collect more science details open a www.myproo.blogspot.com

get knowledge about islam...

2007-12-31 Thread Islam Message
*Dear Sir/Madam... let me take two minutes from your time to tell you about Islam... I will be happy to receive your questions and i promise that i will search in Al-Quran and Al-sunnah ( Prophet Mohammad speech ) to reply on your questions* Introduction to Islam The literal meaning of Islam is

Showing a WSGI Application in a view

2007-12-31 Thread Tane Piper
Hi folks, Have come a bit of a cropper with this one: We're working on an application that is a front-end project manager for Mercurial source control software. Most of the application is our own custom views, however one thing we'd like to keep is using mercurial's own hgweb application to

Blogango - a blog software written with django

2007-12-31 Thread shabda
Hi everyone, Its almost the new year here, so Happy new year! Let me just say a big thanks to every one on the django-users list, who helped me with most of my questions, many of them inane. In particular James Bennet and Malcolm Tredinnick were very helpul. Django wont be as much fun without the

www.replicabagwholesaler.com sell replica and copy designer handbag, contact summer ([EMAIL PROTECTED])

2007-12-31 Thread hsshopping123
www.replicabagwholesaler.com is experienced wholesaler and provide dropship service to worldwide,no min order,accept credit card.We have lots regular customers from all worldwide(UK,USA,AU,EUROPE COUNTRY,SOUTH AFRICA and more),most of them are wholesaler/ dropshipper,specially EBAY RESELLER or

Re: Help with form-builder application

2007-12-31 Thread Jeff Anderson
Actually, I just got an idea for a simple website, and it would need the same thing accomplished. I haven't had any time to look into it yet, but I know that python has the ability to generate classes and methods on the fly. I have never used it, but I am guessing it will be possible to create

Help with form-builder application

2007-12-31 Thread Vincent Woon
Hi, I'm new to Django and Python and I would appreciate if anyone could help me out here. I'm trying to create a form-builder program, where users can select the form fields they want (such as textbox, string, or datefield etc) to create a master form which they can send out to others and track