Automatic error reporting to admin email

2007-10-27 Thread Daybreaker
I'm developing & administrating a django-powered website. It's still in beta phase, so some errors are found by users. I want to make an automatic error reporting system. How can I handle 500 internal server error or exceptions 'somewhere' in my code? --~--~-~--~~~--

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 Lars Stavholm
Kenneth Gonsalves wrote: > 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.

Is it possible to debug a view using breakpoints in Eclipse?

2007-10-27 Thread Divan Roulant
Hello, I would like to debug a view and even though I set breakpoints in it, the debugger doesn't stop on them when the execution is required by the Web browser. I'm using Eclipse with PyDev and everything seems configured appropriately. Since I'm pretty new to Web dev, maybe there's something I

Re: Automatic error reporting to admin email

2007-10-27 Thread Malcolm Tredinnick
On Sat, 2007-10-27 at 08:39 +, Daybreaker wrote: > I'm developing & administrating a django-powered website. > It's still in beta phase, so some errors are found by users. > > I want to make an automatic error reporting system. How can I handle > 500 internal server error or exceptions 'somew

MULTINATIONAL COMPANY HIRING

2007-10-27 Thread maithili
Work with a multinational company. Earn handsome amount. Be your own boss. For details(http://www.adtypingjobs.com/cgi-bin/affiliates/ clickthru.cgi?id=dm1599) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

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

testing filesystem operations in Django

2007-10-27 Thread Faheem Mitha
Hi, Here is a simple question about testing. I have a django file upload application which needs to operate on the filesystem as part of its functionality (create files/directories etc. under media root) I use Debian etch. So, I want a way to test filesystem operations, preferably without us

Re: testing filesystem operations in Django

2007-10-27 Thread Tom Badran
You could also just use a loopback filesystem (essentially a fixed size file mounted as its own filesystem). Been years since i've used this, so cant give any specific help, but should be simper than ramdisks. Tom On 27/10/2007, Faheem Mitha <[EMAIL PROTECTED]> wrote: > > > > Hi, > > Here is a sim

Re: Limiting foreign key choices

2007-10-27 Thread myahya
Thank you for the quick reply. Wouldn't something like this be possible using 'limit_choices_to' argument in the ForeignKey definition? On Oct 27, 2:44 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2007-10-26 at 19:01 +, myahya wrote: > > I have two models: products and catregor

Setting up your django project outside the document root

2007-10-27 Thread Adam D.
I am a newbie. Everywhere I read about django, it suggests to put your django project outside of your servers document root. My question is if my document root is '/var/www/vhosts/domain.com/ doc_root' and I put my project outside of that root, at '/var/www/ vhosts/domain.com/django_site' how do

Customize Admin Object elements

2007-10-27 Thread Griffin
Is there any way to customize the drop down lists that appear when editing an object in the admin interface? I would like to change the order that elements appear. Instead of sorting by id, I would like to sort by another property such as name. I've already customized the Admin class within the

Re: Setting up your django project outside the document root

2007-10-27 Thread Ian Lawrence
Ola basically you sym link it... I recently did exactly this and wrote up the procedure here: http://ianlawrence.info/random-stuff/set-up-django-apache-and-postgresql-on-ubuntu-feisty hope this helps Ian On 10/27/07, Adam D. <[EMAIL PROTECTED]> wrote: > > I am a newbie. > > Everywhere I read abo

Re: Setting up your django project outside the document root

2007-10-27 Thread Adam D.
I see where you are doing the symlinking... [EMAIL PROTECTED]:~$ cd /var/www [EMAIL PROTECTED]:/var/www$ sudo ln -s ~/Web/media media [EMAIL PROTECTED]:/var/www$ sudo ln -s ~/Web/django_src/django/contrib/ admin/media admin_media Isn't this just symlinking to the media folders? So if I do t

Can't set request.method = 'POST'

2007-10-27 Thread Greg
Hello, I've developed my application in the django developmental version and everything works. Here is my code view: def traditional(request, styleid): request.method = 'POST' request.POST = {'style': styleid, 'color': '---'} return searchresult(request) Ho

Re: Customize Admin Object elements

2007-10-27 Thread [EMAIL PROTECTED]
class MyModel(models.Model): ... class Meta: ordering = ['name'] /Gustaf On Oct 27, 8:07 pm, Griffin <[EMAIL PROTECTED]> wrote: > Is there any way to customize the drop down lists that appear when > editing an object in the admin interface? I would like to change the > order th

IF YOU HAVE TIME then READ it once PLEASE

2007-10-27 Thread [EMAIL PROTECTED]
IF you want to meet your old school & college mate's of your life there is a chance, just enter school or college details in the below site http://www.batchmates.com/MGMhome.asp?refid=1385582&reflink=30264 PLEASE REGISTER IN THIS SITE. IF U LIKE THEN FORWARD THIS MAIL TO U R FRIENDS... --

Can't post attachment file in django test

2007-10-27 Thread Igor Kovalenko
Hello! Could somebody tell what I'm doing wrong. I can't post a file in django test. My code is the following: path = os.getcwd() + '\\fotogallery\\testfotos\\gfoto1.jpg' gf = open(path) response = self.client.post('/fotogallery/addgallery/', {'name': 'New Gallery 1', 'annotation': 'This is New

Re: Customize Admin Object elements

2007-10-27 Thread Griffin Caprio
Gustaf, Awesome thanks. - Griffin On Oct 27, 2007, at 2:15 PM, [EMAIL PROTECTED] wrote: > > class MyModel(models.Model): > ... > > class Meta: > ordering = ['name'] > > /Gustaf > > On Oct 27, 8:07 pm, Griffin <[EMAIL PROTECTED]> wrote: >> Is there any way to customize the drop d

Search returns every object

2007-10-27 Thread Joel Hooks
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 searching. Would anybody have an idea as to what I am doing wrong? --~--~-~--~~~-

Re: Setting up your django project outside the document root

2007-10-27 Thread Graham Dumpleton
On Oct 28, 4:59 am, "Adam D." <[EMAIL PROTECTED]> wrote: > I am a newbie. > > Everywhere I read about django, it suggests to put your django project > outside of your servers document root. > > My question is if my document root is '/var/www/vhosts/domain.com/ > doc_root' and I put my project ou

Re: Scaling the server

2007-10-27 Thread Graham Dumpleton
On Oct 27, 2:33 am, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> wrote: > Hi again Simon, > > > @ Michel: I think the best approach is to use a separate IP for Lighttpd to > > listen on, but it should be equally easy to have Lighttpd listen on > > for example port 81. > > Hum, understood. The last on

Re: Automatic error reporting to admin email

2007-10-27 Thread RichardH
On Oct 27, 11:51 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sat, 2007-10-27 at 08:39 +, Daybreaker wrote: > > I'm developing & administrating a django-powered website. > > It's still in beta phase, so some errors are found by users. > > > I want to make an automatic error reportin

Re: newforms: required field mark

2007-10-27 Thread andresj
On Oct 22, 11:33 am, [EMAIL PROTECTED] wrote: > So, in the template, I was hoping to be able do something like: > > {{field.label_tag}}: {{field}} > {% if field.error%} > {{ field.error }} > {% else %} >{% if field.required%} *{% endif %} > {% endif %} > {% if field.help_text %}} color=

Re: Is it possible to debug a view using breakpoints in Eclipse?

2007-10-27 Thread Karen Tracey
I assume you are using the development server to test -- have you included --noreload among the arguments to runserver when you run under Eclipse/PyDev? That's what you need in order for breakpoints to work. Karen On 10/27/07, Divan Roulant <[EMAIL PROTECTED]> wrote: > > > Hello, > > I would lik

Re: Can't post attachment file in django test

2007-10-27 Thread Karen Tracey
On 10/27/07, Igor Kovalenko <[EMAIL PROTECTED]> wrote: > > > Hello! > > Could somebody tell what I'm doing wrong. I can't post a file in > django test. > My code is the following: > > path = os.getcwd() + '\\fotogallery\\testfotos\\gfoto1.jpg' > gf = open(path) > response = self.client.post('/fotog

Re: Search returns every object

2007-10-27 Thread Karen Tracey
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 searching. > Would anybody have an idea as to wha

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

2007-10-27 Thread Karen Tracey
So you are trying to turn an HTTP request that comes in as a GET into a POST? That strikes me as a bit odd. I don't know why what you are doing works under the development server but not in production (you give no details on your production environment), but note that the documentation for HttpRe

Re: Automatic error reporting to admin email

2007-10-27 Thread Malcolm Tredinnick
On Sat, 2007-10-27 at 14:39 -0700, RichardH wrote: > > On Oct 27, 11:51 am, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > On Sat, 2007-10-27 at 08:39 +, Daybreaker wrote: > > > I'm developing & administrating a django-powered website. > > > It's still in beta phase, so some errors are f

model help for a newbie

2007-10-27 Thread Hani
Hi, A complete and utter newbie seeks help. I have a model Beer with another model called TastingNotes tied via foreign key to the Beer table. models.py class Beer(models.Model): beer=models.CharField(max_length=50, core=True) def __unicode__(self): return self.

Re: model help for a newbie

2007-10-27 Thread Malcolm Tredinnick
On Sun, 2007-10-28 at 01:15 +, Hani wrote: > Hi, > A complete and utter newbie seeks help. > > I have a model Beer with another model called TastingNotes tied via > foreign key to the Beer table. > > > models.py > > class Beer(models.Model): > beer=models.CharField(max_length=50, cor

Re: Search returns every object

2007-10-27 Thread Joel Hooks
> > It's rather hard to speculate without some specifics. search_fields > worksforme just fine. What's your model look like? What are you putting in > search_fields? What do you enter in the search box and what entries are > returned that seem like they should not be there? > > Karen Below is

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 Greg
Karen, 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? Thanks On Oct 27, 6:37 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > So you are trying to turn an HTTP request that comes in as a GET i

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

2007-10-27 Thread James Bennett
On 10/27/07, Greg <[EMAIL PROTECTED]> 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 -- "Bureaucrat Conrad,

Re: Search returns every object

2007-10-27 Thread Joel Hooks
> if you are searching on foreignkey field called city, it will not > work if you put 'city' in the search field, you have to put 'city__name' > That's cool, that answers a totally different question I was wrestling with, but I am searching the local properties and not returning any results. --

Re: Search returns every object

2007-10-27 Thread Karen Tracey
On 10/27/07, Joel Hooks <[EMAIL PROTECTED]> wrote: > > > > if you are searching on foreignkey field called city, it will not > > work if you put 'city' in the search field, you have to put 'city__name' > > > > That's cool, that answers a totally different question I was wrestling > with, but I am s

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

2007-10-27 Thread Karen Tracey
On 10/27/07, James Bennett <[EMAIL PROTECTED]> wrote: > > > On 10/27/07, Greg <[EMAIL PROTECTED]> 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 readi

nginx + django dev server => WSGIRequestHandler instance has no attribute 'path'

2007-10-27 Thread globophobe
I checked out a recent copy of django from svn recently, and "path_info" returned to rear its ugly head. The patch as per http://code.djangoproject.com/ticket/3414 (mostly) resolves the issue. There doesn't seem to be a problem with FastCGI on my iBook nor on my FreeBSD production machine; howeve

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

Python SSH Library for Deploy Script

2007-10-27 Thread Hugh Bien
Hi all! I'm writing a deploy script, but right now it runs ssh commands directly from os.system: import os os.system("ssh server.name.com 'cd /deploy/path && run commands'") I'm pretty new to Python and I'm trying to find a SSH library to run commands on a remote server. Does anyone have any exp

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: Python SSH Library for Deploy Script

2007-10-27 Thread Michael Cuddy
> I'm writing a deploy script, but right now it runs ssh commands directly > from os.system: Paramiko. http://www.lag.net/paramiko/ -- Mike Cuddy ([EMAIL PROTECTED]), Programmer, Baritone, Daddy, Human. Fen's Ende Software, Redwood City, CA, USA, Earth, Sol System, Milky Way. "The problem

Re: 0.96 login issue with cookies

2007-10-27 Thread Mike
No, the cache was off all the time. On Oct 19, 8:44 am, web-junkie <[EMAIL PROTECTED]> wrote: > Did you activate the cache in Django? I once discovered an issue with > that.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Search returns every object

2007-10-27 Thread Joel Hooks
On Oct 27, 10:57 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On 10/27/07, Joel Hooks <[EMAIL PROTECTED]> wrote: > > But firm is a ForeignKey. I think firm, by itself, without any __fieldname > appended, is causing the whole search attempt to fail. The e=1 in where you > get redirected to is