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

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 obvi

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 th

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 fai

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 th

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 th

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 repo

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 limit

Re: baffling i18n problem after unicode update

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

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

Re: baffling i18n problem after unicode update

2007-09-20 Thread Kenneth Gonsalves
On 20-Sep-07, at 7:09 PM, Nis Jørgensen wrote: >> 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 >> > Still, those other parts/reports may be doing something slightly >

Re: baffling i18n problem after unicode update

2007-09-20 Thread Kenneth Gonsalves
On 21-Sep-07, at 7:55 AM, Kenneth Gonsalves wrote: >> which has problems with the special characters? > > all reports use the same font. And all the other reports display that > particular problem character ok. And, just noticed that the same > problem character that refuses

Re: serving admin files with Apache/mod_python

2007-09-21 Thread Kenneth Gonsalves
On 21-Sep-07, at 5:13 PM, Anurag wrote: > However my admin interface is all garbled up and what i did was i > copied the media directory from /admin/media into the htdocs of my > Apache setup. But i am still unable to see the admin interface > correctly. coming from php? Never put anything in

Re: TinyMCE in admin

2007-09-24 Thread Kenneth Gonsalves
On 24-Sep-07, at 3:44 PM, AniNair wrote: > I installed TinyMCE as mentioned in > http://www.dehora.net/journal/2006/05/ > using_tinymce_in_djangos_admin.html > I am trying according to the doc > http://code.djangoproject.com/wiki/ > AddWYSIWYGEditor#UsingTinyMCEwithflatpages > Any ideas? so w

Re: TinyMCE in admin

2007-09-24 Thread Kenneth Gonsalves
On 24-Sep-07, at 2:32 PM, AniNair wrote: > Hi... > Can someone please tell me how to use TinyMce in admin for editing > flat pages? did you check out the list archives - it is all explained there -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~

Re: dictionary access in templates

2007-09-24 Thread Kenneth Gonsalves
On 25-Sep-07, at 10:23 AM, Oleg Korsak wrote: > Hello! I have many `tour` objects as a key for a `tour_dict` > dictionary. > How can I access tour_dict values using tour? Like tour_dict[tour]... > template will not work with [ ] how about tour_dict.tour? -- regards kg http://lawgon.livejou

documentation - missing menus on the right side

2007-09-25 Thread Kenneth Gonsalves
hi are the menus on the right side in the documentation missing, or is it just something wrong with my browser? -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: documentation - missing menus on the right side

2007-09-25 Thread Kenneth Gonsalves
On 25-Sep-07, at 8:29 PM, Kenneth Gonsalves wrote: > are the menus on the right side in the documentation missing, or is > it just something wrong with my browser? become ok now -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.

how to avoid ReferentialIntegrity error

2007-09-25 Thread Kenneth Gonsalves
hi, I have a view which extracts words from another table and saves them into the words table. My code is like this: w = Word(word=wd,written=False, language=lng) w.save() since 'word' is unique, to avoid a referential integrity error I do: tst = Word.objects.get

Re: disguising a django app as php?

2007-09-26 Thread Kenneth Gonsalves
On 26-Sep-07, at 5:43 PM, omat wrote: > I know this is stupid, but it is theirs. I am just trying to find a > hack and I'd rather not do it at all then do it in PHP. you can make your urls look like php urls -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~

Re: django and postgres

2007-09-27 Thread Kenneth Gonsalves
On 27-Sep-07, at 1:32 PM, Heba Farouk wrote: > psycopg2.OperationalError: FATAL: Ident authentication failed for > user "postgres" edit your pg_hba.conf file and set authentication to 'password' -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~

Re: Compiling views.py?

2007-09-27 Thread Kenneth Gonsalves
On 28-Sep-07, at 12:31 AM, Tim Chase wrote: > (whether via hitting the "manage.py runserver" server, or > actually pointing at it via your production web server). Python > will notice that the .pyc is out of date and automatically > rebuild it for you. This happens so quickly, it's almost > un

Re: changing settings.py

2007-09-28 Thread Kenneth Gonsalves
On 28-Sep-07, at 2:31 PM, ygneo wrote: > The problem is that every time I change settings.py I need to restart > apache to apply changes, this is normal - you *must* restart apache whenever you change anything other than templates > and sometines even that doesn't changes > nothing. that is

Re: sharing django on production and dev

2007-09-28 Thread Kenneth Gonsalves
On 28-Sep-07, at 11:16 PM, Milan Andric wrote: > Is there some standard practice on a machine that has production code > running in mod_python but also has developers running their django- > python web server? Is that discouraged? I figure a regular user > would not share the same django with

error when trying to save unicode data

2007-09-28 Thread Kenneth Gonsalves
hi, I have a view that takes a sentence in unicode from a database, splits it into words and dumps those words in the Word table. The 'word' in word table is unique, and it is expected that duplicates be rejected, so I put 'save()' within a try-except statement. If my view does one record

Re: error when trying to save unicode data

2007-09-29 Thread Kenneth Gonsalves
replying to my self On 29-Sep-07, at 12:07 PM, Kenneth Gonsalves wrote: > def lessontodict(request,id): > """ > After a lesson is approved, the words, both written and > spoken are > dumped into the word table > """

Re: error when trying to save unicode data

2007-10-02 Thread Kenneth Gonsalves
On 02-Oct-07, at 2:46 PM, Nis Jørgensen wrote: >> improper formatting - but am unable to find out where exactly the >> formatting is improper. If I put this function in the 'save' method >> of the model - I get the same error. > > This is an instance of the problem described here: > > http://cod

Re: error when trying to save unicode data

2007-10-02 Thread Kenneth Gonsalves
On 02-Oct-07, at 6:21 PM, Nis Jørgensen wrote: >> get_or_create, *only* using the value of 'word' in the query - if >> created, then I do an update to set the other fields - otherwise I >> leave it alone. > You could also use the "defaults" argument to get_or_create: > > http://www.djangoproject

Re: error when trying to save unicode data

2007-10-02 Thread Kenneth Gonsalves
On 02-Oct-07, at 7:47 PM, Nis Jørgensen wrote: > > get_or_create with "defaults" does what you asked for originally - > though the person commenting in the ticket got the syntax wrong. I'll test it out again and revert -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/we

Re: Problem with nesh.thumbnail

2007-10-06 Thread Kenneth Gonsalves
On 04-Oct-07, at 2:54 PM, Divan Roulant wrote: > Is someone aware of a recent change in Django that would have modified > the use of the nesh package? there was something that broke - I remember facing the same problem, but I dont remember what I did - yes, somewhere in there there is 'str (

bug in rendering non ascii characters in admin changelist

2007-10-06 Thread Kenneth Gonsalves
Hi, after upgrading to the unicode branch - I am using svn trunk, I find that in the changelist, when I want to change an entry where there are non-ascii characters in the name, I am getting an ascii cant decode the non-ascii characters. This is appearing in line 15 of change_form.html, i

Re: bug in rendering non ascii characters in admin changelist

2007-10-07 Thread Kenneth Gonsalves
On 07-Oct-07, at 8:25 PM, Malcolm Tredinnick wrote: > doing to cause the issue. It's also important to note which version of > Python you are using, as well as the database and the database > encoding > (and databse backend in the case of mysql or postgresql, since > there are > differences

Re: bug in rendering non ascii characters in admin changelist

2007-10-07 Thread Kenneth Gonsalves
On 08-Oct-07, at 7:36 AM, Malcolm Tredinnick wrote: > So keep hunting and do let us know if you find anything. will work on it - am busy for a couple of days - thanks for taking the trouble -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~---

Re: Django-tagging weirdness (noob question)

2007-10-09 Thread Kenneth Gonsalves
On 10-Oct-07, at 7:15 AM, coffeeho wrote: > I'm trying to implement the django-tagging app. My "links" app has a > tags field. could you clarify which version of django you are using -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~--

Re: How to set a global variable?

2007-10-09 Thread Kenneth Gonsalves
On 10-Oct-07, at 8:27 AM, Greg wrote: > def searchresult(request): mysearchlist = [] > if request.method == 'POST': > mysearchlist = [1,2,3,4,5] > if request.method == 'GET': > assert False, mysearchlist -- regards kg http://lawgon.livejournal.com http://nrcfo

Re: TinyMCE in admin

2007-10-11 Thread Kenneth Gonsalves
On 11-Oct-07, at 10:51 AM, Jeremy Dunck wrote: >> . I still can't get django find the files textareas.js and >> tiny_mce.js. it's returning 404. Please help. Thank you >> > > What's your admin URL and what URL is being requested for the > textarea.js? > This is generally a matter of putting th

problem with python 2.5 and mod_python 3.3.1

2007-10-12 Thread Kenneth Gonsalves
hi, I have a bunch of sites in production running on python 2.4.x. Recently I set up a new desktop with mandriva2007 and set up my sites on the local machine with python 2.5, apache2.2 and mod_python 3.3.1. The directory setup and files were taken directy from the svn checkouts of the runn

Re: Urgent requirement for architect job

2007-10-14 Thread Kenneth Gonsalves
On 14-Oct-07, at 3:43 PM, Dan Filip wrote: > WHY DOESN'T ANYONE BLOCK THESE STUPID ADS??? dont *do* this - you are just increasing the spam. Trust the list admins. -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---

Re: bug in rendering non ascii characters in admin changelist

2007-10-14 Thread Kenneth Gonsalves
On 08-Oct-07, at 7:36 AM, Malcolm Tredinnick wrote: >> name = CharField of some some length and have >> __unicode__() = "%s" %(self.name) >> >> in admin enter a finnish word with special characters like: Asikainen >> Päivi ja Jorma. On saving, or after saving, on trying to edit the >> word I ge

Re: bug in rendering non ascii characters in admin changelist

2007-10-14 Thread Kenneth Gonsalves
On 15-Oct-07, at 10:57 AM, Malcolm Tredinnick wrote: > So, in the rare case where, say, self.sponsor is a UTF-8 string, > Kenneth's version might lead to trouble down the track -- but I would > have thought that trouble would be mis-displayed strings, rather > than a > crash. ok - when I put

Re: internationalization xgettext error

2007-10-15 Thread Kenneth Gonsalves
On 15-Oct-07, at 5:33 PM, AniNair wrote: > errors happened while running xgettext on __init__.py > 'xgettext' is not recognized as an internal or external command, > operable program or batch file. either you dont have xgettext on your machine or it is not on the path. You need to install it

Re: internationalization xgettext error

2007-10-15 Thread Kenneth Gonsalves
On 15-Oct-07, at 6:04 PM, AniNair wrote: > Thank alot for the reply. Yes, I too thought that I just don't have > the file xgettext.py in my python lib, so added that. Still returning > the same error. (gave the path too in env variable as c:/python25/lib > and restarted the comp). Any ideas? i

Re: Managing django projects

2007-10-15 Thread Kenneth Gonsalves
On 15-Oct-07, at 8:31 PM, Rytis Sileika wrote: > I was just wondering, what are the best practices to setup/manage > django projects? > > Let's assume two developers working on the same project, same machine. > Models, views are constantly changing, that would make me think that > the best way i

Re: can't install...

2007-10-15 Thread Kenneth Gonsalves
On 16-Oct-07, at 12:19 AM, Phwaxmon wrote: > I think I just need something to get me started. So far I have been > getting errors, or just ain't been able to execute anything. I am not > sure if everything has installed correctly, or whether you people who > have more experience can tell me to c

Re: apache2 + mod_python vhosts conflict

2007-10-16 Thread Kenneth Gonsalves
On 17-Oct-07, at 12:19 AM, Wiley wrote: > apache with only one of these hosts enabled, each works fine, its just > when I run then both at the same time, if i go to mandarinland.com, it > loads a css-free version of chinabites.comdoes anyone know what's > going on here? I attach the apache

Re: apache2 + mod_python vhosts conflict

2007-10-17 Thread Kenneth Gonsalves
On 17-Oct-07, at 7:31 AM, Wiley wrote: > Kenneth and Bob, the PythonInterpreter thing was the first thing I > checked (because it was in the official docs) if you notice I have > different PythonInterpreters already set in the two virtual hosts in > my original post...am I missing something obvi

Re: python mvc framework and java mvc framework

2007-10-19 Thread Kenneth Gonsalves
On 20-Oct-07, at 7:22 AM, Laszlo Marai wrote: > You can host multiple applications in django but as far as I could see > from the mailing list you'll have some problem if you want to have two > different django instances running under mod_python. not so. There have been reports of over 70 djang

Re: python mvc framework and java mvc framework

2007-10-19 Thread Kenneth Gonsalves
On 20-Oct-07, at 7:46 AM, Laszlo Marai wrote: >> >> not so. There have been reports of over 70 django instances running >> under mod_python in the same server. I have 12 in one server without >> problems. > > Wasn't there a question here about mod_python a few days ago where the > solution was t

Re: Need help selecting a Django hosting provider

2007-10-18 Thread Kenneth Gonsalves
On 18-Oct-07, at 3:39 AM, Greg wrote: > Ok...let's try this again. Hopefully this works. it worked all four times - and hosting provider depends on the size and scale of the site you are building small site, low memory - webfaction medium site - or more than one site - VPS, I found tektonic

Re: Painful deployment | shared hosting | Need your advice

2007-10-20 Thread Kenneth Gonsalves
On 20-Oct-07, at 2:34 PM, erick wrote: > Is it possible to deploy Django in this environment? If yes, any > suggestions? dont even try - change your hosting -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You

Re: Painful deployment | shared hosting | Need your advice

2007-10-20 Thread Kenneth Gonsalves
On 20-Oct-07, at 3:07 PM, Justin Lilly wrote: > I believe the answer will be no. The main reason being #3 as I > think most other obstacles can be overcome. I would suggest > webfaction as an alternative (from word of mouth, not personal > experience). +1 from personal experience - though

Re: Painful deployment | shared hosting | Need your advice

2007-10-21 Thread Kenneth Gonsalves
On 21-Oct-07, at 4:07 PM, Kent Johnson wrote: >> >> +1 from personal experience - though I just found that they dont have >> pg_dump on their server. > > I use pg_dump at WF: > /usr/local/pgsql/bin/pg_dump yes, found it - I thought it would be on the path -- regards kg http://lawgon.livejour

Re: ProgrammingError at /admin/auth/user/1/

2007-10-21 Thread Kenneth Gonsalves
On 22-Oct-07, at 12:26 AM, dbee wrote: > I've searched all the directory tree of mysite for the string > 'oldapp', and it's definitely not there. must be there in the foreign keyfield of userprofile -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-

Re: Djangonauts in Amsterdam, Prague, or Krakow?

2007-10-22 Thread Kenneth Gonsalves
On 22-Oct-07, at 1:30 PM, Jarek Zgoda wrote: > Maybe some local DUG in Warsaw DUG? Django User Group? -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: Djangonauts in Amsterdam, Prague, or Krakow?

2007-10-22 Thread Kenneth Gonsalves
On 22-Oct-07, at 1:45 PM, Jarek Zgoda wrote: >>> Maybe some local DUG in Warsaw >> >> DUG? Django User Group? > > I think so. Does this sound riduculous (or what)? DUG has unfortunate connotations - why not standardise on DjUG - with the 'D' silent, so it would denote a dJUG of beer which is

Re: Model Validation - Best practices

2007-10-23 Thread Kenneth Gonsalves
On 24-Oct-07, at 10:10 AM, Camo wrote: > So I was just wondering how people go about validating models. overide the save() method and add your own business rules in the model -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~--

Re: Error During Django Install on Mac

2007-10-23 Thread Kenneth Gonsalves
On 24-Oct-07, at 11:55 AM, jnap wrote: > jnap:~ jnap$ ln -s /usr/local/lib/python2.3/site-packages/django_src/ > django/bin/django-admin.py /usr/local/bin/django-admin.py > ln: /usr/local/bin/django-admin.py: Permission denied you have to do it as root -- regards kg http://lawgon.livejournal

Re: Error During Django Install on Mac

2007-10-24 Thread Kenneth Gonsalves
On 24-Oct-07, at 12:15 PM, jnap wrote: > > anyone? > > On Oct 24, 2:36 am, jnap <[EMAIL PROTECTED]> wrote: >> sorry for another dumb question...but how do i do it as root? on ubuntu - type sudo ln -s etc on other distros type su, press enter and enter the root password and then execute the co

Re: Error During Django Install on Mac

2007-10-24 Thread Kenneth Gonsalves
On 24-Oct-07, at 12:31 PM, jnap wrote: > Now I get this error: -bash: django-admin.py: command not found when I > run django-admin.py startproject testproject sudo ln -s pathtodjango/bin/django-admin.py /usr/bin/django-admin.py -- regards kg http://lawgon.livejournal.com http://nrcfosshelpli

Re: Entering Greek, cyrillic, or other 'weird' text

2007-10-24 Thread Kenneth Gonsalves
On 24-Oct-07, at 1:28 PM, bjornkri wrote: > I was sure this must be a common problem, as I've tried two different > installations with completely different setups, and the same results > in both cases. But looking up the error message, "Incorrect string > value", didn't give me anything what ve

Re: Entering Greek, cyrillic, or other 'weird' text

2007-10-24 Thread Kenneth Gonsalves
On 24-Oct-07, at 3:37 PM, bjornkri wrote: > 0.97-pre-SVN-6603 (just updated, had the same on -6596) are you using the __unicode__(self): return u"string to return" syntax? -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~

Re: Entering Greek, cyrillic, or other 'weird' text

2007-10-24 Thread Kenneth Gonsalves
On 24-Oct-07, at 4:42 PM, bjornkri wrote: > def __unicode__(self): > return self.title def __unicode__(self): return u"%s" % self.title<- try this -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~

Re: Entering Greek, cyrillic, or other 'weird' text

2007-10-24 Thread Kenneth Gonsalves
On 24-Oct-07, at 7:50 PM, bjornkri wrote: > Some data IS entered into the database - when I tried just now with a > 'content' of Greek text, I get the Incorrect string value message, but > when I go back to the admin interface the entry is there but filled > with question marks where the Greek t

Re: translation question ("how do I" question)

2007-10-24 Thread Kenneth Gonsalves
On 24-Oct-07, at 9:24 PM, alain D. wrote: > """By %}>{{ myobject.owner.username }}""" > > of course, I'd like to have : """by %(username)s""" as a key in my > translation files ... frankly I dont understand the question - are you generating html code in your view? -- regards kg http://law

Re: Need help selecting a Django hosting provider

2007-10-24 Thread Kenneth Gonsalves
On 24-Oct-07, at 9:53 PM, Joshua Simpson wrote: > I'm using WebFaction and Linode. WebFaction is great for ease of use, > Linode is great for Xen instances. Has anyone used WebFaction's SVN > app before? as a client or as a repository? I use it as a client, havent tried as a repository yet

Re: translation question ("how do I" question)

2007-10-25 Thread Kenneth Gonsalves
On 25-Oct-07, at 3:34 PM, alain D. wrote: > My question is : how can I use the django translation mecanism > (blocktrans tag & co) to translate that so that I will have > This object has been created by %(username)s" > in my po file ... you do it in the __unicode__() method in your user model

Re: Entering Greek, cyrillic, or other 'weird' text

2007-10-25 Thread Kenneth Gonsalves
On 26-Oct-07, at 10:49 AM, Robert Bunting wrote: >> so is this a legacy database - meaning a database which had data >> before you upgraded to unicode django? In that case, we have seen in >> postgres that the old data is b0rked and needs to be reentered, >> otherwise it wont work. You need to e

problem with svn checkout

2007-10-27 Thread Kenneth Gonsalves
hi, I am having problems checking out the latest head (it could be due to my present flaky internet connection). The failure message is: svn: REPORT request failed on '/svn/!svn/vcc/default' svn: REPORT of '/svn/!svn/vcc/default': 200 OK (http:// code.djangoproject.com) I have got this three

Re: problem with svn checkout

2007-10-27 Thread Kenneth Gonsalves
On 27-Oct-07, at 3:42 PM, Lars Stavholm wrote: >> svn: REPORT request failed on '/svn/!svn/vcc/default' >> svn: REPORT of '/svn/!svn/vcc/default': 200 OK (http:// >> code.djangoproject.com) >> >> I have got this three times at the same place > > Just tested, works nicely for me. working now --

Re: Setting up your django project outside the document root

2007-10-27 Thread Kenneth Gonsalves
On 27-Oct-07, at 11:29 PM, Adam D. wrote: > Everywhere I read about django, it suggests to put your django project > outside of your servers document root. the only thing you should put in document root is your favicon > > My question is if my document root is '/var/www/vhosts/domain.com/ > doc

Re: Search returns every object

2007-10-27 Thread Kenneth Gonsalves
On 28-Oct-07, at 4:48 AM, Karen Tracey wrote: > On 10/27/07, Joel Hooks <[EMAIL PROTECTED]> wrote: > It doesn't seem to matter what I put in the search_fields, it always > returns every object in the list. My guess is that I am doing > something incorrectly, but I can't figure it out after much

Re: Can't set request.method = 'POST'

2007-10-27 Thread Kenneth Gonsalves
On 28-Oct-07, at 8:54 AM, James Bennett wrote: >> I have some links on my site. I don't want to wrap these links >> around >> a form element. Is there anyway that I can send post data without >> using a form? > > You need to start by reading this: > > http://faqs.org/rfcs/rfc2616.html cool

problem with wilson lau

2007-10-27 Thread Kenneth Gonsalves
hi, I have noticed that whenever I reply to a post on this list, I get a bounce message from eox.com.my - can the admins do something about this? -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You received th

Re: problem with request.GET.getlist['choices']

2007-10-29 Thread Kenneth Gonsalves
On 30-Oct-07, at 2:18 AM, Matthias Kestenholz wrote: > He is saying that you should really, really take the time to learn > python before > trying to do anything with django. s/before/while/ -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~

Re: the old django-in-a-subdirectory problem

2007-10-30 Thread Kenneth Gonsalves
On 30-Oct-07, at 7:45 PM, [EMAIL PROTECTED] wrote: > I've tried adding r'^django/' at the front of the urls in my url > config, but that just results in none of the urls matching. i normally use http://mysite/web/ , so admin would be: mysite/web/ admin/, all I do is add r'^web/' in front of my

Re: the old django-in-a-subdirectory problem

2007-10-30 Thread Kenneth Gonsalves
On 31-Oct-07, at 9:06 AM, Malcolm Tredinnick wrote: >> Part of the problem may come from the fact I'm hosting this on >> WebFaction, and in their control panel the django installation is >> rooted at /django. I'm guessing (though few of my guesses have panned >> out so far) that that setup sends

Re: the old django-in-a-subdirectory problem

2007-10-30 Thread Kenneth Gonsalves
On 31-Oct-07, at 10:36 AM, Kenneth Gonsalves wrote: >> think it's been simple as that all along, and I've just been tripped >> up by using webfaction's control panel... > > I just treat it as a shell account - removed what they did and set up > my own. Onl

Re: the old django-in-a-subdirectory problem

2007-10-30 Thread Kenneth Gonsalves
On 31-Oct-07, at 10:24 AM, [EMAIL PROTECTED] wrote: > If you didn't use the control panel to mount the django installation > at /web, did you have to do anything else special to get it to work > properly, besides adding a ^web/ prefix to your url files? I'd hate to > think it's been simple as th

Re: the old django-in-a-subdirectory problem

2007-10-31 Thread Kenneth Gonsalves
On 31-Oct-07, at 7:24 PM, [EMAIL PROTECTED] wrote: >> main apache, you *must* put it in ./webapps/ directory): > > One last question then I'll let this drop: Kenneth you mention putting > things directly into your webapps directory: I don't have write > permission in my webapps directory, how di

ascii decode error bites again

2007-10-31 Thread Kenneth Gonsalves
hi, am on unicode, unicode postgresql and unicode everywhere. When trying to save a model in admin, if it has ' or " in the text i get the programming error - ascii cannot decode etc ... Any clues? -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~

Re: Recommendations on running Django on Leopard

2007-10-31 Thread Kenneth Gonsalves
On 31-Oct-07, at 7:50 PM, Francis Lavoie wrote: > If you only plan to do developpement or testing, why is the > included web server not enought? if development and testing is the goal, then it is enough. But if you have plans of putting your app in production, it makes sense to duplicate

Re: Off Topic: Slug regular expression

2007-10-31 Thread Kenneth Gonsalves
On 31-Oct-07, at 9:08 PM, cjl wrote: > Will these two regular expressions match the same strings? The both > seem to work for me, but I couldn't find any information about the > importance of order between square brackets. dont put '-' between any letters in square brackets - to be on the saf

Re: MEDIA_ROOT, MEDIA_URL, ADMIN_MEDIA_PREFIX? Differences?

2007-10-31 Thread Kenneth Gonsalves
On 31-Oct-07, at 9:47 PM, Stupid Dustbin wrote: > MEDIA_ROOT the directory where you upload media > MEDIA_URL the url where your site media - css, js, icons etc live > ADMIN_MEDIA_PREFIX the alias to where the admin media lives - django/contrib/admin/media -- regards kg http://lawgon.livej

Re: Off Topic: Slug regular expression

2007-10-31 Thread Kenneth Gonsalves
On 01-Nov-07, at 7:41 AM, Kristinn Örn Sigurðsson wrote: > r'^accounts/(?P[\w\-]+)/?$' r'^accounts/(?P[\w-]+)/?$' works for me - no need to escape the '-' if it is at the end -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~-

Re: ascii decode error bites again

2007-10-31 Thread Kenneth Gonsalves
On 01-Nov-07, at 8:15 AM, Malcolm Tredinnick wrote: >> hi, >> am on unicode, unicode postgresql and unicode everywhere. When trying >> to save a model in admin, if it has ' or " in the text i get the >> programming error - ascii cannot decode etc ... Any clues? > > Based on the complete lack of

Re: ascii decode error bites again

2007-10-31 Thread Kenneth Gonsalves
On 01-Nov-07, at 10:06 AM, Karen Tracey wrote: > svn head, postgres 7.4.x, python 2.4 > > Traceback? I cannot recreate in my setup (considerably different: > svn newforms-admin, MySql 5.0, Python 2.5.1). It's probably > significant that the quote character in that string is curly, > thou

Re: ascii decode error bites again

2007-11-02 Thread Kenneth Gonsalves
On 01-Nov-07, at 2:25 PM, Ivan Sagalaev wrote: > Ah... So this is what you called "ascii cannot decode etc" in your > original post? This is an absolutely different issue that has > nothing to > do with Python's default usage of ascii for decoding or even Django's > unicode internals. > > What

Re: Reloading only one Python interpreter with Apache

2007-11-03 Thread Kenneth Gonsalves
On 03-Nov-07, at 8:57 PM, Sander Dijkhuis wrote: > I often have to reload one project because I've updated the code. > Currently, I use `/etc/init.d/apache2 reload` why dont you do apache2ctl graceful? -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~--

Re: Reloading only one Python interpreter with Apache

2007-11-04 Thread Kenneth Gonsalves
On 04-Nov-07, at 4:00 PM, Graham Dumpleton wrote: >> why dont you do apache2ctl graceful? > > As far as the consequences on a loaded Django application is > concerned, doing a graceful as opposite to a restart (OP wrongly said > reload), is not really any different. agreed. But when restart is

Re: spam

2007-11-06 Thread Kenneth Gonsalves
On 06-Nov-07, at 11:22 PM, Lars Stavholm wrote: >> ok, seriously, is there not something we can do about the porn spam? >> some of us read this list at work on machine's we don't own. the >> image >> stuff is becoming a serious problem. > > I do believe that Google groups are filtering out cl

Re: Best Django Blogs

2007-11-06 Thread Kenneth Gonsalves
On 07-Nov-07, at 6:49 AM, [EMAIL PROTECTED] wrote: > Sorry to be unclear, I mean blogs about django then B-list is the best -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You received this message because yo

Re: Problems with ImageField

2007-11-06 Thread Kenneth Gonsalves
On 07-Nov-07, at 10:14 AM, Stupid Dustbin wrote: > image = models.ImageField(upload_to='/toy_images/') upload_to='toy_images/' -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You received this message because

Re: problem with Django

2007-11-07 Thread Kenneth Gonsalves
On 08-Nov-07, at 11:53 AM, stranger wrote: > http://img158.imageshack.us/img158/7829/screenshotrm6.png > > Please suggest me a solution. it would be more helpfull if you paste the full error message in http://dpaste.com -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/

Re: problem with Django

2007-11-07 Thread Kenneth Gonsalves
On 08-Nov-07, at 12:23 PM, stranger wrote: > crimemap is the name of the project. and the bottom part of the page > shows the META and SETTINGS. is crimemap in your path? symlink it to the site-packages directory and try again -- regards kg http://lawgon.livejournal.com http://nrcfosshelpl

Re: problem with Django

2007-11-07 Thread Kenneth Gonsalves
On 08-Nov-07, at 12:34 PM, stranger wrote: > Can you please tell me how to put crimemap on path. What is sym- > linking? Can you explain briefly? as root, at the prompt type: ln -s /pathtocrimemap/crimemap /usr/lib/python2.x/site-packages/crimemap and press enter for the 'x' for python2.x, put

Re: webhostingbuzz, anyone tried

2007-11-08 Thread Kenneth Gonsalves
On 08-Nov-07, at 10:42 PM, [EMAIL PROTECTED] wrote: > I'm also on webfaction, and like it. The most basic plan is pretty > skimpy on server RAM (simply enabling debug on my site put it over the > limit, and I was the only one accessing it) if you tweak apache a bit and make sure media goes thro

Re: Apache post

2007-11-09 Thread Kenneth Gonsalves
On 09-Nov-07, at 7:28 PM, Mason wrote: > My Apache2.conf can be viewed here: http://dpaste.com/hold/24636/\ 1. never post the full conf file - relevant portion is enough 2. in debian/ubuntu, dont put vhost info in the main conf file. You make your vhosts files, one per vhost in /etc/apache2/s

Re: pull a random record from the database

2007-11-09 Thread Kenneth Gonsalves
On 10-Nov-07, at 12:56 AM, LorenDavie wrote: > import random > Book.objects.all()[random.randint(0,Book.objects.count()-1] Book.objects.order_by('?')[0] -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You rec

<    5   6   7   8   9   10   11   12   13   14   >