Re: new forms - processing the form without rebuilding the entire view

2007-04-19 Thread Tipan
On Apr 18, 8:26 pm, Nathaniel Whiteinge <[EMAIL PROTECTED]> wrote: > Personally, I use a toolkit to lessen cross-browser compatibility > problems as well as to speed quick, little functionality (eg. > animations). I chose jQuery because it's small, unobtrusive, and I > love the CSS-like syntax.

Re: trailing slash added to passed form data

2007-04-19 Thread Tipan
On Apr 13, 6:15 pm, "Ian Clelland" <[EMAIL PROTECTED]> wrote: > On 4/13/07,Tipan<[EMAIL PROTECTED]> wrote: > > it would seem to me that the "/" in "/>", which closes out the tag, > could be interpreted by the browser as part of the value, rather than > part of the HTML tag. I would try putting t

django can't login postgres when I use apache+modpython, and SQLite can't open under apache

2007-04-19 Thread Cao Mengfei
I was reading djiagobook.com. I started an app, added some models, and ./manage.py syncdb, the all seems well. when I try to views the http://127.0.0.1/admin , It tell me that password wrong identify failed. But the user and password in setting.py can login in psql. When I use djangotestserver, it

Re: Email Charset

2007-04-19 Thread [EMAIL PROTECTED]
The code is under the Python2.4 License. the license file did not get merged from a branch when the code got migrated off of us.pycon.org to svn.python.org. (sorry about that). We are working on getting a roundup bug system on python.org (some time after the main python development moves off of so

Re: multiple urls for the same view?

2007-04-19 Thread [EMAIL PROTECTED]
Also...it seems if I have two instances of this running on the same apache server...that one sporadically looks at the wrong urls.py file ( the one for another instance ) Is it not valid to do the following in the apache conf file? SetHandler python-program PythonHandler django.core.h

Re: Email Charset

2007-04-19 Thread Kenneth Gonsalves
On 20-Apr-07, at 9:34 AM, [EMAIL PROTECTED] wrote: > For the Python Conference software we came up with out own wrappers > and a monkey patch to the django email sub system. > The code is here: > https://svn.python.org/conference/django/trunk/pycon/core/mail.py just a question - the pycon softw

Re: multiple urls for the same view?

2007-04-19 Thread [EMAIL PROTECTED]
I don't think I can convince our network guys to do that... they prefer not to open anymore ports than necessary. On Apr 20, 12:28 am, "Julio Nobrega" <[EMAIL PROTECTED]> wrote: > You could use different directories (Django projects) under multiple > VirtualServers (different domain names / por

Re: multiple urls for the same view?

2007-04-19 Thread Julio Nobrega
You could use different directories (Django projects) under multiple VirtualServers (different domain names / ports), each one for a particular developer. On 4/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I'm trying to setup three development directories for different > programmers,

Re: Best practices for large volumes of data?

2007-04-19 Thread Malcolm Tredinnick
On Thu, 2007-04-19 at 23:22 -0500, Jeremy Dunck wrote: > On 4/19/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > ... > > The good news is that the QuerySet refactor uses "ON" conditions for > > joins (because it's easier), so this might improve as if by magic > > shortly. > > Ah, I didn't kno

Re: selecting a framework ,

2007-04-19 Thread Kenneth Gonsalves
On 20-Apr-07, at 8:53 AM, Jeremy Dunck wrote: >> >> check out satchmo - it is an erp with django > > If you mean this satchmo: > http://www.satchmoproject.com/ > then I think we're not agreeing on what ERP is: > http://en.wikipedia.org/wiki/Enterprise_resource_planning > :) i stand corrected

Re: Best practices for large volumes of data?

2007-04-19 Thread Jeremy Dunck
On 4/19/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: ... > The good news is that the QuerySet refactor uses "ON" conditions for > joins (because it's easier), so this might improve as if by magic > shortly. Ah, I didn't know QS refactor was in-progress. Is it part of newforms-admin or are y

Re: Email Charset

2007-04-19 Thread [EMAIL PROTECTED]
For the Python Conference software we came up with out own wrappers and a monkey patch to the django email sub system. The code is here: https://svn.python.org/conference/django/trunk/pycon/core/mail.py This allows you to optionally specify DEFAULT_EMAIL_CHARSET and DEFAULT_EMAIL_SUBJECT_CHARSET

multiple urls for the same view?

2007-04-19 Thread [EMAIL PROTECTED]
I'm trying to setup three development directories for different programmers, for us each to be able to checkout our project to from svn on the same development machine... Basically, I wanted to setup apache to have /projectname = main merged project instance /dev1/projectname = developer #1 work

Re: selecting a framework ,

2007-04-19 Thread Jeremy Dunck
On 4/19/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > check out satchmo - it is an erp with django If you mean this satchmo: http://www.satchmoproject.com/ then I think we're not agreeing on what ERP is: http://en.wikipedia.org/wiki/Enterprise_resource_planning :) --~--~-~--~---

code obfuscation (cx_freeze)

2007-04-19 Thread JustinHoMi
Has anyone tried cx_freeze to compile their code into a single binary? I've been trying, but I'm unable to run the final binary. Now... I assume that I'm supposed to "freeze' manage.py... which is what I tried. Here's the output: [EMAIL PROTECTED] ajc]# ./manage Traceback (most recent call last):

Re: django comparison

2007-04-19 Thread Kenneth Gonsalves
On 19-Apr-07, at 8:07 PM, Jeremy Dunck wrote: > Databrowse could be considered Access for the web. w00t - coolest thing since the mini idli -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You received this me

Re: relation django_site does not exist

2007-04-19 Thread Malcolm Tredinnick
On Thu, 2007-04-19 at 16:48 -0700, gkelly wrote: > This error comes up sometimes at random when running on mod_python > (dev server works fine). > Note that I am NOT using django's site app. Something you are using requires it, though. I think the solution here is to install the sites application

Re: Best practices for large volumes of data?

2007-04-19 Thread Malcolm Tredinnick
On Thu, 2007-04-19 at 10:36 -0500, Tim Chase wrote: [...] > >> -be careful with tracebacks if, for some reason, you have a > >> query-set that brings back bajillions of records and you error > > ... > > Yeah, I don't really know what to do with this. It's hard to know how > > big something is (me

Re: selecting a framework ,

2007-04-19 Thread Kenneth Gonsalves
On 19-Apr-07, at 6:47 PM, gops wrote: > I want to develop a ERP for very small business ( two - three use + > customer : normally not more than 10 people using the erp ) check out satchmo - it is an erp with django -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/

International Python user groups events calendar

2007-04-19 Thread TechVenue Eventmaster
FYI All, International Python user groups events calendar: http://TechVenue.com/Calendars/Python/ Enjoy! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Django Schema Migration

2007-04-19 Thread Ned Batchelder
Just one comment on this: At Tabblo, we've found it very useful to have not only SQL migrations, but Python migrations as well, because database migrations involve not just schema changes, but also data changes. While SQL can be used to update the data, it can be much easier to do it with Pyt

Re: In Admininterface: Error: variable not passed into template?

2007-04-19 Thread Michael Lake
oggie rob wrote: > You're missing the __str__ method. Not sure if that is causing the > "Error" though. Thanks Rob, I added the __str__ method and all it does is that Admin now shows each entry as whatever the str method returns. It's useful though so thanks. But I still get the error Error: va

Re: Django Schema Migration

2007-04-19 Thread Russell Keith-Magee
On 4/19/07, Mike H <[EMAIL PROTECTED]> wrote: > > I've been working on a tool to give me an automated way of altering the > schemas on servers I deploy my django applications to. I know about the > schema-evolution branch, but the current approach of that isn't > completely automated and the work

relation django_site does not exist

2007-04-19 Thread gkelly
This error comes up sometimes at random when running on mod_python (dev server works fine). Note that I am NOT using django's site app. Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/django/core/handlers/ base.py" in get_response 77. response = callback(request,

Re: ManyToManyField and custom manager

2007-04-19 Thread Russell Keith-Magee
On 4/20/07, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> wrote: > > Hi guys! > > Is there a way to define a custom manager on a ManyToMany > relationship? See the code above: Only on a limited basis. The relation descriptor inherits the default manager for the class it is relating to. So, in your ex

Re: BigIntegerField

2007-04-19 Thread Jeremy Dunck
That patch is all that's available, AFAIK. On 4/19/07, Stephan Jennewein <[EMAIL PROTECTED]> wrote: > > Hi, > > is there something like a BigIntegerField for the models.py ? > I need an integer bigger than 4 byte. > > I found a patch for revision 3000 but it doesn't work. > > Stephan > > > > > -

BigIntegerField

2007-04-19 Thread Stephan Jennewein
Hi, is there something like a BigIntegerField for the models.py ? I need an integer bigger than 4 byte. I found a patch for revision 3000 but it doesn't work. Stephan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

VFrom zero to dogfood widgets in one day with django

2007-04-19 Thread Rico
>From zero to dogfood widgets in one day with django http://widget.teenwag.com/widget --~--~-~--~~~---~--~~ 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@googlegro

Re: [OT] Vim (was "Poll tutorial question")

2007-04-19 Thread Jay Parlar
On 4/19/07, Tim Chase <[EMAIL PROTECTED]> wrote: > > >> Well, whitespaces in Python are pretty difficult to keep in > >> line, if you are used to other languages. I personally use > >> Tabs for intending and VIM editor and have it to make Tabs > >> visible like dark blue |--, > > > > Hey, do y

Re: [OT] Vim (was "Poll tutorial question")

2007-04-19 Thread Tim Chase
>> Well, whitespaces in Python are pretty difficult to keep in >> line, if you are used to other languages. I personally use >> Tabs for intending and VIM editor and have it to make Tabs >> visible like dark blue |--, > > Hey, do you mind sharing your .vimrc for that, probably best > on dpast

Re: Email Charset

2007-04-19 Thread Condredge
Great! Thanks - I look forward to what you guys do with this! On Apr 18, 6:09 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 4/19/07, Condredge <[EMAIL PROTECTED]> wrote: > > > > > I wonder if anyone else has discovered this problem. I have an > > application which sends email. Mos

i18n for flatpages question

2007-04-19 Thread zehi
Hi, I would need to use i18n for flatpages. Is that possible and if yes, could you share how to define translation string in flatpages templates. Regarding to that, I thought about 'flat page builder' app with ability to divide content to smaller blocks (paragraphs, ..) The great option would

Russian Wedding catfight - Youtube Killer made in django

2007-04-19 Thread foto
http://www.teenwag.com/showvideo/1057 --~--~-~--~~~---~--~~ 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 ema

Re: Poll tutorial question

2007-04-19 Thread Michael K
On Mar 29, 9:03 am, Gilhad <[EMAIL PROTECTED]> wrote: > On Wednesday 28 March 2007 11:50, wheresdave wrote: > > > got it fixed. Whitespace was showing up before pass. found the setting > > in scite to show whitespace. > > Well, whitespaces in Python are pretty difficult to keep in line, if you are

ManyToManyField and custom manager

2007-04-19 Thread Michel Thadeu Sabchuk
Hi guys! Is there a way to define a custom manager on a ManyToMany relationship? See the code above: ... from django.contrib.sites.models import Site class Country(models.Model): ... class Person(models.Model): country = models.ManyToMany(Country, related_name="people") site = m

Re: cx_Oracle

2007-04-19 Thread ogghead
Zundra, I would recommend you use cx_Oracle 4.3.1 (released only yesterday), as it contains some significant fixes for LOB handling. The boulder-oracle-sprint branch is nearly complete...according to me and the other developer who've been working on it. We're using the code in production here f

Re: Multiple processes for Django business logic

2007-04-19 Thread Jeremy Dunck
On 4/19/07, garyrob <[EMAIL PROTECTED]> wrote: > I understand that there are multiple processes, for instance there is > a database server, a web server, etc. But suppose there's quite heavy, > cpu-consuming business logic involved in responding to client > requests. Can there be multiple processe

Re: django comparison

2007-04-19 Thread M Harris
On Thursday 19 April 2007 07:47, Michael K wrote: > The best part is, if you put together the models > first, the clients can start adding and manipulating content before > you're done with all of the functionality - just give them access to > the admin panel, if you want. Well, that is pr

Re: Poll tutorial question

2007-04-19 Thread Oliver Rühl
Thanks. This also fixed it for me. Guess what: I'm new to Python :-) On 29 Mrz., 15:03, Gilhad <[EMAIL PROTECTED]> wrote: > On Wednesday 28 March 2007 11:50, wheresdave wrote: > > > got it fixed. Whitespace was showing up before pass. found the setting > > in scite to show whitespace. > > Well, w

Multiple processes for Django business logic

2007-04-19 Thread garyrob
I posted a question here a few months ago about benefitting from multiprocessing when using Django. I was concerned about the GIL getting in the way. I received a response: "if you're running Django in an approved deployment setup -- that is, under mod_python or FCGI -- you'll be running a number

Re: Django Schema Migration

2007-04-19 Thread David Marko
Hello, Can you share the initial code with us? This approach seems to be good. Do you have experience on some project? David Mike H napsal: > Hi all, > > I've been working on a tool to give me an automated way of altering the > schemas on servers I deploy my django applications to. I know about

Re: Django on Windows for an intranet site

2007-04-19 Thread jay graves
On Apr 19, 12:25 pm, "Joseph Heck" <[EMAIL PROTECTED]> wrote: > Django on windows works fine - I've set up Apache/ModPython/MySQL and > Apache/ModPython/Postgres. I wouldn't recommend sticking this on the same > machine as a domain controller and Exchange though. For that matter, I > wouldn't re

Download Weather Toolbar

2007-04-19 Thread dev
Download Weather Toolbar - Instant weather reports, forecasts, and radar images anytime for FREE! - http://offr.biz/HLWSD286251KJGHEDC --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Django on Windows for an intranet site

2007-04-19 Thread jay graves
On Apr 19, 12:18 pm, Michael K <[EMAIL PROTECTED]> wrote: > On Apr 19, 12:40 pm, jay graves <[EMAIL PROTECTED]> wrote: > application on Windows using ODBC? If so, you're not necessarily > stuck with Windows Server, as there are ODBC solutions for Linux/BSD, > meaning you could put the Apache serv

Re: Django on Windows for an intranet site

2007-04-19 Thread Joseph Heck
If you're new to Django, I'd generally recommend that you stick with released versions. Fewer things changing on you while you're learning. If you like diving in the deep end, the trunk is good - just be aware you'll be spending more time/energy with it. It's reasonably stable, but API changes are

Re: Persistance after re-submit for ImageField/FieldField uploads in newforms

2007-04-19 Thread Benjamin Slavin
Of course, the title should read: "Persistance after re-submit for ImageField/FileField uploads in newforms" On 4/19/07, Benjamin Slavin <[EMAIL PROTECTED]> wrote: > Howdy all, > > I'm putting together an application that's using a file upload in > newforms (the target is images). > > The problem

Re: Django on Windows for an intranet site

2007-04-19 Thread Michael K
On Apr 19, 12:40 pm, jay graves <[EMAIL PROTECTED]> wrote: > I'm a Django newbie (1 week) but a long time (since early 2000) Python > programmer. > > I have an internal project for work and I'm proposing that we use > Django. > > Here are some general questions that I would like the community's >

Persistance after re-submit for ImageField/FieldField uploads in newforms

2007-04-19 Thread Benjamin Slavin
Howdy all, I'm putting together an application that's using a file upload in newforms (the target is images). The problem that I'm having is that, when there's a validation error elsewhere in the form, the image is 'lost' and the user has to re-attach it to resubmit. Because Django clears-out c

Detect SSL/HTTPS

2007-04-19 Thread Caz
On May 5 2006, 6:35 pm, "Jakub Labath" <[EMAIL PROTECTED]> wrote: > Hi, > > I have web server that is accessed both via http and https is there a > way for me to tell which is used? > > Thanks I notice at http://www.djangoproject.com/documentation/request_response/ there's a bit that reads a fol

Django on Windows for an intranet site

2007-04-19 Thread jay graves
I'm a Django newbie (1 week) but a long time (since early 2000) Python programmer. I have an internal project for work and I'm proposing that we use Django. Here are some general questions that I would like the community's opinion on. 1. I have to use Windows 2003 server due to the fact that I

Re: A Semantic Web CMS [was: Re: django comparison]

2007-04-19 Thread Nicola Larosa
> Nicola Larosa wrote: >> This is the dream of the Semantic Web: a way of mixing data and metadata so >> that you have an array of relations (like those in Dublin Core) that relate >> subject and object (the RDF triple). And every object is defined by a set >> of relations connecting it to other o

A Semantic Web CMS [was: Re: django comparison]

2007-04-19 Thread Nicola Larosa
>> Nicola Larosa wrote: >>> The next step is doing away with a predefined model altogether. >>> Semantic web CMS, anyone? ;-) > Jeremy Dunck wrote: >> Have you looked at trunk/django/contrib/databrowse yet? :) Tim Chase wrote: > This was the contrib that Adrian unveiled at PyCon2007 that had a

Re: A Semantic Web CMS [was: Re: django comparison]

2007-04-19 Thread Antonio Cavedoni
On 19/04/07, James Bennett <[EMAIL PROTECTED]> wrote: > This is something best handled by an RDF store or an object database, > neither of which is currently supported for Django; feel like writing > some new backends for us? ;) IIRC Bill de hÓra was working on such a beast. Bill? -- Antonio --~

Re: A Semantic Web CMS [was: Re: django comparison]

2007-04-19 Thread James Bennett
On 4/19/07, Nicola Larosa <[EMAIL PROTECTED]> wrote: > This is the dream of the Semantic Web: a way of mixing data and metadata so > that you have an array of relations (like those in Dublin Core) that relate > subject and object (the RDF triple). And every object is defined by a set > of relation

Re: non-cascading delete?

2007-04-19 Thread James Bennett
On 4/19/07, Gábor Farkas <[EMAIL PROTECTED]> wrote: > i do not want this. i'd like to find a way, > which TRIES to delete the object, and if not possible > (foreign-key-restrictions), then raises an exception. This really isn't possible right now without doing a lot of hacking around; the problem

non-cascading delete?

2007-04-19 Thread Gábor Farkas
hi, i'm trying to somehow limit my users to non-cascading deletes. the problem is the following: when you delete() something in django, it deletes also all the related objects. i do not want this. i'd like to find a way, which TRIES to delete the object, and if not possible (foreign-key-rest

Re: Best practices for large volumes of data?

2007-04-19 Thread Tim Chase
>> (with several hundred clients, drilldown >> would be nice). > > Indeed. I think you may want to look a the newforms-admin branch. I > think the most natural would be to add auto-complete filters and > multiple applied filters. > Also, perhaps data_hierarchy will help in the short term: > htt

Re: Generic login view bug suspection

2007-04-19 Thread Rob J Goedman
Thanks a lot, this answers my question from a couple of days as well! It works again! Rob On Apr 19, 2007, at 8:05 AM, James Bennett wrote: > > On 4/19/07, mojo <[EMAIL PROTECTED]> wrote: >> I think this might be a bug. Unexpected behaviour at least. >> When I delete default Site object ('examp

RE: Generic login view bug suspection

2007-04-19 Thread mojo
I see now. Thank you. I just hoped that I found a bug. -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of James Bennett Sent: Thursday, April 19, 2007 7:05 PM To: django-users@googlegroups.com Subject: Re: Generic login view bug suspection On 4

Re: django comparison

2007-04-19 Thread [EMAIL PROTECTED]
It was Jeff Croft releasing the source for Lost-Theories that pulled me in. I just saw how I could make Django work for me, instead of trying to make something else work. On Apr 18, 8:40 pm, M Harris <[EMAIL PROTECTED]> wrote: > On Wednesday 18 April 2007 14:22, [EMAIL PROTECTED] wrote:> For what

Re: Best practices for large volumes of data?

2007-04-19 Thread Jeremy Dunck
On 4/19/07, Tim Chase <[EMAIL PROTECTED]> wrote: ... >(with several hundred clients, drilldown > would be nice). Indeed. I think you may want to look a the newforms-admin branch. I think the most natural would be to add auto-complete filters and multiple applied filters. Also, perhaps data_hier

Re: build problem with databrowse

2007-04-19 Thread Michael K
On Apr 18, 1:57 pm, [EMAIL PROTECTED] wrote: > Hi all, > > I checked out a fresh copy of django-svn with databrowse contrib app included. > > I run 'python setup.py sdist' or 'python setup.py bdist_rpm' and the > templates-folder of databrowse is missing. > > Can somebody verify this ? > > Regard

Re: Generic login view bug suspection

2007-04-19 Thread James Bennett
On 4/19/07, mojo <[EMAIL PROTECTED]> wrote: > I think this might be a bug. Unexpected behaviour at least. > When I delete default Site object ('example.com'), generic login view raises > exception, as it is looking for Site with pk=1. We really need to document this a little better; if you delete

Re: Generic login view bug suspection

2007-04-19 Thread Michael K
On Apr 19, 10:47 am, "mojo" <[EMAIL PROTECTED]> wrote: > Hi. > > I think this might be a bug. Unexpected behaviour at least. > When I delete default Site object ('example.com'), generic login view raises > exception, as it is looking for Site with pk=1. Hello! I'm still a little new, but I bel

Re: selecting a framework ,

2007-04-19 Thread Jason McVetta
Django is a great framework for building custom web apps -- but I am not sure it is the most sensible solution for your needs. If what you want is standard ERP functionality, delivered over the web, there is no need for you to reinvent the wheel. Quite a few existing open source projects may meet

Generic login view bug suspection

2007-04-19 Thread mojo
Hi. I think this might be a bug. Unexpected behaviour at least. When I delete default Site object ('example.com'), generic login view raises exception, as it is looking for Site with pk=1. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Django Schema Migration

2007-04-19 Thread Mike H
Hi all, I've been working on a tool to give me an automated way of altering the schemas on servers I deploy my django applications to. I know about the schema-evolution branch, but the current approach of that isn't completely automated and the work seems to have stopped on it. The approach I h

Re: Doctest isn't running (0.96)

2007-04-19 Thread Ryan Alexander
Cool, thanks! BTW, also be weary of trailing spaces in the doctests, they can also screw things up for example: ... >>> suite1.runday.all() [] """ That tested fine but: ... >>> suite1.runday.all() [] |<- line actually ends here """ failed. On 19/04/

Re: django comparison

2007-04-19 Thread Michael K
On Apr 19, 10:39 am, Tim Chase <[EMAIL PROTECTED]> wrote: > This was the contrib that Adrian unveiled at PyCon2007 that had a > room full of applause. I beleve he referred to it as giving "the > treatment" or "the works" to your data. It allows easy > exploration of a data-set, as it will create

Re: django comparison

2007-04-19 Thread Jeremy Dunck
On 4/19/07, Jay Parlar <[EMAIL PROTECTED]> wrote: ... > Is that what Adrian's going for? I briefly tried out databrowse the > other day, and couldn't quite see the point (realizing of course that > it's brand new). Well, I just meant views and models magically created based on the data. >From do

Re: django comparison

2007-04-19 Thread Tim Chase
>> Have you looked at trunk/django/contrib/databrowse yet? :) > > Wow, I don't update since 49xx, lo and behold, there's a new module > in contrib! Just briefly looking over it, it looks like it wraps > models for some black magic data browsing? And what's this? A plugin > hook? :) This was

Re: Doctest isn't running (0.96)

2007-04-19 Thread Michael K
On Apr 19, 10:17 am, Michael K <[EMAIL PROTECTED]> wrote: > On Apr 19, 9:03 am, "Ryan Alexander" <[EMAIL PROTECTED]> wrote: > > There's an easier (django) way to do this: > > def __str__(self): > return self.day.get_day_display() > > This will return the second value of the tuple, "S

Re: django comparison

2007-04-19 Thread Michael K
On Apr 19, 9:31 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 4/19/07, Nicola Larosa <[EMAIL PROTECTED]> wrote: > > > > > Michael K wrote: > > > The best part is, if you put together the models first, the clients can > > > start adding and manipulating content before you're done with all of

Re: Doctest isn't running (0.96)

2007-04-19 Thread Michael K
On Apr 19, 10:02 am, "Ryan Alexander" <[EMAIL PROTECTED]> wrote: > Solved my own problem, admitting to my own stupidity for the sake of > posterity and search engines. > > The problem was that one of the lines in the test had an extra space > in it before the prompt, (I was using tabs btw, I don

Re: Doctest isn't running (0.96)

2007-04-19 Thread Michael K
On Apr 19, 9:03 am, "Ryan Alexander" <[EMAIL PROTECTED]> wrote: > Here's the code at the top of my models.py file: [snip] > def __str__(self): > if self.day is None: > return 'undefined' > else: > return WEEKDAY_CHOICES[int(self.day)][1] There's an ea

Re: selecting a framework ,

2007-04-19 Thread Jay Parlar
On 4/19/07, gops <[EMAIL PROTECTED]> wrote: > > Hey thanks for those coolest links , i think this will be enough for > me getting started , > > i am from hard core c c++ programming background taking babystep in > web development , so my target it to "learn one thing that do it > all" , and after

Re: django comparison

2007-04-19 Thread Jay Parlar
On 4/19/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > On 4/19/07, Nicola Larosa <[EMAIL PROTECTED]> wrote: > > The next step is doing away with a predefined model altogether. Semantic > > web CMS, anyone? ;-) > > Have you looked at trunk/django/contrib/databrowse yet? :) Is that what Adrian's

Re: selecting a framework ,

2007-04-19 Thread gops
Hey thanks for those coolest links , i think this will be enough for me getting started , i am from hard core c c++ programming background taking babystep in web development , so my target it to "learn one thing that do it all" , and after much of googling , i think django is the right choice ,

Re: Doctest isn't running (0.96)

2007-04-19 Thread Ryan Alexander
Solved my own problem, admitting to my own stupidity for the sake of posterity and search engines. The problem was that one of the lines in the test had an extra space in it before the prompt, (I was using tabs btw, I don't know how it got there.) Anyway, that extra space made the whole thing be

Re: Spanish tutorial

2007-04-19 Thread Michael K
On Apr 19, 9:07 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > +1 > > " > A veces da la impresión de que hay un concurso del tipo ¡Con XXX monto > una aplicación del tipo YYY en ZZZ minutos ! ó ¡Mi framework lava más > blanco! > > No vamos a entrar en el juego. > " > > Thank you. :) A fair shak

Re: selecting a framework ,

2007-04-19 Thread Michael K
On Apr 19, 9:17 am, gops <[EMAIL PROTECTED]> wrote: > Hi , > > I want to develop a ERP for very small business ( two - three use + > customer : normally not more than 10 people using the erp ) , I know a > little bit of php , but i am interested in django as my platform , > > my question is , is t

Re: django comparison

2007-04-19 Thread Michael K
On Apr 19, 9:23 am, Nicola Larosa <[EMAIL PROTECTED]> wrote: > Michael K wrote: > > The best part is, if you put together the models first, the clients can > > start adding and manipulating content before you're done with all of the > > functionality - just give them access to the admin panel, i

Re: Resize images on demand

2007-04-19 Thread Michel Thadeu Sabchuk
Hi Robbin, > > I've done a method to resize images on demand on a template, it is a > > simple filter that made use of PIL.Image, see the following template > > code: > > Sounds similair to the nesh thumbnail > utils:http://code.google.com/p/django-utils/wiki/Thumbnail Hugh, very similar :), bu

Re: django comparison

2007-04-19 Thread Jeremy Dunck
On 4/19/07, Nicola Larosa <[EMAIL PROTECTED]> wrote: > > Michael K wrote: > > The best part is, if you put together the models first, the clients can > > start adding and manipulating content before you're done with all of the > > functionality - just give them access to the admin panel, if you wa

Re: django comparison

2007-04-19 Thread Nicola Larosa
Michael K wrote: > The best part is, if you put together the models first, the clients can > start adding and manipulating content before you're done with all of the > functionality - just give them access to the admin panel, if you want. The next step is doing away with a predefined model altoge

selecting a framework ,

2007-04-19 Thread gops
Hi , I want to develop a ERP for very small business ( two - three use + customer : normally not more than 10 people using the erp ) , I know a little bit of php , but i am interested in django as my platform , my question is , is there any such system available which i can look at to get some i

Re: Spanish tutorial

2007-04-19 Thread Jeremy Dunck
On 4/19/07, Michael K <[EMAIL PROTECTED]> wrote: ... > Your English is better than my Spanish (and probably my own English) - > from what I can comprehend, the tutorial looks very thorough and well > done! +1 " A veces da la impresión de que hay un concurso del tipo ¡Con XXX monto una aplicación

Doctest isn't running (0.96)

2007-04-19 Thread Ryan Alexander
Here's the code at the top of my models.py file: from django.db import models from django.newforms import forms, widgets from datetime import datetime # Create your models here. WEEKDAY_CHOICES = ( (0, 'Monday'), (1, 'Tuesday'), (2, 'Wednesday'), (3, 'Thursday'), (4, 'Friday'

Best practices for large volumes of data?

2007-04-19 Thread Tim Chase
I've been struggling with getting Django's defaults to play nicely with our rather large data-sets. For small data-sets, Django works like a charm. However, our company manages around tens of thousands of phones for other companies (and then there's the call-detail for many of those accounts

Re: Spanish tutorial

2007-04-19 Thread Michael K
On Apr 19, 5:36 am, David Asorey Álvarez <[EMAIL PROTECTED]> wrote: > I've written a tutorial in Spanish, maybe it could interest to some of > you. > This document lives at:http://davidasorey.net/static/django-tutorial/ > > Best, > > -- > Davidhttp://davidasorey.net > > P.S.: Excuse my poor syn

Re: django comparison

2007-04-19 Thread Michael K
On Apr 18, 9:40 pm, M Harris <[EMAIL PROTECTED]> wrote: > On Wednesday 18 April 2007 14:22, [EMAIL PROTECTED] wrote:> For what it's > worth, I found Django to be LESS work than Mambo/Joomla, > > just because I wasted an ungodly amount of time trying to make Mambo > > do what I wanted. > >

Re: Running tests - minor problem with fixtures

2007-04-19 Thread Russell Keith-Magee
On 4/19/07, jararaca <[EMAIL PROTECTED]> wrote: > > > The most likely cause I can think of is that your test extends > > unittest.TestCase, not django.test.TestCase. > > Yes, you're right indeed. I have corrected this but still the fixture > is not found + the tests now take 3 minutes instead of h

Re: Resize images on demand

2007-04-19 Thread Robbin
> I've done a method to resize images on demand on a template, it is a > simple filter that made use of PIL.Image, see the following template > code: Sounds similair to the nesh thumbnail utils: http://code.google.com/p/django-utils/wiki/Thumbnail --~--~-~--~~~---~

Re: puzzeled by possible inconsistency in queery set.

2007-04-19 Thread MerMer
Many thanks Macolm that's very clear. can't replicate the error any > > longer - I do apologize for wasting your time. > > > However, one additional question.. is there an easy way to a record > > from a queery set dynamically (without touching the DB)? What I'm > > looking do do in my view is

Re: Running tests - minor problem with fixtures

2007-04-19 Thread jararaca
> The most likely cause I can think of is that your test extends > unittest.TestCase, not django.test.TestCase. Yes, you're right indeed. I have corrected this but still the fixture is not found + the tests now take 3 minutes instead of half a second. I think I'll stick to the "initial_data" vari

Re: Encoding in models.py (and maybe other files too)

2007-04-19 Thread Malcolm Tredinnick
On Thu, 2007-04-19 at 10:45 +, ashwoods wrote: > ah, i code for english, german, spanish. :) > > but as far as i know, the encoding declaration is only needed if you > have special chars in _code_ as opposed to strings. your strings can > be unicode without having to declare an encoding for

Re: Running tests - minor problem with fixtures

2007-04-19 Thread Russell Keith-Magee
On 4/19/07, jararaca <[EMAIL PROTECTED]> wrote: > > Is this an error in the documentation, a future feature or did I miss > anything? Hi Micha, The most likely cause I can think of is that your test extends unittest.TestCase, not django.test.TestCase. The fixture list is only loaded if your unit

Re: Encoding in models.py (and maybe other files too)

2007-04-19 Thread [EMAIL PROTECTED]
On 19 avr, 12:45, ashwoods <[EMAIL PROTECTED]> wrote: > ah, i code for english, german, spanish. :) > > but as far as i know, the encoding declaration is only needed if you > have special chars in _code_ as opposed to strings. your strings can > be unicode without having to declare an encoding fo

Using a block more than once.

2007-04-19 Thread John Morton
I have some templates I'm using to produce static content, and in the base template, there's a block called 'title' used for the page title. I also want to use the same text content for the page title displayed in the body, and in a few other places, however this doesn't appear to be possible.

Re: Encoding in models.py (and maybe other files too)

2007-04-19 Thread ashwoods
ah, i code for english, german, spanish. :) but as far as i know, the encoding declaration is only needed if you have special chars in _code_ as opposed to strings. your strings can be unicode without having to declare an encoding for the python file. my opinion is that if you can, you should e

  1   2   >