Re: I would like some feedback about address model snippet...

2008-12-24 Thread Kenneth Gonsalves

On Wednesday 24 Dec 2008 3:02:10 pm klein.steph...@gmail.com wrote:
> I've write a address model snippet at :
>
> http://www.djangosnippets.org/snippets/1177/
>
> I would like to know if you see some missing fields or mistake/
> misnamed fields ?

why are you putting this in djangosnippets??? Djangosnippets is meant for code 
snippets that other people can use. Please remove this from djangosnippets 
and post it in djangopaste.com for comments.

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Why doesn't syncdb ever modify or drop tables anymore?

2008-12-25 Thread Kenneth Gonsalves

On Thursday 25 Dec 2008 11:41:38 am Fluoborate wrote:
> Used to add tables and modify tables if necessary. I don't remember if
> it ever dropped tables. It was great, I would modify models.py and
> syncdb and it would just work

afaik it never modified tables and never will

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: no module named _sqlite3 on Mac OS X

2008-12-25 Thread Kenneth Gonsalves

On Thursday 25 Dec 2008 6:20:18 pm Rick Dooling wrote:
> and can create projects etc.  Using Holovaty and Kaplan-Moss book,

that book deals with django .96 not with latest svn

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Do you recommend "Practical Django Projects"?

2009-01-05 Thread Kenneth Gonsalves

On Monday 05 Jan 2009 2:05:16 pm HB wrote:
> I'm trying to learn Django, what to do right now? :p

use the onsite tutorial

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Do you recommend "Practical Django Projects"?

2009-01-05 Thread Kenneth Gonsalves

On Monday 05 Jan 2009 2:10:34 pm David Zhou wrote:
> >> and covers a lot of materials.
> >> What do you think?
> >
> > As the author, I recommend waiting a couple months.
>
> Are you planning to update Practical Django Projects to 1.0?

isnt that obvious from the answer?

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Shouldn't blank=True imply null=True?

2009-01-05 Thread Kenneth Gonsalves

On Tuesday 06 Jan 2009 12:50:24 am Mike wrote:
> If the type is not a string, and blank=True is set, shouldn't
> null=True be implied?

no - blank=True is enforced at django level whereas null=True is enforced at 
DB level and blank != null.

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Your IDE of choice

2009-01-06 Thread Kenneth Gonsalves

On Tuesday 06 Jan 2009 5:18:57 pm HB wrote:
> What is your favorite IDE for coding Django projects?

geany

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: advice in model design - principally

2009-01-15 Thread Kenneth Gonsalves

On Thursday 15 Jan 2009 5:35:56 pm _Sebastian_ wrote:
> I head a search and came across
> http://publib.boulder.ibm.com/infocenter/idshelp/v10/index.jsp?topic=/com.i
>bm.ddi.doc/ddi27.htm

basically you would need to read up on the first three normal forms, try to 
implement them and then break them a bit for speed if needed. Any site that 
describes the normal forms is ok for that - this one seems ok.

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: advice in model design - principally

2009-01-15 Thread Kenneth Gonsalves

On Thursday 15 Jan 2009 6:04:13 pm _Sebastian_ wrote:
> Could you elaborate on what you mean with 'then break them a bit for
> speed'?

well, 3 normal forms is the ideal - but we live in a real world. So after 
normalising the database, it is often found that repeating a field, or adding 
a field that can be calculated from existing fields in a table speeds up 
things enormously without significantly compromising database integrity. So 
we do it. It may not be necessary in a smaller database, but may be needed in 
a bigger one. 

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: meet issue in Django tutorail

2009-01-16 Thread Kenneth Gonsalves

On Friday 16 Jan 2009 4:51:22 pm syo wrote:
> here , my question is :  need realIy add  "mysite" before the "polls"?

if 'mysite' is in your path then obviously you just need to add 'polls'

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: meet issue in Django tutorail

2009-01-17 Thread Kenneth Gonsalves

On Saturday 17 Jan 2009 12:00:33 pm syo wrote:
> thanks for replay , then is it safe to say there is something wrong in
> this tutorial?

no - nothing wrong with the tutorial. These things depend on what your system 
path is like

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How do you get the time and date out of a datetimefield object?

2009-01-17 Thread Kenneth Gonsalves

On Saturday 17 Jan 2009 2:13:29 pm DragonSlayre wrote:
> As I'm relatively new to python and django, I'm unsure how to get the
> date and time out of a DateTimeField.
>
> How I usually work with this sort of thing is to 'python manage.py
> shell' and then import whatever class i'm interested in and then do a
> dir() on the object to find out what methods and fields it has.
>
> My question is for the experienced programmers - if you were in my
> position, how would you go about finding out how to get a date and
> time out of a DateTimeField?

same way as you do - or else look at the docs. BTW, it is better to just go to 
the python shell to find out these things. The only difference between you 
and an experienced programmer is that they would have done this long ago and 
remember the results.

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How do you get the time and date out of a datetimefield object?

2009-01-17 Thread Kenneth Gonsalves

On Saturday 17 Jan 2009 2:42:16 pm Malcolm Tredinnick wrote:
> > How I usually work with this sort of thing is to 'python manage.py
> > shell' and then import whatever class i'm interested in and then do a
> > dir() on the object to find out what methods and fields it has.
>
> dir() is typically less useful than help(), particularly when you're
> starting out, since the latter's presentation is better and includes the
> docstrings.

what you need to do is to use dir() to find out the method names and help on 
the method you want to get more info

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How do you get the time and date out of a datetimefield object?

2009-01-17 Thread Kenneth Gonsalves

On Saturday 17 Jan 2009 2:57:21 pm Malcolm Tredinnick wrote:
> > what you need to do is to use dir() to find out the method names and help
> > on the method you want to get more info
>
> Do I?

sorry - I did not mean *you* - I was addressing the OP and trying to 
supplement what you were saying. I wouldn't dream of advising you on this 
point.

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How do you get the time and date out of a datetimefield object?

2009-01-17 Thread Kenneth Gonsalves

On Saturday 17 Jan 2009 3:33:58 pm Kenneth Gonsalves wrote:
> On Saturday 17 Jan 2009 2:57:21 pm Malcolm Tredinnick wrote:
> > > what you need to do is to use dir() to find out the method names and
> > > help on the method you want to get more info
> >
> > Do I?
>
> sorry - I did not mean *you* - I was addressing the OP and trying to
> supplement what you were saying. I wouldn't dream of advising you on this
> point.

further apologies - I did not know that one could run help on a module - just 
ran help(sys) and understood what you were saying.

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: NameError: global name ‘datetime’ is not defined

2009-01-19 Thread Kenneth Gonsalves

On Monday 19 Jan 2009 3:01:29 pm jazz wrote:
> p.was_published_today() Traceback (most recent call last):
> File "", line 1, in File "c:\projects\mysite..\mysite\polls
> \models.py", line 11, in was_published_today return self.pub_date.date
> () == datetime.date.today() NameError: global name 'datetime' is not
> defined

you need to import datetime

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Can someone please recommend a book I should get?

2009-01-20 Thread Kenneth Gonsalves

On Wednesday 21 Jan 2009 12:56:53 pm elithrar wrote:
> And there's also the Google Group if you get stuck

and IRC channel

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Recommendation on understanding CSS

2009-01-21 Thread Kenneth Gonsalves

On Wednesday 21 Jan 2009 3:24:22 pm bruno desthuilliers wrote:
> The references are on the w3c site - but they are, well, references. A
> good starting point for actually learning how to use css is A List
> Apart:
>
> http://alistapart.com/

that is not a starting point - that is nirvana

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



why not load the index first?

2009-01-22 Thread Kenneth Gonsalves

hi,

wrt django documentation, why not load the index first - on the left? Also it 
would be helpful if the following links are at the top of the index:

Search

* Latest
* 1.0
* 0.96
* All

Browse

* Prev: django.contrib.webdesign
* Next: django-admin.py and manage.py
* Table of contents
* General Index
* Global Module Index

it would be immensely helpful.
-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: why not load the index first?

2009-01-22 Thread Kenneth Gonsalves

On Thursday 22 Jan 2009 6:48:11 pm Malcolm Tredinnick wrote:
> I think you have not described whatever problem it is that you're trying
> to solve particularly well. "Index" has at least three different
> meanings for the documentation. I'm assuming you mean the content index
> (/dev/genindex/), but maybe you mean something else.

ok, the problem is simple: in the old days it was dead easy to find relevant 
parts of the docs. Now it is not. I thought it was only me, but I have seen 
enough comments on IRC to find that it is general. The main document page for 
before restructuring was good. Now the only way to find anything is through 
google search. So my request is very simple: if we cannot go back to the old 
structure, at least put google search and the module/global index as the 
*first* items on the left hand side of the page so we can go there. After a 
gap, I am coding a new django site, and decided to do it from scratch with no 
copy/paste and checking the docs. It is proving difficult. Please do not 
think I am criticising the docs - I am not. But I *am* viewing the docs as an 
end user and putting forward my feedback.

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: why not load the index first?

2009-01-22 Thread Kenneth Gonsalves

On Thursday 22 Jan 2009 7:31:07 pm Malcolm Tredinnick wrote:
>  But please do understand that this isn't a
> change that is necessarily universally better for everybody. It does
> harm the content presentation, for example.

ok - I wont raise this again - but please check out the comments on the IRC 
channel about the docs. End users are not happy.

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Multiple static media roots?

2009-01-24 Thread Kenneth Gonsalves

On Saturday 24 Jan 2009 6:59:57 pm John Baker wrote:
> I need to separate static media roots into "static" (belonging to
> application - css, images etc) and "dynamic" (uploaded by users with
> filefields etc).
>
> The point is that truly "static" media doesn't change and is part of
> the deployed code. Dynamic "static" media is uploaded and kept in a
> separate directory not within the application code.

I have 2 - one is the standard media directory where users upload files and is 
outside the project directory, the other I call sitemedia which is a 
directory under the the project directory with three directories under it - 
css, js and images. This is mapped in apache conf to 
http://myproject.com/sitemedia/ - and it is referred to as /sitemedia/ in the 
templates. This sitemedia directory is also under version control as part of 
the site.

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



problem with admin in a .90 site

2009-02-02 Thread Kenneth Gonsalves

hi,
I have an old site running on revision 2486 - had not touched it for years and 
since it wasnt broken nor needed new features, I did not upgrade it. A new 
model was required, so I added it, but it was not appearing in sqlall 
statement. The application is called 'web' and under the directory 'web' 
there are 2 files 'models.py' and 'views.py'. The new model was 
called 'Affiliation', and the site started barfing saying 'cannot import 
affiliations'. I then noticed that views.py had a statement:

from myapp.web.models.web import *

there is a directory called myapp.web.models, but that only held an 
__init__.py file which was empty. In those days django required for models in 
an app called web, to have a directory like
web/models/web.py and /web/views/web.py. Apparently some years back I had 
changed this to the current directory structure as web/views.py and 
web/models.py. But I could not understand how the site was working until I 
saw on the production server a file called ~/models/web.pyc. The site had 
been using this all these years which is why my new model was not noticed. I 
restored the old directory structure - the site load fine now. But - in 
admin, the only things that show up are are auth and core - no sign of 'web'. 
Any clues (I know I should not expect people to help out on such old stuff, 
but if there *are* any oldtimers with long memories ...)
-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: problem with admin in a .90 site

2009-02-02 Thread Kenneth Gonsalves

On Monday 02 Feb 2009 2:36:49 pm Kenneth Gonsalves wrote:
> there is a directory called myapp.web.models, but that only held an
> __init__.py file which was empty. In those days django required for models
> in an app called web, to have a directory like
> web/models/web.py and /web/views/web.py. Apparently some years back I had
> changed this to the current directory structure as web/views.py and
> web/models.py. But I could not understand how the site was working until I
> saw on the production server a file called ~/models/web.pyc. The site had
> been using this all these years which is why my new model was not noticed.
> I restored the old directory structure - the site load fine now. But - in
> admin, the only things that show up are are auth and core - no sign of
> 'web'.

i can access the changelists etc by directly entering the url:
/web/admin/web/matches/ for example. But on clicking the 'home' link, the 
screen for web is not shown

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: problem with admin in a .90 site

2009-02-02 Thread Kenneth Gonsalves

On Monday 02 Feb 2009 3:27:33 pm Daniel Roseman wrote:
> > Any clues (I know I should not expect people to help out on such old
> > stuff, but if there *are* any oldtimers with long memories ...)
> > --
> > regards
> > KGhttp://lawgon.livejournal.com
>
> Was this pre-magic removal? I seem to remember you had to import your
> models from a magic Django namespace, rather than from the actual
> module location. Something like:
> from django.models.web import model1, model2

pre MR, as I said, everything is working - but the models are not appearing in 
the admin. Only 'auth' and 'core' are appearing. I have 4 other old sites 
running on the same django, and admin is working ok there.

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: #django community etiquette observations

2009-02-03 Thread Kenneth Gonsalves

On Wednesday 04 Feb 2009 1:57:46 am sierramtns wrote:
> there are certainly other people acting as such in varying degrees,
> and i only cite Magus- because of the twitter feed and django log
> entry being available to exemplify this pattern of behavior (god help
> me if ive started a flamewar.)

there was a long flame war about this on the developer list some time back. 
The general consensus is that Magus- is perhaps the most valuable person on 
the channel and most of us do not mind being 'insulted' as long as he solves 
our problems - and he does. In fact someone did a grep on 'Magus-' + 'thank 
you' and found a zillion matches.

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: #django community etiquette observations

2009-02-03 Thread Kenneth Gonsalves

On Wednesday 04 Feb 2009 11:31:28 am Russell Keith-Magee wrote:
> > there was a long flame war about this on the developer list some time
> > back. The general consensus is that Magus- is perhaps the most valuable
> > person on the channel and most of us do not mind being 'insulted' as long
> > as he solves our problems - and he does. In fact someone did a grep on
> > 'Magus-' + 'thank you' and found a zillion matches.
>
> Kenneth - Please be _very_ careful about representing "the general
> consensus" of Django Developers. Just because a discussion happens on
> Django Developers, doesn't mean it's "official Django policy". You're
> not a core developer

sorry - I did not really mean that the developers had a consensus - if what I 
said implied that, it is wrong. Perhaps I could change that to: 'Most of the 
people on the thread were of the opinion I expressed above'. I am neither a 
core developer nor a developer at all as far as django is concerned - so any 
opinion I have expressed is purely my personal opinion and my personal 
reading of the discussion.

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Overriding admin template: index.html

2009-02-03 Thread Kenneth Gonsalves

On Wednesday 04 Feb 2009 1:18:53 pm knight wrote:
> I want to override admin template: index.html.
> I have found the template but not the view that renders it.
> Maybe someone know how django rendering index.html template and where
> I can find the view?

does this help?
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Overriding admin template: index.html

2009-02-04 Thread Kenneth Gonsalves

On Wednesday 04 Feb 2009 2:05:37 pm knight wrote:
> Thanks for the fast reply.
> I read this but I still cannot find the view that renders index.html.

well, according to this link, you do not need the view in order to override 
index.html of admin.

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: CMS apps feature comparison matrix

2009-02-06 Thread Kenneth Gonsalves

On Friday 06 Feb 2009 5:57:32 pm akaihola wrote:
> Some authors of the apps already sent corrections, and further
> refinement is of course welcome either by editing the page or sending
> a follow-up here or to me [3].

cool - but I think it is better if you had the features as column headers and 
the CMSs as row headers - easier to compare.

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Installing Django to a newer version of python

2009-02-06 Thread Kenneth Gonsalves

On Friday 06 Feb 2009 6:43:53 pm BrianE wrote:
> how can I get mod_python, which is needed by apache, to load in the
> python 25 directoty and not in the 24 directory?

only if etch  backports has it

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Why Syntax Errors in URLconf are Silent?

2009-02-06 Thread Kenneth Gonsalves

On Saturday 07 Feb 2009 12:05:01 pm Guy Rutenberg wrote:
> I've included a app specific URLconf in my main URLconf file. I had
> some syntax errors in the included URLconf file, however instead of
> throwing an exception about the syntax error, an exceptions was thrown
> when I've tried to use the "reverse()" function on the URLs of the
> included URLconf.

what type of syntax error? I put an extra comma in my urls file and the app 
promptly crashed.

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Why Syntax Errors in URLconf are Silent?

2009-02-07 Thread Kenneth Gonsalves

On Saturday 07 Feb 2009 2:38:46 pm Guy Rutenberg wrote:
> > what type of syntax error? I put an extra comma in my urls file and the
> > app promptly crashed.
>
> I wrote "pattenrs" instead of "patterns" and the sure did crash. But
> instead of crashing and reporting a Syntax Error exception it reported
> a failure to do a reverse lookup, which I found to be confusing.

that error message is a little confusing - if, for example, you have a url 
pointing to a view that doesnt exist, you get a message like 'module views' 
does not exist.

-- 
regards
KG
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



admin is not allowing users to see the main page

2009-02-25 Thread Kenneth Gonsalves

hi,

I have a django site which has been working well, with an app name 'web' - 
recently I some changes in the database and now find that all users (including 
superusers) are blocked from viewing web in the main admin page. They can view 
and edit other pages under 'web' by typing in the url. Where do I go to reset 
the permission for 'web' in the db?
-- 
regards
kg
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Software for making screen mockups/application flow for django projects?

2009-02-27 Thread Kenneth Gonsalves

On Friday 27 February 2009 17:57:58 MrMuffin wrote:
> My main goal is to have a complete spec and visual lay out of my
> project before I start coding, instead of the old step-by-step-slowly-
> into-complete-mess-approach I usually use.

wont work ;-) django is geared for the old step-by-step-rapidly-evolving into 
a complete app approach. Generally one has only a vague idea of the end 
product which evolves in production - one cannot really meet deadlines if the 
complete spec and visual lay out thingie is done. 
-- 
regards
kg
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



[slightly OT] Web deployment certification

2009-03-08 Thread Kenneth Gonsalves

Hi,

I work with a Government department with a mandate to spread FOSS/OSS in both 
formal and non-formal education sector. We are planning to introduce a web 
deployment certification. A person may be a specialist in say RDBMS or design, 
but if he is able to deploy his applications (especially open source) - he 
stands a much better chance of being recruited or getting work. I had proposed 
testing in a hands on session the ability to:

1. Set up virtual host with apache/nginx/lighty
2. Set up and RDBMS
3. Use a 'P' language for business logic
4. Build a front end CSS/HTML/JS
5. Store the code in a repository
6. Set up a bugtracking system
7. Demonstrate basic knowledge of the HTTP protocol

Programming ability per se will not be tested. I am getting a lot of flak 
saying: 'this is not what industry wants'. I would appreciate any feedback 
from django-users (we are also, in the next phase, contemplating a django 
certification). I know this is somewhat OT, but after all it *is* in the cause 
of promoting Open Source so please forgive me.
 
-- 
regards
kg
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: I can't decide on a migration framework

2009-03-09 Thread Kenneth Gonsalves

On Tuesday 10 March 2009 04:53:25 Ben Davis wrote:
> are you saying that django-evolution does not support migrating between
> "versions"  (ie up and down)?

no
>
> I'm mostly trying to get an idea of what migration frameworks django
> devopers use, and why they prefer it.

most do not use frameworks for migration - it is done manually. 

-- 
regards
kg
http://lawgon.livejournal.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: adding contraints on admin

2007-07-27 Thread Kenneth Gonsalves


On 27-Jul-07, at 1:21 PM, james_027 wrote:

> I really love Django admin, however how can I add customer validation
> or contraints to my models?

there is an on-going GSoc project for this - and a thread on this  
list started yesterday. You could check that out

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: website template compatible with django

2007-08-02 Thread Kenneth Gonsalves


On 01-Aug-07, at 12:32 PM, Ben wrote:

> I am a total Django newbie.  Hence the probably silly questions:
> There are professional-looking website templates for sale in several
> places (templatemonster, etc).
> Can those be used easily with Django ?

yes

> Do they need to be designed specifically for Django ?

no

> Do you know of
> any vendor that does it ?
> If not, what to look for in a template order to make sure it will be
> relatively easy to use with Django ?

the template part is completely independant of the rest of django -  
any template that follows the principles of good HTML design using  
css, javascript, ajax or whatever will work with Django - even bad  
design will work. The more modular the design of the template, the  
better - but again that is not django specific.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: how to handle forms with more than submit button

2007-08-02 Thread Kenneth Gonsalves


On 03-Aug-07, at 8:06 AM, james_027 wrote:

>> create different URLs (and thus different views) for the different
>> buttons and then redirect to wherever you want to go.
>>
>
> How do I create a different URL for different buttons but under one
> form?

each submit button has a name - say 'add', 'edit', 'delete', so write  
code like:
if 'add' in request.POST.keys():
  do something
if 'add' in request.POST.keys():
  do something


-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: how to handle forms with more than submit button

2007-08-02 Thread Kenneth Gonsalves


On 03-Aug-07, at 10:12 AM, Kenneth Gonsalves wrote:

>
>
> On 03-Aug-07, at 8:06 AM, james_027 wrote:
>
>>> create different URLs (and thus different views) for the different
>>> buttons and then redirect to wherever you want to go.
>>>
>>
>> How do I create a different URL for different buttons but under one
>> form?
>
> each submit button has a name - say 'add', 'edit', 'delete', so write
> code like:
> if 'add' in request.POST.keys():
>   do something
> if 'add' in request.POST.keys():
>   do something

oops s/add/delete/

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: website template compatible with django

2007-08-03 Thread Kenneth Gonsalves


On 03-Aug-07, at 2:44 PM, Chris Hoeppner wrote:

> Oh and please don't call Template Monster "professional"... Please...

thank god they dont offer free django templates

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: mod_python/django problems

2007-08-03 Thread Kenneth Gonsalves


On 03-Aug-07, at 4:46 PM, Aljosa Mohorovic wrote:

> on few blogs/web sites it is stated that > 30 django sites on one
> server running apache/mod_python have some issues, like untraceable
> errors and wrong site displaying for some domain.
> any comments on this?

is this an official bug? I havent heard of it - although i have a  
server with about 10 sites and have found one site once or twice  
mixing with another in admin. But it was only in my browser, and  
since username and password were the same for both sites I felt it  
was a browser cache problem - and it was only for the initial display  
in admin. None of the users of the sites ever saw anything of this.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: mod_python/django problems

2007-08-03 Thread Kenneth Gonsalves


On 03-Aug-07, at 6:36 PM, David Reynolds wrote:

>> per server. i have a situation where i have many small sites.
>> anybody here using mod_python for larger number of sites per server?
>
> We have around 30 and have noticed the problems you've mentioned..

could you mention what exactly the problems you are facing - as i  
mentioned, on one site i have faced the problem of the initial screen  
in admin loading with the fields of the admin screen of the previous  
site accessed in another browser tab. As mentioned I felt that this  
is a browser cache problem as the two sites are practically identical  
and username and password are the same for the two sites. But the  
problem goes away after any action is performed.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: age in years calculation

2007-08-04 Thread Kenneth Gonsalves


On 03-Aug-07, at 10:02 PM, Nis Jørgensen wrote:

>> how about surrounding the statement with a try and work the leap year
>> to regular year case with the exception?
> That seems like overkill. There isn't really any leap-year handling
> necessary:
>
> import datetime.date as date

this should be:
from datetime import date - the import statement above gives an error

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: '_QuerySet' problem

2007-08-05 Thread Kenneth Gonsalves


On 05-Aug-07, at 6:19 PM, Marco A. wrote:

> >>> p.user

p.User
-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: database permissions

2007-08-08 Thread Kenneth Gonsalves


On 08-Aug-07, at 6:51 PM, Stephen Bunn wrote:

> Is there any documentation anywhere that describes setting up correct
> database permissions for use with Django.

use whatever permissions you are happy with. As long as the user  
under which django accesses the database, can do everything django  
requires to be done, it's fine. I dont think this is any different  
from any other cgi application accessing a database.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: database permissions

2007-08-08 Thread Kenneth Gonsalves


On 08-Aug-07, at 7:19 PM, Stephen Bunn wrote:

> therein lies the problem.  What is 'everything' that Django  
> requires to
> be done?
>
> I know it obviously needs to be able to execute SELECT, UPDATE, and
> INSERT statements, but what about ALTER? SHOW? does it need to create
> views? create indexes? what about locking tables and creating  
> temporary
> tables?

you have to divide the tasks into those that you want to do through  
django and those that you want to do outside django - django needs  
permissions to do the first set. I dont think one can be clearer than  
that.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: database permissions

2007-08-08 Thread Kenneth Gonsalves


On 08-Aug-07, at 10:13 PM, James Bennett wrote:

>> constructing the SQL.  With Django, it is building the SQL for me.
>
> Your best bet is to thoroughly read the documentation on the ORM; once
> your tables are created (it can create them for you, but you don't
> have to let it do that -- instead you can have it print the SQL out to
> a file for you to execute yourself), the ORM only ever does SELECT,
> INSERT and UPDATE, and it's fairly obvious which ORM methods perform
> which queries.

in fact, even at the data level, you could, outside django do  
inserts, updates and deletes and allow the django user to use only  
selects that view the data. In which case the django user would have  
only readonly access to the database.

So your choices are:

1. django user gets create, drop rights on tables and  indexes.  
select, insert, update and delete. Alter table rights dont arise  
until some form of schema evolution makes it's way into trunk as  
django currently cannot manipulate individual columns in tables

2. do the db structure manually outside django and give django rights  
only over the data - select, insert, update, delete

3. do even data manipulation outside allow django user readonly rights.

There are rigid frameworks around which mandate that *all* actions  
*must* be done through the framework, otherwise everything gets  
borked. Django is much more flexible here. So, for example, django  
doesnt do check contraints - but that doesnt mean that a django app  
cannot have check constraints. All it means that you have to set  
these up in the database manually and maybe write some stuff in the  
views to catch the db errors. (check constraints are a GSoc project,  
so maybe django will have them soon)

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django built-in web server

2007-08-10 Thread Kenneth Gonsalves


On 10-Aug-07, at 12:19 PM, james_027 wrote:

> Can I use the django's built in web server in an intranet enviroment
> where the maximum users could be not more than 50 users? I am just
> asking this for the purpose for easy deployment :).

sure
> I am very newbie,
> and trying to avoid apache

why?

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django built-in web server

2007-08-10 Thread Kenneth Gonsalves


On 10-Aug-07, at 1:19 PM, james_027 wrote:

>>
>>> I am very newbie,
>>> and trying to avoid apache
>>
>> why?
>>
>
> Just in case a problem occur, I think it could be more easy to
> troubleshoot it without being a apache expert? Or if threre's a patch
> for the client's program that need to be apply it could be much
> easier?

when your company becomes bigger, you will have to use apache - so  
might as well get used to it now. It isnt a big deal and once you get  
used to it you will be very happy.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: small error in django documentation ...

2007-08-14 Thread Kenneth Gonsalves


On 14-Aug-07, at 2:47 PM, Malcolm Tredinnick wrote:

>> PostgreSQL, MySQL, Oracle and SQLite (the latter doesn't require a
>> separate server to be running)."

(SQLite doesn't require a separate server to be running)   <---  
will stay true even if other rdbms names are added after 'SQLite'

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: 0.96 tarball is corrupt

2007-08-15 Thread Kenneth Gonsalves


On 15-Aug-07, at 12:59 AM, Tim Chase wrote:

>> I've downloaded the tarball several times - each time the archiver
>> shows it as corrupt (other tarballs work fine).  Using Ubuntu Feisty.
>> (and the Feisty backport package is broken as well).
>
> Given the multiple responses that the tarball seems fine (tested
> on WinXP, OS X, FreeBSD, Ubuntu Dapper, and I tested it on
> OpenBSD), I suspect the problem is on your machine.  What are you
> using to investigate its contents?

if the download was done with firefox, it is possible that the  
download is not complete - firefox will not tell you that it was not  
complete - it will just say 'done'. Please check the size of the file  
you have downloaded

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django hosting companies

2007-08-15 Thread Kenneth Gonsalves


On 15-Aug-07, at 10:33 AM, Jay Parlar wrote:

> I have Django sites hosted with both DreamHost and Webfaction. While
> Dreamhost is pretty good, once you get it working, I recommend
> Webfaction. So much easier to setup, direct contact on the forums with
> the people who run it, it's just fantastic.

i agree

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Using Nesh Thumbnail - Not displaying correct dimensions

2007-08-15 Thread Kenneth Gonsalves


On 16-Aug-07, at 7:37 AM, Greg wrote:

> is all I see - .

are there spaces in your filename?

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Using Nesh Thumbnail - Not displaying correct dimensions

2007-08-15 Thread Kenneth Gonsalves


On 16-Aug-07, at 8:05 AM, Greg wrote:

> The file I uploaded was called 'IMG_0090'.  When I looked in the site-
> media folder it has been renamed to 'myphototest-photo-none'

try an image without '_' or spaces or special characters in the name

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Using Nesh Thumbnail - Not displaying correct dimensions

2007-08-16 Thread Kenneth Gonsalves


On 16-Aug-07, at 9:02 PM, Greg wrote:

> When the image gets uploaded the name of the image is myphototest-
> photo-none (without auto_rename attribute).  Isn't none supposed to be
> the object pk.  Shouldn't that be a 1,2,3 etc instead of none?

i'm afraid i cant help you further - I have been using Nesh Thumbnail  
right from it's first release, and the only issues i have faced is  
when there were spaces and unusual characters in the filename.  
Otherwise it works perfectly

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: updating models

2007-08-16 Thread Kenneth Gonsalves


On 17-Aug-07, at 6:15 AM, [EMAIL PROTECTED] wrote:

> There seems to be some trickery in updating a model that already has
> database entries.

There is no trickery involved. One thing people forget is that Django  
is a framework made up of python, sql, html, css and javascript. It  
simplifies and makes tasks easier, but in the last analysis, it is  
still python, sql, html, css and javascript. One of the givens in sql  
is the necessity of altering database structure after going into  
production. So far, django devels have not found a safe and sure way  
of automating the alteration made within a table - although there are  
several projects to implement schema evolution going. So in this case  
you do what you would anyway - fall back on sql and do it 'the hard  
way'. When you make a change within a model, run sqlall before the  
change, run sqlall after the change, compare the two, create a script  
to change the table and manually run that.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: updating models

2007-08-16 Thread Kenneth Gonsalves


On 17-Aug-07, at 6:35 AM, James Bennett wrote:

>> So how do I do it?
>
> http://www.google.com/search?hl=en=sql+alter+table=Google 
> +Search

an example:
http://www.djangosnippets.org/snippets/188/

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Using Nesh Thumbnail - Not displaying correct dimensions

2007-08-16 Thread Kenneth Gonsalves


On 17-Aug-07, at 6:49 AM, Greg wrote:

> Thanks for the reply.  When you use nesh and you upload a picture is
> the name of the picture:
>
> classname-fieldname-none.jpg?  Or does the filename contain the pk of
> the record?

no - it is just the name of the picture that is on my local hard disk

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Using Nesh Thumbnail - Not displaying correct dimensions

2007-08-16 Thread Kenneth Gonsalves


On 17-Aug-07, at 7:47 AM, Greg wrote:

> Kenneth,
> So in your models.py file do you use auto_rename=False?

i use an old version - at that time it didnt have the auto_rename  
feature
>
> This is what I have:
>
> photo = field.ImageWithThumbnailField(upload_to='site_media/')

thats what i have
>
> 
>
> When the picture is uploaded and saved in your site_media folder.
> Does it have the the same dimensions as the original file or does it
> have smaller dimensions?

same as original

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Template within a Template?

2007-08-21 Thread Kenneth Gonsalves


On 21-Aug-07, at 8:20 PM, b3n wrote:

> What is the python/django way of achieving this?

template inheritance

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Help with Django installation on OSX 10.4.10

2007-08-26 Thread Kenneth Gonsalves


On 26-Aug-07, at 11:51 AM, Brandon Taylor wrote:

> -bash: django-admin.py: command not found

what happens if you run /usr/local/bin/django-admin.py, that is, with  
the full path name. If it runs, then it means your path does not  
contain /usr/local/bin. If it doesnt run, your alias is borked.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



is 40 MB RAM enough?

2007-08-26 Thread Kenneth Gonsalves

Hi,

I have a site on WebFaction with 40 MB RAM. It is a very small site  
in the sense that it is used for administering an organisation, so  
would have just 2-3 users at a time, mainly doing admin stuff. The  
only load is when pdf reports are being generated. Leaving apache  
untweaked, the RAM usage shoots up - well over the 40 MB limit. I set  
MaxRequestsPerChild to 3. Even then, the limit gets crossed pretty  
fast. The question is: do I go on trying to tweak Apache? Or do I go  
in for more RAM?
-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: is 40 MB RAM enough?

2007-08-27 Thread Kenneth Gonsalves


On 27-Aug-07, at 3:05 PM, Iapain wrote:

> Yes it is, I am running a huge site on webfaction 40 MB, performance
> wise its excellent.

what is your RAM usage? How did you tweak apache to achieve that?

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: is 40 MB RAM enough?

2007-08-27 Thread Kenneth Gonsalves


On 27-Aug-07, at 4:07 PM, Graham Dumpleton wrote:

>> in for more RAM?
>
> BTW, have you also made sure you have read:
>
>   http://blog.webfaction.com/tips-to-keep-your-django-mod-python- 
> memory-usage-down

yes

>
> Maybe your size problems are due to not turning debug off.

it's off

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: is 40 MB RAM enough?

2007-08-27 Thread Kenneth Gonsalves


On 27-Aug-07, at 8:18 PM, Iapain wrote:

>> what is your RAM usage? How did you tweak apache to achieve that?
>
> I didnt check RAM usage, but site always work like express instead i
> did clean coding and tried to optimize my code.

this is the command that webfaction uses to check RAM usage:

  "ps -u yourusername -o rss,pid,command"

could you run it and check the output. Apparently they run this  
command now and then, and if it shows over 40 MB, you get a notice  
from them.


-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Choices cannot be marked for translation?

2007-08-28 Thread Kenneth Gonsalves

hi,

when i upgraded to the latest svn head, I found that all the places  
in admin that had drop downs for choices were blank. I had always  
marked my choices for translation like so:

article_type = (
("NW", _("News")),
("FT",_("Features")),
)

now, this doesnt work - when I remove the _(), then the choices  
appear. How do I then mark them for translation?

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Choices cannot be marked for translation?

2007-08-28 Thread Kenneth Gonsalves


On 28-Aug-07, at 9:55 PM, Chris Hoeppner wrote:

>> when i upgraded to the latest svn head, I found that all the places
>> in admin that had drop downs for choices were blank. I had always
>> marked my choices for translation like so:
>>
>> article_type = (
>> ("NW", _("News")),
>> ("FT",_("Features")),
>> )
>>
>> now, this doesnt work - when I remove the _(), then the choices
>> appear. How do I then mark them for translation?
>>
>
> Make sure to use gettext_lazy

i *am* using: from django.utils.translation import gettext_lazy as _

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Anyone built a django site in Welsh?

2007-08-29 Thread Kenneth Gonsalves


On 29-Aug-07, at 12:58 PM, vanderkerkoff wrote:

> I was wondering if anyone in this group had built a django powered
> site in the welsh language, that is, with Welsh Language content and
> using Django's built in Welsh Admin backend?

is there a separate admin backend for welsh? I was under the  
impression that the admin backend was the same for all languages. I  
have done a site with english/finnish - set browser to english and  
everything appears in english. Set browser to finnish and everything  
appears in finnish (both strings and content)

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django Development Position

2007-08-29 Thread Kenneth Gonsalves


On 29-Aug-07, at 1:26 PM, James Bennett wrote:

>> "must be US citizens with no criminal history"
>
> Somewhat OT, but for some companies this is a legal requirement.
> Citizenship for certain firms who do government work, no criminal
> record is common in industries where the company is bonded and risks
> losing that if they have an employee with a record. I obviously don't
> know the details of this specific job, but there are plenty of cases
> where these really are non-negotiable requirements...

given the international nature of this list, it would be best for all  
job posters to follow the most sensible procedure - very brief  
description of the job and a pointer to a web page that gives full  
details. It helps the SNR and also avoids stepping on toes.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Choices cannot be marked for translation?

2007-08-29 Thread Kenneth Gonsalves


On 29-Aug-07, at 2:24 PM, Michael Radziej wrote:

 now, this doesnt work - when I remove the _(), then the choices
 appear. How do I then mark them for translation?

>>>
>>> Make sure to use gettext_lazy
>>
>> i *am* using: from django.utils.translation import gettext_lazy as _
>
> Ha! How should we know?
>
> Does it help to use ugettext_lazy instead?

doesnt work - i just marked one string, the marked string didnt  
appear, the other two did.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Choices cannot be marked for translation?

2007-08-29 Thread Kenneth Gonsalves


On 29-Aug-07, at 2:51 PM, Michael Radziej wrote:

>> doesnt work - i just marked one string, the marked string didnt
>> appear, the other two did.
>
> Well, sorry, then I'm personally running out of ideas. But this  
> looks really
> weird.

i filed a bug report

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Choices cannot be marked for translation?

2007-08-29 Thread Kenneth Gonsalves


On 29-Aug-07, at 2:53 PM, Jarek Zgoda wrote:

>> now, this doesnt work - when I remove the _(), then the choices
>> appear. How do I then mark them for translation?
>>
> Make sure to use gettext_lazy
 i *am* using: from django.utils.translation import gettext_lazy  
 as _
>>> Ha! How should we know?
>>>
>>> Does it help to use ugettext_lazy instead?
>>
>> doesnt work - i just marked one string, the marked string didnt
>> appear, the other two did.
>
> The next testing option is to try with non-lazy version.

that works! import gettext as _

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Choices cannot be marked for translation?

2007-08-30 Thread Kenneth Gonsalves


On 30-Aug-07, at 1:29 PM, Michael Radziej wrote:

>>
>> True, that's why I call this behaviour "buggy".
>
> Ah! I thought that you advocated for gettext instead of  
> gettext_lazy in this
> specific situation.

well, i am using gettext until the bug is fixed - so far no problems

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



problems with finnish after upgrading to latest svn head

2007-09-06 Thread Kenneth Gonsalves

hi,
I have a site in finnish. It was rendering fine until I upgraded to  
the latest svn head. Now the character A with marks on top of it  
refuses to render. The other finnish characters are rendering. Any  
clues?
-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: problems with finnish after upgrading to latest svn head

2007-09-06 Thread Kenneth Gonsalves


On 06-Sep-07, at 4:27 PM, Chris Hoeppner wrote:

> Make sure you're serving the content with the right content type in
> HTML, and that Django is working with the right content type, and that
> the files have a coding declared.

all this is correctly done - it was working before I upgraded to svn  
trunk (i was working in non-unicode previously, and am in unicode now.
>
> El jue, 06-09-2007 a las 16:24 +0530, Kenneth Gonsalves escribió:
>> hi,
>> I have a site in finnish. It was rendering fine until I upgraded to
>> the latest svn head. Now the character A with marks on top of it
>> refuses to render. The other finnish characters are rendering. Any
>> clues?

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



nesh thumbnails error after moving to unicode

2007-09-06 Thread Kenneth Gonsalves

hi,

after upgrading to the unicode (latest svn head) nesh thumbnails dont  
work saying: TypeError, Make_thumbnail() keywords must be strings.  
Any clues?

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: putting a link in a multiplechoice checkbox field in new forms

2007-09-07 Thread Kenneth Gonsalves


On 07-Sep-07, at 4:43 PM, Kenneth Gonsalves wrote:

>
>   checkbox  itemname
>
> I tried to format this in the view itself - but didnt get a link -
> just got the literal string above. Any ideas?

solved - just broke up the form and made the template by hand

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



putting a link in a multiplechoice checkbox field in new forms

2007-09-07 Thread Kenneth Gonsalves

hi,

I have a multiplechoice field using multiplecheckbox widget. There is  
a form which has various action buttons for the selected items. In  
addition, I need to add a link to each of the selected items -  
something like 'details here ...' and clicking the link would take  
them to the details page for that item. The choices list has the id  
and name of each item. I need something like this:

  checkbox  itemname

I tried to format this in the view itself - but didnt get a link -  
just got the literal string above. Any ideas?
-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



entering sane dates in admin

2007-09-08 Thread Kenneth Gonsalves

hi,
is there any quick way of entering sane dates in admin - that is d/m/ 
y and not y/m/d?
-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: login cookies problem[SESSION_COOKIE_DOMAIN]

2007-09-08 Thread Kenneth Gonsalves


On 08-Sep-07, at 1:23 PM, beck917 wrote:

> Is anyone here?

never ask questions on friday/saturday and expect immediate replies.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



unicode upgrade breaks non-ascii content

2007-09-08 Thread Kenneth Gonsalves

hi,

this is not a bug report, because unicode upgrade is not backwardly  
compatible. When i did the upgrade, the finnish data in the site had  
problems rendering. Fortunately only one or alphabets were affected.  
For example:

Jarske-Sjöstedt
became
Jarske-Sjöstedt

retypeing the correct spelling and saving solved the problem. People  
have reported the same problem in Polish too.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Philosophy behind the Django admin

2007-09-08 Thread Kenneth Gonsalves


On 08-Sep-07, at 10:38 PM, Brisingman wrote:

> What is the philosophy behind the Django admin app?  Is is supposed to
> be a quick start to a CMS, ie was the thinking that developers would
> use this base code to build their custom CMS or are we to use some
> other CMS?

you are supposed to use django to build your own CMS - the admin app  
is meant for the *real* admins of the site, and not for the general  
user who is expected to use the CMS features you build outside admin

>
> If the latter, can anyone recommend a user-friendly, free, python
> based one?

plone - the best for a quick and dirty CMS - zillions of features and  
no programming skill needed to set up the default site. Not  
recommended if you want extensive customisation and fine tuning -  
especially if you want data stored in an external RDBMS visible to  
other applications. In fact zope and plone are so powerful that their  
existence has killed all other python based CMSs. (all these are my  
personal opinions and possibly have no factual basis)

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Populating a form

2007-09-11 Thread Kenneth Gonsalves


On 11-Sep-07, at 11:45 AM, AniNair wrote:

>I am trying to learn python and django.  Can someone please tell me
> how to populate some fields in a form

newforms or oldforms?

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Populating a form

2007-09-11 Thread Kenneth Gonsalves


On 12-Sep-07, at 10:41 AM, Ahik wrote:

> newforms.

you have to create a dictionary of the data you want in the form  
relating fieldname to the data and bind the form to this - see the  
bound form docs

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Temporary access to link in django

2007-09-12 Thread Kenneth Gonsalves


On 12-Sep-07, at 1:51 PM, Przemek Gawronski wrote:

> My main objection here is the pollution of user table. There  
> (hopefully)
> will be quiet a few registrations. Since there is no need to have any
> information about the visitor, after it'll be deleted after a month.

take 5 minutes out to create a temp user model and table

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: error: psycopg requires a datetime module

2007-09-12 Thread Kenneth Gonsalves


On 13-Sep-07, at 4:32 AM, [EMAIL PROTECTED] wrote:

> I can't seem to get past this error. I just installed the latest
> Python package and it didn't help. I've been trying to use Django and
> Python for about a week first with MySQL (more errors/missing modules)
> and now with PostgreSQL. I've tried setting this up on three different
> OSX systems but with no luck on any of them--there's always something
> missing and I can't complete the install. I don't know if anything is
> worth this much hassle, does anyone using the Python framework ever
> actually get anything accomplished besides hunting down missing
> pieces?

this used to happen to me around 2002 - not now. Anyway psycopg  
requires the egenix mxDateTime module in order to install

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: mod_python memory consumption and tuning issues

2007-09-13 Thread Kenneth Gonsalves


On 13-Sep-07, at 1:48 PM, omat wrote:

> I am running 7 Django sites with an Apache + mod_python setup, on a
> Fedora Core 4 dedicated server with 2 GB memory. When I restart
> apache, memory usage is somewhere between 200 - 400 MB and quickly
> climbs up to somewhere around 1.5 GB. The sites are not high traffic,
> in total, they generate no more then 20,000 page views daily.

are you serving media also through mod_python? are you restricting  
MaxThreadsPerChild? I find doing these two brings down memory usage  
dramatically

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Macports Django install - which way?

2007-09-17 Thread Kenneth Gonsalves


On 17-Sep-07, at 4:12 PM, Dave E wrote:

> After reading about other OS X user's Django install problems, I'm
> attempting to write up the simplest, clearest possible, completely
> unambiguous, instructions for other OS X users here:
> http:ecoconsulting.co.uk/python/django-install.txt
> but obviously I need to get it right first, and...

first comment: please do something with wordwrap - in firefox on a  
mac, I have to keep scrolling left and right

>
> ...I've hit problems with Macports, detailed below. But I can't find
> anywhere how to install Django from within Python (like Perl's CPAN),
> and Macports is actually suggested on the Django site.

second comment: MacOS is just a BSD - so the installation is just as  
straightforward as an installation on Linux except that some paths  
are slightly different.

third: you havent touched the database installation part.

and, finally, it is best to run django from the latest svn, so just  
following the basic linux installation instructions for django from  
the tutorial would be the ideal way of installing django on a Mac. If  
you *do* install django from Macports, you have no control over the  
version you are using. So for the django part - just an svn co and a  
symlink to the python site-packages directory is all you need.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: reassessing our Operating System

2007-09-18 Thread Kenneth Gonsalves


On 18-Sep-07, at 4:32 PM, shabda wrote:

> Any special reasons debian based installs are better than fedora based
> ones?

lets not start distro wars here. It is all a matter of individual  
choice - any linux/bsd flavour is fine - avoid windows and OSX for  
production servers.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: reassessing our Operating System

2007-09-18 Thread Kenneth Gonsalves


On 19-Sep-07, at 12:38 AM, Chris Brand wrote:

>> and one to run django on. (I believe I had to run 2.3 and 2.5) It can
>> make configuration for deployment to be a bit of a pain.
> I've had no such problems with my Fedora Core 6 box. Just installed
> everything using yum and it worked fine. I think it uses python 2.4.4
> throughout.

but if you want to use 2.5 for django, you *must* retain 2.4.4 also

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



sqlreset problem - a bug?

2007-09-19 Thread Kenneth Gonsalves

hi,

was trying sqlreset after a long time. It does not do the drop and  
create statements in the proper order:

say table foo has a foreign key to table bar, then foo must be  
dropped first and then bar. In creation, bar must be created first  
and then foo. Otherwise, in both cases the sql fails. But sqlreset is  
creating it in the wrong order.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: sqlreset problem - a bug?

2007-09-19 Thread Kenneth Gonsalves


On 19-Sep-07, at 4:41 PM, Russell Keith-Magee wrote:

>  However, it certainly
> isn't high on my list of priorities. In the meantime, you can always
> drop and rebuild the entire database, or fall back to raw SQL DROP
> TABLE statements, managed manually.

not a problem for me as this is only the second time in two years  
that I have tried it. Just reported in case there was something wrong  
at my end.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django deployment options

2007-09-19 Thread Kenneth Gonsalves


On 20-Sep-07, at 12:23 AM, Steve Potter wrote:

> I'm already quite sure I don't want to install mod_python on the
> existing Apache after reading all of the warnings about using the same
> Apache to serve static documents and Django.

I am not sure exactly what you mean by this. mod_python is the  
preferred way to go. The only thing is that static content/media will  
go directly to apache bypassing mod_python. The 'warnings' are only  
to help you to improve performance. Just performance, nothing evil  
will happen if you serve those through mod_python.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django deployment options

2007-09-19 Thread Kenneth Gonsalves


On 20-Sep-07, at 8:09 AM, Graham Dumpleton wrote:

> All those warnings about using the same Apache to serve static
> documents as Django are generally totally meaningless to the average
> user. This is because the load on an average Apache site is no where
> near enough for it to be of concern.

one caveat here - if you are running a site on shared hosting with  
soft RAM limit - like the 40 MB webfaction account, then it is wise  
to bypass mod_python for media to avoid those nasty monday morning  
mails about exceeding your limits and upgrading your account. This  
applies to sites of even 5-10 hits a day. Note, I am not criticising  
webfaction - they rock.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



baffling i18n problem after unicode update

2007-09-19 Thread Kenneth Gonsalves

hi,

I have choices like this:

HEALTH_CHOICES = (
 ('G',_("Good")),
 ('A',_("Average")),
 ('P',_("Poor")),
 )
my site is english and finnish. These choices are used in several  
models. When finnish is on, they get translated in the web interface.  
I also generate reports in reportlab. In one report, choices shows up  
correctly if the report is in english. In finnish, the choice is  
translated and prints if it is "Average" or "Poor" - but if the  
choice is "Good", it does not appear in the report - it is blank. I  
cant even begin to think how to solve this - it was ok before  
updating to unicode. In all other reports with reportlab, "Good" gets  
translated and shows up. Any ideas?

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django deployment options

2007-09-19 Thread Kenneth Gonsalves


On 20-Sep-07, at 9:01 AM, Graham Dumpleton wrote:

>> one caveat here - if you are running a site on shared hosting with
>> soft RAM limit - like the 40 MB webfaction account, then it is wise
>> to bypass mod_python for media to avoid those nasty monday morning
>> mails about exceeding your limits and upgrading your account. This
>> applies to sites of even 5-10 hits a day. Note, I am not criticising
>> webfaction - they rock.
>
> To perhaps clarify on what I believe you are saying so people don't
> get the wrong impression, it is not about not using mod_python, but
> configuring Apache to serve the static files directly, rather than
> using Python functionality within a specific framework to return them.

yes - precisely what I am saying

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: baffling i18n problem after unicode update

2007-09-20 Thread Kenneth Gonsalves

there is only one .po file - Good, Poor and Average are all there.  
Further, all three were working for the past year, only on update to  
the unicode branch that this happened. I thought maybe Good was  
marked as Fuzzy, but it is not - and anyway it translates fine in  
other pdf reports. Not this particular one. I *know* there has to be  
some very simple explanation for this - but cant for the life of me  
find what it is.

On 20-Sep-07, at 1:59 PM, Bert Heymans wrote:

>
> Kenneth
>
> You most probably checked this but in the spirit of Ockham's Razor ...
> maybe you just don't have the translation for 'Good' filled in in the
> Finnish po file for that .py file but do have it translated for
> another context? That could explain why it shows up in some other
> places but not in the report.
>
> Just a guess :)
>
> Cheers,
> Bert
>
> On Sep 20, 5:03 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
>> hi,
>>
>> I have choices like this:
>>
>> HEALTH_CHOICES = (
>>  ('G',_("Good")),
>>  ('A',_("Average")),
>>  ('P',_("Poor")),
>>  )
>> my site is english and finnish. These choices are used in several
>> models. When finnish is on, they get translated in the web interface.
>> I also generate reports in reportlab. In one report, choices shows up
>> correctly if the report is in english. In finnish, the choice is
>> translated and prints if it is "Average" or "Poor" - but if the
>> choice is "Good", it does not appear in the report - it is blank. I
>> cant even begin to think how to solve this - it was ok before
>> updating to unicode. In all other reports with reportlab, "Good" gets
>> translated and shows up. Any ideas?
>>
>> --
>>
>> regards
>> kghttp://lawgon.livejournal.comhttp://nrcfosshelpline.in/web/
>
>
> >

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: baffling i18n problem after unicode update

2007-09-20 Thread Kenneth Gonsalves


On 20-Sep-07, at 4:42 PM, Werner F. Bruhin wrote:

>> other pdf reports. Not this particular one. I *know* there has to be
>> some very simple explanation for this - but cant for the life of me
>> find what it is.
>>
> Does "Good" in Finish use some special characters?

it does - but so do other words that are getting translated  
successfully, and 'Good' itself is getting rendered properly in other  
parts of the site and in other reports

>
> Maybe a problem with the encoding of the .po file, or no encoding
> defined in it?

encoding is utf-8 - which is standard for finnish.

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



  1   2   3   4   5   6   7   8   9   10   >