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???

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

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

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

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

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

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"

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

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

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

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

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

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

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.

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

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

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

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 --

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

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/),

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

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

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

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/

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

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.)

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 > >

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?

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

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

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

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

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

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.

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

[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

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

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

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

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

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. >>> >> >> Ho

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/

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

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

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

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.

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

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

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 --

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

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

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'

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

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

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

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

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

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

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/

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

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

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

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

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

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/

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 --

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:

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 _(),

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")), >>

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

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

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 _ > >

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

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 _

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

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/

Re: problems with finnish after upgrading to latest svn head

2007-09-06 Thread Kenneth Gonsalves
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

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

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 --

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

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

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

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

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

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/

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/

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

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

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

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

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

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

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

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

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

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.

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

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

Re: baffling i18n problem after unicode update

2007-09-20 Thread Kenneth Gonsalves
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 > >

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

  1   2   3   4   5   6   7   8   9   10   >