Re: American Idol game developed in Django

2008-02-18 Thread Ed Menendez
http://aigame.wwudo.com/ Seems like that other URL is not working for everybody... Thanks everyone for all the info (on the group and on the sites!). The documentation for this framework really makes a difference. On Feb 18, 12:41 pm, Ed Menendez <[EMAIL PROTECTED]> wrote: > This was our first

Re: how to get related foreign key when using values in query

2008-02-18 Thread [EMAIL PROTECTED]
Malcolm,thanks very much. i am a newbie for django, and i just finished one big site by reading documents and getting help here. what i think now is to optimize it, so i use cache,select_related and values. you give me a whole picture of django queryset, i know the difference now, thanks again!

Re: Bound form showing image default

2008-02-18 Thread Malcolm Tredinnick
On Mon, 2008-02-18 at 17:39 -0800, Michael Newman wrote: > I have a newform that I am binding to a model and allowing a user to > edit it. Problem is the images don't show up. I know I have seen some > blog or post that discusses this, but I can't find them anywhere. It's come up a few times

Bound form showing image default

2008-02-18 Thread Michael Newman
I have a newform that I am binding to a model and allowing a user to edit it. Problem is the images don't show up. I know I have seen some blog or post that discusses this, but I can't find them anywhere. I assume the best way to do this is to create a custom widget with a render function that

Re: TemplateDoesNotExist at /admin/

2008-02-18 Thread Karen Tracey
On Feb 18, 2008 6:20 PM, RichardH <[EMAIL PROTECTED]> wrote: > > Just rebuilt Windows XP on a new hard disk and I have found the same > problem installing Python 2.5 and the latest SVN checkout (rev 7129). > Setup.py install doesn't copy across the templates and media folders > into

Re: TemplateDoesNotExist at /admin/

2008-02-18 Thread RichardH
Just rebuilt Windows XP on a new hard disk and I have found the same problem installing Python 2.5 and the latest SVN checkout (rev 7129). Setup.py install doesn't copy across the templates and media folders into C:\Python25\Lib\site-packages\django\contrib\admin. Like Nathan, a manual copy

Re: Django on a non root Apache URL

2008-02-18 Thread Graham Dumpleton
On Feb 19, 3:36 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-02-18 at 07:09 -0800, [EMAIL PROTECTED] wrote: > > Hi, > > > that won't do it when I do something like: > > return HttpResponseRedirect('/') > > > What I want is to be able to do the command above and I'll get to

SHARE THIS WORD OF GOD

2008-02-18 Thread [EMAIL PROTECTED]
http://www.oyla15.de/userdaten/11969408/pdf/Edgar_Cayce_-_The_Lost_Teachings_Of_Atlantis_-_By_Jon_Peniel.pdf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Domain Parsing Question

2008-02-18 Thread Tim Chase
> I'm having an issue parsing the sub domain from a lot of non-US urls. > In the US the format is always subdomain.domain.sufix or > domain.sufix. Easy to parse. > > In the uk for example though the format is > > subdomain.domain.co.uk or > domain.co.uk > > My issue is that i'm parsing the

Re: Authentication Question

2008-02-18 Thread Graham Dumpleton
If you want to use Django user database for HTTP Basic/Digest authentication across static files and other non Django URLs, as well as Django, then you can also use mod_wsgi 2.0 instead of mod_python. See: http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms When using the mod_python

Something I want to tell you

2008-02-18 Thread [EMAIL PROTECTED]
http://www.oyla15.de/userdaten/11969408/pdf/Edgar_Cayce_-_The_Lost_Teachings_Of_Atlantis_-_By_Jon_Peniel.pdf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Problem with django.db.transaction.commit_manually

2008-02-18 Thread Brot
I have found a solution. Could someone tell me, if this is OK or if this is a bad solution? > > finally: > > if result['status'] == 'OK': transaction.set_clean() > > otherfile.test() > > reserv.delete() > > transaction.commit() > > else: >

Re: Domain Parsing Question

2008-02-18 Thread Ned Batchelder
The different countries don't use a uniform scheme. For example, .uk has a two-letter component (.co .ac, etc), but other countries do not. I suppose the exact answer to your question ("how do I parse these domains") depends on why it is you are trying to parse them. What information are

Re: PostgreSQL ByteA

2008-02-18 Thread Leonel Nunez
> > On Mon, 2008-02-18 at 14:40 -0700, Leonel Nunez wrote: >> Hello : >> >> What's the status for PostgreSQL ByteA support in django ?? > > Normally it'd be a good idea to at least summarise what your research > has unturned so people don't cover what you already know (you did do > some

Re: Head swimming - JavaScript libraries

2008-02-18 Thread Fco. Javier Nievas
As many developers you asked, as many different answers you get. It's just a matter of taste. I've been using Mootools for "simple" projects, since it's very light, very clear, smart and easy to extend. The better choice for most situations. For complex projects, I've been using dojo for a

Re: One CSS, One JS in production mode for django?

2008-02-18 Thread mamcxyz
I found this: http://groups.google.com/group/django-users/browse_thread/thread/31d11436b482e43c/a81a71b812d808e5?lnk=gst=asset_packager#a81a71b812d808e5 But is not responded ;) The link provided is reported to not work. I know I can do this, but I have always the lazy mode on ;)

Re: Manually ordering content

2008-02-18 Thread Bret W
While that will allow content items to be ordered by a field in the model, I'm looking for a way to arbitrarily order items. I don't think the ordering attribute will solve this problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Whitespace handling in newforms modelforms

2008-02-18 Thread Fco. Javier Nievas
You can use Form inheritance to redefine default behaviour, so you will be just writing down just a strip and after making all your forms inherit from your BaseForm they all will strip fields 2008/2/18, James Bennett <[EMAIL PROTECTED]>: > > > On Feb 18, 2008 2:37 PM, web-junkie <[EMAIL

Re: PostgreSQL ByteA

2008-02-18 Thread Malcolm Tredinnick
On Mon, 2008-02-18 at 14:40 -0700, Leonel Nunez wrote: > Hello : > > What's the status for PostgreSQL ByteA support in django ?? Normally it'd be a good idea to at least summarise what your research has unturned so people don't cover what you already know (you did do some previous research,

Re: Manually ordering content

2008-02-18 Thread Fco. Javier Nievas
Maybe you could use the "ordering" attribute at META class, to avoid using order_by in every request. Wish it helps 2008/2/18, Bret W <[EMAIL PROTECTED]>: > > > I never really heard anything back on this, so I built something based > on the models in my last message. > > The details and code are

Re: Manually ordering content

2008-02-18 Thread Bret W
I never really heard anything back on this, so I built something based on the models in my last message. The details and code are here: http://www.nyquistrate.com/django/orderedlist/ I'd appreciate any feedback you might have. Hopefully others will find this code useful. Thanks, Bret

PostgreSQL ByteA

2008-02-18 Thread Leonel Nunez
Hello : What's the status for PostgreSQL ByteA support in django ?? Thank you Leonel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: One CSS, One JS in production mode for django?

2008-02-18 Thread James Bennett
On Feb 18, 2008 3:21 PM, mamcxyz <[EMAIL PROTECTED]> wrote: > I wonder if exist a similar toolset as in ruby: Believe it or not, this question has been asked before on this very list; try searching the archive for suggestions. -- "Bureaucrat Conrad, you are technically correct -- the best

One CSS, One JS in production mode for django?

2008-02-18 Thread mamcxyz
I wonder if exist a similar toolset as in ruby: http://synthesis.sbecker.net/pages/asset_packager The idea is put a single css & js for production mode, maybe with a timestamp so get cached properly. I wonder what tools are reliable for this & usable with python.

Domain Parsing Question

2008-02-18 Thread Dave Fowler
This doesn't have a lot to do with django, but python and web programming. I'm having an issue parsing the sub domain from a lot of non-US urls. In the US the format is always subdomain.domain.sufix or domain.sufix. Easy to parse. In the uk for example though the format is

Re: Whitespace handling in newforms modelforms

2008-02-18 Thread James Bennett
On Feb 18, 2008 2:37 PM, web-junkie <[EMAIL PROTECTED]> wrote: > why isn't whitespace automatically stripped from fields when using > modelforms? This would be convenient. Up until the moment you need to store some source code written in the language Django uses. -- "Bureaucrat Conrad, you

Re: Authentication Question

2008-02-18 Thread Tim Sawyer
On Monday 18 Feb 2008, Rajesh Dhawan wrote: > If you want to make Apache use a Django auth backend, > take a look at: > http://www.djangoproject.com/documentation/apache_auth/ Thanks Rajesh, I think this is exactly what I was fumbling towards! (Excellent analysis of my non-MVC ramblings as

Re: Head swimming - JavaScript libraries

2008-02-18 Thread Michael Hipp
Just wanted to thank everyone who replied (Julien, Dj Gilcrease, Phoenix Kiula, Hraban, Horst Gutmann, AmanKow, Peter Rowell). I think I will have a go at jQuery. Looks good. Thanks, Michael Peter Rowell wrote: > Yet another vote for jQuery. It completely changed the way I look at > using JS

Re: I need some help building my django site

2008-02-18 Thread Rajesh Dhawan
Hi, On Feb 18, 3:28 pm, sebey <[EMAIL PROTECTED]> wrote: > ok so this kind of general instead of django focused but I am building > the site around the framework so I would love some help about how to > built the site. > > ok so my site is a podcasting network.so I want to use rss to display >

Re: Whitespace handling in newforms modelforms

2008-02-18 Thread Malcolm Tredinnick
On Mon, 2008-02-18 at 12:37 -0800, web-junkie wrote: > Hi, > > why isn't whitespace automatically stripped from fields when using > modelforms? This would be convenient. Convenient in your case. Absolutely tragic for situations where whitespace is important. So that's why it doesn't happen

Re: Deploying Django - can't get past the welcome screen

2008-02-18 Thread Darthmahon
Hi Brian, I know how to get into python but not sure the exact commands to import settings.py? I tried "import settings" and it didn't come back with an error. How do I check the __file__/__path__ module attributes? I am now running into a weird intermittent issue which is actually not showing

Re: Whitespace handling in newforms modelforms

2008-02-18 Thread Rajesh Dhawan
Hi, > why isn't whitespace automatically stripped from fields when using > modelforms? This would be convenient. It may be convenient for many cases but for many others that approach would *lose* information irrecoverably. What if you wanted to have some fields stored with their whitespace

Re: djWarehouse - Django based e-commerce system

2008-02-18 Thread Chris Moffitt
I'll try to respond to some of these points. To be fair, I haven't spent much time looking at the internals of djWarehouse. From the surface, it seems like they have some good experience and design going into the product. I'll point out some differences - but they are mostly based on looking at

2GB Free Online Storage !

2008-02-18 Thread kinkon gowyard
Free online photo Album, Free online auto-matic Back-up, Free Access your MP3 music online,2 GB For Free! That's right, we are happy to give you a whopping great 2GB of secure online storage where you can manage and share your files easily. For Free! Get Free Code: Limited Time Only!

Re: ImportError: No module named base

2008-02-18 Thread [EMAIL PROTECTED]
> Most likely, you all have out-of-date versions of the MySQLDb adapter > (the Python module which lets Python talk to a MySQL database). I'm using the SQLite database for development, so no MySQLDb adapter is necessary. ;-) But it works with the Python version which comes with Leopard. I

Whitespace handling in newforms modelforms

2008-02-18 Thread web-junkie
Hi, why isn't whitespace automatically stripped from fields when using modelforms? This would be convenient. Is there a reason for not doing so, where is one supposed to do that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

I need some help building my django site

2008-02-18 Thread sebey
ok so this kind of general instead of django focused but I am building the site around the framework so I would love some help about how to built the site. ok so my site is a podcasting network.so I want to use rss to display my content, in other words I want to show my latest show from my

Re: ImportError: No module named base

2008-02-18 Thread James Bennett
Most likely, you all have out-of-date versions of the MySQLDb adapter (the Python module which lets Python talk to a MySQL database). -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~-~--~~~---~--~~ You received this

Re: ImportError: No module named base

2008-02-18 Thread Noah
Me too --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more

Re: Authentication Question

2008-02-18 Thread Rajesh Dhawan
Hi Tim, > I've read the docs for authentication but I can't see how I can replicate > existing functionality I have using php. > > I have a directory /private on the web server, marked using .htaccess > and .htpasswd to only allow access if a username is passed. Anything I put > inside this

American Idol game developed in Django

2008-02-18 Thread Ed Menendez
This was our first site in Django and also our intro to Python. We used to play this on a spreadsheet with friends but were able to develop the replacement in about a week with Django. Probably could have been done much quicker if we weren't newbies to the framework.

Re: Newfroms - How to get the id for a field

2008-02-18 Thread Jorge Sousa
Hi, {{ fields }} is rendered by the as_widget() method of the BoundField class. Jorge On Feb 15, 2008 8:58 PM, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > > > > On Feb 14, 4:15 am, shabda <[EMAIL PROTECTED]> wrote: > > When using newforms, I want to get the id set on the input field. > > I am

Re: Django authentication, virtual hosts, sites and SaaS

2008-02-18 Thread Tim Chase
> 1. I need basecamp-esque URLS i.e. [instance].maindomain.com where > [instance] is an "instance" of the application. I've looked at the > sites feature for this but I'm not 100% sure it's suitable with > constraint (2) below. Is there any (optionally anecdotal) evidence > either way to

YouTube’dan yayılan Trojen Nabload.CXU

2008-02-18 Thread kursatsenturk qp
YouTube'dan yayılan Trojen Nabload.CXU blogdevri network *15* *Şub* *2008* Yazar: admin Kategori: İnternet Panda Security tespit ettiği Nabload.CXU trojan

Authentication Question

2008-02-18 Thread Tim Sawyer
Hi Folks, I've read the docs for authentication but I can't see how I can replicate existing functionality I have using php. I have a directory /private on the web server, marked using .htaccess and .htpasswd to only allow access if a username is passed. Anything I put inside this directory

Dolardaki Sırlar

2008-02-18 Thread kursatsenturk qp
Dolardaki Sırlar Blogdevri Network *[image: 1 doların Sırrı] BİTMEMİŞ PİRAMİT* İnşa edilmekte olan dev bir yapıt. Piramit zaten mutlak gücün simgesi. Evrensel

Re: Tumblelog - Generic table or combine queries or...?

2008-02-18 Thread Rob Hudson
On Feb 17, 12:50 am, Jamie Pittock <[EMAIL PROTECTED]> wrote: > 2. Use the contenttypes framework and create a generic TumblelogItem > Model that would hold the content_type and ids of all the model items > I'd like to "tumble".  Something like... This is pretty much what JellyRoll does:

Django authentication, virtual hosts, sites and SaaS

2008-02-18 Thread Chris Smith
I'm looking for a solution (preferably off the shelf) which will allow several things to be done at once. I've built a couple of trivial Django sites so I have a little experience, but a lot with Python. I'm building a *big* high traffic SaaS (sorry for the buzzword) type application to replace

Re: djWarehouse - Django based e-commerce system

2008-02-18 Thread [EMAIL PROTECTED]
On Feb 18, 4:10 pm, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote: > > I am pleased to announce the immediate availability of djWarehouse e- > > commerce system, developed on Django. > > Could you provide a quick bench / swot against satchmo project as it > looks you have the same objectives

custom field and admin widget

2008-02-18 Thread Gio
Hello, I wrote a custom field and I would like to have a proper widget in admin. As you may guess reading my code I would like to manage that field with a multiselect, but instead I get a regular select in admin. How should I do it? (relevant part should be definition of formfield)

Re: Django on a non root Apache URL

2008-02-18 Thread Malcolm Tredinnick
On Mon, 2008-02-18 at 07:09 -0800, [EMAIL PROTECTED] wrote: > Hi, > > that won't do it when I do something like: > return HttpResponseRedirect('/') > > What I want is to be able to do the command above and I'll get to the: > http://localhost/django > > Instead of http://localhost/ . > > >

Re: Multiple attributes fieldtypes

2008-02-18 Thread Malcolm Tredinnick
On Mon, 2008-02-18 at 05:25 -0800, timc3 wrote: [...] > In PostgreSQL I could store the attributes as an Array type (http:// > www.postgresql.org/docs/8.1/interactive/arrays.html), but I don't see > a matching field type in Django - presumably because there might not > be the same datatype in

Re: ModelForm field queryset filter

2008-02-18 Thread Malcolm Tredinnick
On Mon, 2008-02-18 at 04:38 -0800, Robert wrote: [...] > So far I've been doing this by specifying the BaseForm in > form_for_model and form_for_instance. > > views.py: > state = State.objects.get(name=state_name) # grabbed from urls.py > AlertForm = form_for_model(Alert, form=AlertBaseForm) >

Re: New Forms - Mixing database and non database fields

2008-02-18 Thread Malcolm Tredinnick
On Mon, 2008-02-18 at 00:43 -0800, DanB wrote: > Malcolm, > > thxs for the tip. > I was hoping to get something bit more automatized, but I think I can > live with this approach as well. I guess the approach I forgot to mention is that you can also use form inheritance with modelforms (see the

Re: how to get related foreign key when using values in query

2008-02-18 Thread Malcolm Tredinnick
On Sun, 2008-02-17 at 22:22 -0800, [EMAIL PROTECTED] wrote: > i have 2 Models(for example): > one is Category, have 2 fields: title and slug, the other is Entry > with 4 fields: title, time,category(foreign key),content. > > now i just want show entry title and category slug, so i use this >

Re: "Presales" questions

2008-02-18 Thread Tim Chase
>> I've coded in PHP, and I've coded in Python. I'd choose >> Python over PHP any day. As a matter of fact, I don't touch >> PHP any more unless I'm paid to (or maintaining some of my >> old personal PHP code). > > May I ask why this disdain for PHP? OOP type puritanism aside, > it's a

Re: Problem with django.db.transaction.commit_manually

2008-02-18 Thread Brot
Hello, The view works well if I delete the call 'otherfile.test()' There is also no error if I delete the dictionary declaration in 'otherfile.test()'. My example code is only an extraction from my code. In my real 'test-function' is a lot of code (I use urlib, urlib2 and htmllib there). But the

Re: Django hosting service running Os C

2008-02-18 Thread Dj Gilcrease
On Feb 17, 2008 3:12 PM, Flavio Curella <[EMAIL PROTECTED]> wrote: > > Hi, > > I developed a small application using django and CoreGraphics library > as a school project. I'm wondering to put it online and I googled > around looking for a web hosting solution (shared or VPS) running on > Os X

Re: Django on a non root Apache URL

2008-02-18 Thread Eric Abrahamsen
On Feb 18, 2008, at 11:09 PM, [EMAIL PROTECTED] wrote: > > Hi, > > that won't do it when I do something like: > return HttpResponseRedirect('/') > > What I want is to be able to do the command above and I'll get to the: > http://localhost/django > > Instead of http://localhost/ . > > > Is there

Re: Problem with django.db.transaction.commit_manually

2008-02-18 Thread Thomas Guettler
Hi, You get this because the transaction is 'dirty' (some statement was executed, but there was no commit/rollback afterwards). I guess this happens in render_to_response in your example. > K' > finally: > if result['status'] == 'OK': > otherfile.test() >

Re: djWarehouse - Django based e-commerce system

2008-02-18 Thread Nicolas Steinmetz
[EMAIL PROTECTED] a écrit : > Hello, > > I am pleased to announce the immediate availability of djWarehouse e- > commerce system, developed on Django. Could you provide a quick bench / swot against satchmo project as it looks you have the same objectives (being an e-commerce platform).

Re: Django on a non root Apache URL

2008-02-18 Thread [EMAIL PROTECTED]
Hi, that won't do it when I do something like: return HttpResponseRedirect('/') What I want is to be able to do the command above and I'll get to the: http://localhost/django Instead of http://localhost/ . Is there a way to do this? Thanks, On Feb 18, 2:43 pm, Eric Abrahamsen <[EMAIL

djWarehouse - Django based e-commerce system

2008-02-18 Thread [EMAIL PROTECTED]
Hello, I am pleased to announce the immediate availability of djWarehouse e- commerce system, developed on Django. It is called djWarehouse and there are Trac site for it: http://www.djwarehouse.org/ You can see demo site (with open /admin/ area) here: http://demo.djwarehouse.org/ Here is

Re: Django on a non root Apache URL

2008-02-18 Thread Eric Abrahamsen
On Feb 18, 2008, at 10:06 PM, [EMAIL PROTECTED] wrote: > > Hi, I want to deploy a Django project on Apache but in a URL like: > http://localhost/django > > I can do it but since I have some HttpResponseRedirect on my project > pointing to '/', it will end up on: > http://localhost/ > > Is there

Django on a non root Apache URL

2008-02-18 Thread [EMAIL PROTECTED]
Hi, I want to deploy a Django project on Apache but in a URL like: http://localhost/django I can do it but since I have some HttpResponseRedirect on my project pointing to '/', it will end up on: http://localhost/ Is there any way to make django to use the http://localhost/django URL as its

Re: costumizing admin

2008-02-18 Thread Karen Tracey
On Feb 18, 2008 8:38 AM, Almir Karic <[EMAIL PROTECTED]> wrote: > > On Feb 18, 2008 2:22 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > > On Feb 18, 2008 1:18 AM, Almir Karic <[EMAIL PROTECTED]> wrote: > > > > > > > > it seems that the name of the template is hardcoded in the code > > > > > > def

Re: costumizing admin

2008-02-18 Thread Almir Karic
On Feb 18, 2008 2:22 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Feb 18, 2008 1:18 AM, Almir Karic <[EMAIL PROTECTED]> wrote: > > > > > it seems that the name of the template is hardcoded in the code > > > > def result_list(cl): > >return {'cl': cl, > >'result_headers':

Multiple attributes fieldtypes

2008-02-18 Thread timc3
I have two model development problems that I was wondering whether they have been solved before. Firstly lets say that I have extended the user model, but I want to be able for a user to store multiple e-mail addresses for themselves.. Is the easiest way to store this in a separate email table,

Re: costumizing admin

2008-02-18 Thread Karen Tracey
On Feb 18, 2008 1:18 AM, Almir Karic <[EMAIL PROTECTED]> wrote: > > it seems that the name of the template is hardcoded in the code > > def result_list(cl): >return {'cl': cl, >'result_headers': list(result_headers(cl)), >'results': list(results(cl))} > result_list =

Re: is_secure() behind reverse proxy

2008-02-18 Thread Ned Batchelder
You can use protocol-relative URLs. If your media URLs omit the protocol, they will inherit it from the protocol of the page: On a page served with https:, this image will be retrieved via https. On an http: page, it will be retrieved via http. More about this:

ModelForm field queryset filter

2008-02-18 Thread Robert
Greetings, There's a model with few ForeignKey fields: class Alert(models.Model): name = models.CharField() sms = models.BooleanField() email = models.BooleanField() state = models.ForeignKey(State..) city = models.ForeignKey(City) When user is browsing the "X" state, when

Re: django runserver freeze after 10-15 min

2008-02-18 Thread diadya_vova
Big thanks to all folks! It's works fine with CherryPy. --~--~-~--~~~---~--~~ 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

Re: New Forms - Mixing database and non database fields

2008-02-18 Thread DanB
Malcolm, thxs for the tip. I was hoping to get something bit more automatized, but I think I can live with this approach as well. Cheers, DanB On Feb 15, 6:21 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2008-02-15 at 18:02 +0100, Dan-Cristian Bogos wrote: > > Hello, > > > I