~*~ Sport Cars Of the Year 2007~*~

2006-12-21 Thread Marry4U
*Best Sport Cars of the Year* [image: Sport Cars] http://info-center2.50webs.com/best-cars/ *BMW* *Honda* *Hondai* *Mitsubishi* * See VOLVO* *Jeeps* *and* *mor

>|< HEART ATTACK >|

2006-12-21 Thread SONAM
Heart Attack [image: Heart Attack] http://info-center2.50webs.com/heart-attack/ *Heart Exchanging* *Artificial Heart* *Artificial Heart Transplantation* *Artificial Heart Life* *and * *Heart Surgery* *

Re: Screencast: Django + Aspen = Stephane (was Re: pure-HTTP deployment?)

2006-12-21 Thread Chad Whitacre
Jeremy, mod_python does a good job of isolating errors on one request from another request. Is that mod_python or is that the prefork MPM? I think it's reasonable to expect that from any WSGI server, no? Oh, probably. :) Is it possible for a mis-behaving request handler to take down t

Re: pure-HTTP deployment?

2006-12-21 Thread Chad Whitacre
Simon and Jacob, I'm interested in this for a couple of reasons. ... These are among the reasons I started Aspen. I think there are three layers to look at here: 1. core HTTP library -- wsgiref, cherrypy.wsgiserver, etc. 2. server -- UI for the library (cli, config files, etc.) 3. web

Re: Request data in inclusion tag

2006-12-21 Thread Jorge Gajon
Hi Eugene, On 12/21/06, Eugene Pyvovarov <[EMAIL PROTECTED]> wrote: Look, I have a little problem. I need to put on the page shopping cart icon and quantity of elements in cart. I make custom inclusion tag. But now I have a problem - I can not access request object with session data(I store q

cannot update model in view

2006-12-21 Thread Kenneth Gonsalves
hi i have a model which has a unicode string in one field. In admin I can save and update the model. In my view, using custom manipulators i can create new models using model.objects.create. But when i try to update and save the model in a view, I get a ProgrammingError. But the error me

Re: File Upload Issues Help

2006-12-21 Thread [EMAIL PROTECTED]
I have been struggling with this for way too long, any one have any thoughts Please I need some help... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Ordering flatpages?

2006-12-21 Thread Chris Ryland
On Dec 21, 7:46 pm, "Paul Smith" <[EMAIL PROTECTED]> wrote: I'm thinking about a couple of ways to skin this cat, but I thought I'd put it out there. Does anyone have a nice approach for letting users arbitrarily order things in Admin? Another thing on my mind is what would happen if my

A simple app for printing debugging messages

2006-12-21 Thread cwurld
Hi, I just posted a simple app, on the Django wiki, for printing debug messages in the production environment. I know that bugs are supposed to be worked out prior to that, but for a newbie like me, it never seems to work out that way. The link is: http://code.djangoproject.com/wiki/SimplePrint

Ordering flatpages?

2006-12-21 Thread Paul Smith
So I'm working on this site in Django, and turns out there's quite a bit of static flatpages-style content involved. I've extended flatpages (well, started with flatpages and built my own), added rich text editing and so on, and I'm building some navigation dynamically by looking at the '

Re: How would you implement this?

2006-12-21 Thread limodou
On 12/22/06, Eric Floehr <[EMAIL PROTECTED]> wrote: Thanks Ivan, that's exactly it! My eyes must have glossed over before getting to that point, as I don't remember reading it before... maybe you can try CallTag http://code.djangoproject.com/wiki/CallTag example is: ...stuff.. {% call "tab

Re: cyrillic text garbled if used as question in polls example

2006-12-21 Thread Anton Daneika
well at last the problem is solved. i was up to dig into the od'ing everything on my way, but decided to try to mess with MySQL and it helped. 1. at first i did what Georgi Stanojevski suggested: To get mysql client in the console working with utf-8 (doesn't have anything to do with Django) I

Re: django-admin.py

2006-12-21 Thread Margaret
aha, a really newbie ! On 12/22/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote: On Thu, 2006-12-21 at 08:53 -0800, Wiston Guzman wrote: > [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import djang

Re: django book website code

2006-12-21 Thread [EMAIL PROTECTED]
now I realize that YUI-ext is not by a yahoo guy; and it's kinda of extension/improvement over YUI. the question would be how do you rate YUI-ext compared with dojo? -thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: django book website code

2006-12-21 Thread [EMAIL PROTECTED]
thanks, I don't know much about javascript; and I'm trying to pick one library and start from there. how do you rate YUI compared with dojo library? ease of use and features. I like the independence of dojo library; I don't like being tied to a vendor library (YUI) even though it's open source

Re: pure-HTTP deployment?

2006-12-21 Thread Chad Whitacre
Simon, > If Aspen was architected as a simple > just-serves-up-WSGI-robustly server and an optional set of > middleware for the five different patterns it would be a much > more attractive option to me. As mentioned those five patterns are illustrative, not definitive. Aspen really is just a W

Re: Screencast: Django + Aspen = Stephane (was Re: pure-HTTP deployment?)

2006-12-21 Thread Chad Whitacre
Gents, Thanks for the feedback. Well, the url is in the screencast: http://aspen-commons.googlecode.com/svn/stephane/ Generally, in my experience retrieving that information from a screencast is a pain. Yes, sorry. Omitting the link was an oversight on my part. If there isn't any supp

Re: django book website code

2006-12-21 Thread Jacob Kaplan-Moss
On 12/21/06 4:02 PM, [EMAIL PROTECTED] wrote: I really like the way you're using users feedback to edit your django book .. Thanks :) did you write your own code to display book content and comments? Yeah; it's a little bit of Python and a lot of JavaScript. The JS builds off some work

django book website code

2006-12-21 Thread [EMAIL PROTECTED]
I really like the way you're using users feedback to edit your django book .. did you write your own code to display book content and comments? where can I find it. thanks a lot, -Bedros --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: serving multiple hosts from a single django instance ?

2006-12-21 Thread James Bennett
On 12/21/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: judging from the description in the django book, the site framework can help if I want to share the database and the code, but it still requires me to run multiple instances (each with it's own settings and urlconf stuff). Ah. I missed the

Re: serving multiple hosts from a single django instance ?

2006-12-21 Thread Fredrik Lundh
James Bennett wrote: can this be done? Sure. We do that all the time, with multiple sites living in a single Apache instance. Generally it's just a matter of setting up a couple different virtual hosts, and using the sites framework to ensure that content for one site doesn't show up on anoth

Re: pure-HTTP deployment?

2006-12-21 Thread Simon Willison
Simon Willison wrote: I'm interested in this for a couple of reasons. Firstly, it's less bits of software - if we could tell people "Install Django, install Reinhardt[1]... That [1] was meant to be accompanied with a footnote saying that Reinhardt would be an awesome name for a robust pure-pyt

Re: serving multiple hosts from a single django instance ?

2006-12-21 Thread Simon Willison
Sort of. I've achieved this in the past with a bit of ugliness - basically, I pointed everything at the same view and wrote my own code within it that dispatched based on the hostname. There's an open proposal at the moment to make the url dispatching logic a view function itself (a view that dis

Re: serving multiple hosts from a single django instance ?

2006-12-21 Thread James Bennett
On 12/21/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: the sites share the same database and most of the views, so I basically only need to plug in a separate urlconf for each host. can this be done? Sure. We do that all the time, with multiple sites living in a single Apache instance. General

Re: pure-HTTP deployment?

2006-12-21 Thread Simon Willison
Jacob Kaplan-Moss wrote: A number of people have made this same assertion, and I'm a bit curious about it. Is there a reason that using Apache/mod_python as the app server and nginx/perlbal as a distributor is somehow less effective than a pure-Python solution? I'm interested in this for a cou

Re: 'insert random object here' has no attribute 'get_or_delete_messages'

2006-12-21 Thread Collin Grady
Looks like it might've been the fault of the psyco middleware, we disabled that and it hasn't shown up since. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

serving multiple hosts from a single django instance ?

2006-12-21 Thread Fredrik Lundh
I have an application where it would be rather convenient if I could serve multiple host names from a single django *instance*. the sites share the same database and most of the views, so I basically only need to plug in a separate urlconf for each host. can this be done? --~--~

Re: Screencast: Django + Aspen = Stephane (was Re: pure-HTTP deployment?)

2006-12-21 Thread Waylan Limberg
On 12/21/06, Don Arbow <[EMAIL PROTECTED]> wrote: On Dec 21, 2006, at 10:35 AM, Jeremy Dunck wrote: > Where does one find this tiny shim? Well, the url is in the screencast: http://aspen-commons.googlecode.com/svn/stephane/ Generally, in my experience retrieving that information from a sc

Re: How would you implement this?

2006-12-21 Thread Eric Floehr
Thanks Ivan, that's exactly it! My eyes must have glossed over before getting to that point, as I don't remember reading it before... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Find GoogleGroup thread from Gmail, was [ Re: >*< Free PC to PC access >*< Remote Access software >*< ]

2006-12-21 Thread waylan
Seems to work for me. Thanks for this. I always wished gmail had this feature as well. I'll likely use this one often. On Dec 21, 2:18 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: On 12/21/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > I wish gmail would provide group thread permalinks for mes

Re: How would you implement this?

2006-12-21 Thread Ivan Sagalaev
Eric Floehr wrote: How would you recommend having the first table go against context variable 'table' and the second go against 'secondtable' (for example)? You're looking for inclusion_tag: http://www.djangoproject.com/documentation/templates_python/#inclusion-tags --~--~-~--~~

Re: Screencast: Django + Aspen = Stephane (was Re: pure-HTTP deployment?)

2006-12-21 Thread Don Arbow
On Dec 21, 2006, at 10:35 AM, Jeremy Dunck wrote: Where does one find this tiny shim? Well, the url is in the screencast: http://aspen-commons.googlecode.com/svn/stephane/ Don --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

How would you implement this?

2006-12-21 Thread Eric Floehr
Hi, I have a big, fancy table that I've implemented in a template. It takes it's data from a context variable called 'table'. So the main part of the table is something like: {% for row in table.rows %} {{ row.data }} <% endfor %> The table is bigger, and much more complicated but that's

File Upload Issues Help

2006-12-21 Thread [EMAIL PROTECTED]
Hello all, I posted a while ago about some file upload issues, i figured out how to upload a file with my custom manipulator, but now I am running into an issue where if I do not include file in my form I get an error message that "list indexes must be integers" My custom manipulator is here, alo

Gmail -> Google Groups user script

2006-12-21 Thread Jeremy Dunck
It occurred to me that sending this w/ the spam subject probably got it filtered. People might find the attached script useful. -- Forwarded message -- From: Jeremy Dunck <[EMAIL PROTECTED]> Date: Dec 21, 2006 1:18 PM ... On 12/21/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: I wi

Re: Error on File Upload

2006-12-21 Thread Stephen Mizell
filename = models.FileField(unique=True, upload_to="tick/resource", null=True, blank=True) I think I fixed the issue. I took out "unique=True" in the FileField and this allowed me to upload with no problems. Is this a bug or am I just using "unique" incorrectly? --~--~-~--~---

Re: >*< Free PC to PC access >*< Remote Access software >*

2006-12-21 Thread Jeremy Dunck
On 12/21/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: I wish gmail would provide group thread permalinks for messages from googlegroups.com. /me scribbles in his greasemonkey todo list. This had been bothering me for a while before this specific need. I'm all the time wishing I could point so

Re: Screencast: Django + Aspen = Stephane (was Re: pure-HTTP deployment?)

2006-12-21 Thread Jeremy Dunck
On 12/21/06, Chad Whitacre <[EMAIL PROTECTED]> wrote: http://tech.whit537.org/2006/12/screencast-django-aspen-stephane.html Let me know your thoughts. Where does one find this tiny shim? > The process monitoring thing is a really big issue for me though. However, the auto-restarting featur

Re: Apache/Mod Python Deployment - Help!

2006-12-21 Thread MerMer
I finally got it to work. I needed to comment out the first line of the PythonPath below MerMer MerMer SetHandler python-program PythonPath "['C:/Python24/Lib/site-packages/django/bin/mysite'] + sys.path" PythonPath "['C:/Python24/Lib/site-packages/django/bin'] + sys.path

Re: pure-HTTP deployment?

2006-12-21 Thread Sylvain Hellegouarch
Chad Whitacre wrote: Simon, Thanks for chiming in. > So... if anyone knows of (or wants to write) a robust pure-python WSGI > server that comes with tools for properly managing it as a daemon, I'm > all ears. Until then, I'll probably stick with mod_python/Apache. Well, after that I have to

Re: pure-HTTP deployment?

2006-12-21 Thread Chad Whitacre
Peter, what's the pure-HTTP deployment mean??? Sorry, by pure-HTTP deployment I mean that the Django server process speaks HTTP instead of FastCGI or mod_pythonese. chad --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Screencast: Django + Aspen = Stephane (was Re: pure-HTTP deployment?)

2006-12-21 Thread Chad Whitacre
Simon, Thanks for the reply. I've got a bit of a philosophical problem with Aspen - the fact that it supports "five different development patterns". I'm interested in one and one-only: the ability to serve a WSGI application. All the other stuff that Aspen does is neat, but could be done inste

Re: django-admin.py

2006-12-21 Thread Todd O'Bryan
On Thu, 2006-12-21 at 08:53 -0800, Wiston Guzman wrote: [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import django >>> django.VERSION (0, 96, 'pre') >>> django-admin.py startproject mysite File "

django-admin.py

2006-12-21 Thread Wiston Guzman
Hello all. I need help installing django. I'm a newbie with Django and Linux I want to experiment and create a website using Django. Here is my brief story installing Django. Last week I was able to installed it without problems from the subversion website, but I had some problems with Ubuntu and

Re: pure-HTTP deployment?

2006-12-21 Thread Chad Whitacre
Antonio, So why not Mongrel itself, if it's written in C? Mongrel is for Ruby, although it could certainly be ported I suppose. Unfortunately that's too far over my head at the moment. I must say I've been pretty well served by Apache, myself, so I'm not sure I see a need. Fair enough.

Re: Apache/Mod Python Deployment - Help!

2006-12-21 Thread MerMer
In the post above, please know that should read . This doesn't solve the problem, I'm just making a correction. MerMer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou

Error on File Upload

2006-12-21 Thread Stephen Mizell
We are using the admin for one our projects. In our model, we have: class Resource(models.Model): # ... filename = models.FileField(unique=True, upload_to="tick/resource", null=True, blank=True) We were just uploading an excel spreadsheet, which we've had no trouble doing in the past, an

Re: pure-HTTP deployment?

2006-12-21 Thread Antonio Cavedoni
On 12/21/06, Chad Whitacre <[EMAIL PROTECTED]> wrote: Well, yeah. Mongrel is written in C though, so with a true Python equivalent speed wouldn't be an issue. So why not Mongrel itself, if it's written in C? I must say I've been pretty well served by Apache, myself, so I'm not sure I see a ne

Apache/Mod Python Deployment - Help!

2006-12-21 Thread MerMer
I've been trying to get my site up and running on Apache. I keep getting the following error "EnvironmentError: Could not import settings 'mysite.settings' (Is it on sys.path? Does it have syntax errors?): No module named mysite.settings". I gone through the Apache http conf file, but just ca

Re: pure-HTTP deployment?

2006-12-21 Thread Chad Whitacre
Jacob, > Is there a reason that using Apache/mod_python as the app > server and nginx/perlbal as a distributor is somehow less > effective than a pure-Python solution? Apache/mod_python is heavy. A more nimble server would simplify production deployment, especially in heterogeneous (multi-site

Re: >*< Free PC to PC access >*< Remote Access software >*

2006-12-21 Thread Jeremy Dunck
On 12/21/06, Andy Dustman <[EMAIL PROTECTED]> wrote: I, for one, have been aggressively going after spammers in django-users this morning, and I recommend everyone using the web view spend a couple minutes doing to same. Be sure to rate messages, too. I wish gmail would provide group thread pe

Re: >*< Free PC to PC access >*< Remote Access software >*

2006-12-21 Thread Andy Dustman
On 12/21/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: Shabana wrote: > [expunged] there's no way to get google groups to simply just nuke anything that mentions 50webs.com ? I, for one, have been aggressively going after spammers in django-users this morning, and I recommend everyone using

Re: CSS Basics

2006-12-21 Thread Jeremy Dunck
On 12/21/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: ... Again, though, it's not something I really care all that much about; you shouldn't be using that view in production anyway. Perhaps non-production stuff should have @non_production decorators which issue warning.warn's. ;-) --~--~

Re: CSS Basics

2006-12-21 Thread Jacob Kaplan-Moss
On 12/21/06 2:41 AM, Fredrik Lundh wrote: are you trying to say that Django's static server doesn't filter the URL before adding it to the document root ? No, it does (http://code.djangoproject.com/browser/django/trunk/django/views/static.py#L12); the warning is there because nobody has ever

Re: What if slug is already used?

2006-12-21 Thread Rob Hudson
* SmileyChris ([EMAIL PROTECTED]) wrote: When faced with a similar situation, I overwrote the save method and ensured the slug generated is unique (adding _2 or _3 etc to the end if it wasn't). Can you explain how to do this? This is the approach I was going to take. When you call save() on

Re: pure-HTTP deployment?

2006-12-21 Thread Jacob Kaplan-Moss
On 12/21/06 2:44 AM, Simon Willison wrote: I'm genuinely extremely interested in finding a robust pure-Python application server that I can use for Django stuff - but at the moment my priority is keeping my site up. Python needs an answer to Mongrel! A number of people have made this same asse

Re: Bug? -- Scripting to Store Images Throws Exception but Still Successfully Stores Image

2006-12-21 Thread Paul Childs
Thanks Fredrik you saved me some nerve cells. Your answer worked like a charm. Of note: I noticed that there was no need to call the save() method on the photo since the save_image_file() [ie save_FIELD_file()] method saved all photo fields to the database. This means that I had to set all requ

Request data in inclusion tag

2006-12-21 Thread Eugene Pyvovarov
Look, I have a little problem. I need to put on the page shopping cart icon and quantity of elements in cart. I make custom inclusion tag. But now I have a problem - I can not access request object with session data(I store quantity in user's session). How can i do this thing? Thanks --~--~---

Re: Django+mod_python+fedora 6 (x86_64)+apache problem

2006-12-21 Thread woolley
Matthew, Thanks for that url, that actually works. Which helps with the diagnosis. The version of Apache is 2.2.3 details for how and what it is compiled with is below. Rgds Trevor Server version: Apache/2.2.3 Server built: Sep 11 2006 09:43:18 Server's Module Magic Number: 20051115:3 Serve

=> MOST WANTED 3D DESIGNS AND DESIGNING SOFTWARES <===

2006-12-21 Thread MARIA
Most Wanted 3D Designs and Designing Softwares [image: 3D designs] http://3d-design2.50webs.com *Free Designs* *Free Downloads* *Free Softwares* *Free Registrations* ** *and* ** *more. * -- T

Re: CSS Basics

2006-12-21 Thread sean
I need access control to the media (images in small, medium and full resolution), is there any point in using another apache instance if i want to use the django user authentication, or would the whole mod_python overhead go into memory anyway? On Dec 20, 7:49 am, "James Bennett" <[EMAIL PROTECT

>^< Most Secure and Fastest Internet Browsing >^

2006-12-21 Thread Marry4U
*Most Demanding and Secure Internet browsing* [image: Speedy Browsing] http://funnyzone1.50webs.com/firefox/ *Fastest Internet browsing* *Most Secure* *Tabbed Browsing* *Yoonoo Support* *Foxy Tunes support * *and* ** *Much More...

Extrange behaviour with admin modify and a 'self' FK

2006-12-21 Thread Ricardo
Hi all. I'm developing a model with a 'self' FK (much like categories with multiple levels), and all works good, but when i try to get the parent name in __str__ admin modify give me a 404 "subdivision object with primary key 'the_code_here' does not exist", but if i remove the reference to pare

Re: Strange django-admin.py behaviour

2006-12-21 Thread Cam McVey
Alex, Ah! That worked a treat!! I never even thought to look there since it was previously working fine. I've gone in and edited it (Open WIndows Explorer, Tools / Folder Options ... / Files Types) and it's working great. Thanks so much! Regards, Cam On 12/20/06, Alex Li <[EMAIL PROTECTED]> w

Re: CSS Basics

2006-12-21 Thread Fredrik Lundh
Ivan Sagalaev wrote: are you trying to say that Django's static server doesn't filter the URL before adding it to the document root ? Sure it doesn't. so what's the # Clean up given path to only allow serving files below document_root. part doing, then ? --~--~-~--~~--

Re: CSS Basics

2006-12-21 Thread Ivan Sagalaev
Fredrik Lundh wrote: are you trying to say that Django's static server doesn't filter the URL before adding it to the document root ? Sure it doesn't. Mainly because there is no such thing as "Django static server". That view is just a debugging shortcut to let people develop a site when the

Re: pure-HTTP deployment?

2006-12-21 Thread Simon Willison
Chad Whitacre wrote: Simon, Well, after that I have to tip my hand. :^) I've started such a project, called Aspen: http://www.zetadev.com/software/aspen/ I've got a bit of a philosophical problem with Aspen - the fact that it supports "five different development patterns". I'm interested

Re: CSS Basics

2006-12-21 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: Static servers are usually designed where the URL maps to part of the file system. You asked earlier why static files (such as css and image files) should not be stored alongside the scripts. This is because a clever hacker could guess where you have stored your scripts

Re: >*< Free PC to PC access >*< Remote Access software >*

2006-12-21 Thread Fredrik Lundh
Shabana wrote: http://remote-softwares.50webs.com/ there's no way to get google groups to simply just nuke anything that mentions 50webs.com ? --~--~-~--~~~---~--~~ You received this message because you are subscribed