signal connection

2009-02-10 Thread Ben Eliott
Can anyone please suggest why a signal might be failing to connect. I'm using 1.0.2 on apache + mod_wsgi. The signal gets picked up fine using the localserver, but fails on the server proper. When i go into the shell and get the signal object and check 'receivers' i can see the listener

Re: dynamic mod wsgi

2009-01-12 Thread Ben Eliott
Ok, thanks Graham, will do. On 11 Jan 2009, at 10:45, Graham Dumpleton wrote: > > > > On Jan 11, 7:59 pm, Ben Eliott <ben.dja...@googlemail.com> wrote: >> Hi Graham, >> Just following up on this thread. I replied with some details, but >> maybe you missed

Re: dynamic mod wsgi

2009-01-11 Thread Ben Eliott
ry does each Django site instance take up? > > How many different site instances would you have? > > Are all the site instances distinguishable by server name alone? > > Graham > > On Dec 23, 9:00 am, Graham Dumpleton <graham.dumple...@gmail.com> > wrote: >> O

Re: Circular imports between managers and models

2009-01-06 Thread Ben Eliott
Not that pretty/efficient but you could use contenttype contrib temporarily. IF ClassB has a ForeignKey to Class A could you extract the Class A model from a foreign key via Class B's .meta? Or the Class B could have a callable method which returned the instance of the model you want...

Re: Recipe 534109: XML to Python data structure

2009-01-06 Thread Ben Eliott
Perhaps try: http://www.crummy.com/software/BeautifulSoup/ is awesome and has good documentation On 6 Jan 2009, at 15:27, shi shaozhong wrote: > > I am reading in a xml from a web service. I wish to find a Python > script to turn the xml into a Python data array for further > manipulation and

Re: Do sth on time ?

2009-01-04 Thread Ben Eliott
Maybe look at it from the point of view of whether you need these items to actually expire on time, or whether you need them to have expired when they're actually accessed from the database. If the latter you could use a method in your model, + a manager function perhaps, to flick the

Re: dynamic mod wsgi

2008-12-23 Thread Ben Eliott
distinguishable by server name alone? > > Graham > > On Dec 23, 9:00 am, Graham Dumpleton <graham.dumple...@gmail.com> > wrote: >> On Dec 22, 9:44 pm, Ben Eliott <ben.dja...@googlemail.com> wrote: >> >>> Hi Graham, >>> I've finally managed to get ba

Re: dynamic mod wsgi

2008-12-23 Thread Ben Eliott
settings file. On 22 Dec 2008, at 22:00, Graham Dumpleton wrote: > > > > On Dec 22, 9:44 pm, Ben Eliott <ben.dja...@googlemail.com> wrote: >> Hi Graham, >> I've finally managed to get back to the wildcard subdomains & >> mod_wsgi >> today. Unfortu

Re: How to set the from a ModelChoiceField?

2008-12-22 Thread Ben Eliott
I suspect that bots aren't going to follow form submits like this so it doesn't matter. But if you have these GET queries coded into any html elements, thereby becoming part of the sitemap, then it probably will matter. This is a bit of a common sense punt, i'm not an SEO expert, so

Re: dynamic mod wsgi

2008-12-22 Thread Ben Eliott
; On Dec 9, 8:05 pm, Ben Eliott <ben.dja...@googlemail.com> wrote: >> Graham, >> Thank you for coming back personally to such a lowly wsgi question! I >> started reading your email and thinking the answer was 'no', then >> ended up thinking 'definitely maybe'. I'll

Re: dynamic mod wsgi

2008-12-09 Thread Ben Eliott
Understood. Thanks. On 9 Dec 2008, at 10:18, Graham Dumpleton wrote: > > > > On Dec 9, 8:05 pm, Ben Eliott <[EMAIL PROTECTED]> wrote: >> Graham, >> Thank you for coming back personally to such a lowly wsgi question! I >> started reading your email and thinkin

Re: Many to Many entries being duplicated, any ideas?

2008-12-09 Thread Ben Eliott
hmm, don't know. that's the documented approach. you might want to investigate intermediary tables/models etc. On 9 Dec 2008, at 09:24, Darthmahon wrote: > > Ahh yes possibly. Any downsides to using this? > > On Dec 9, 9:19 am, Ben Eliott <[EMAIL PROTECTED]> wrote: >&g

Re: request parsing

2008-12-09 Thread Ben Eliott
request.FILES If this is what you mean, I think this is kind of django 101, i'd recommend having a solid read through the docs which cover all these kind of bases really well. On 9 Dec 2008, at 09:30, Vicky wrote: > > If we send a file by post method to a django function how can we >

Re: Many to Many entries being duplicated, any ideas?

2008-12-09 Thread Ben Eliott
Do you want something like this? friends_new = models.ManyToManyField("self",symmetrical=False) On 9 Dec 2008, at 09:06, Darthmahon wrote: > > Hi Guys, > > Just bumping this up as I still can't figure out why this is > happening :/ > > On Dec 8, 9:27 pm, Darthmahon <[EMAIL PROTECTED]> wrote: >>

Re: dynamic mod wsgi

2008-12-09 Thread Ben Eliott
Graham, Thank you for coming back personally to such a lowly wsgi question! I started reading your email and thinking the answer was 'no', then ended up thinking 'definitely maybe'. I'll keep an eye out in case you post more, otherwise i'll follow those links and your directions and hope

Re: Help for crontab

2008-11-20 Thread Ben Eliott
recommend you check out django-extensions jobs. http://code.google.com/p/django-command-extensions/ On 20 Nov 2008, at 12:53, laspal wrote: > > hi, > I am writing cron job for my application but run into problem > > from django.core.management import setup_environ > import settings >

Re: Customising slugify filter

2008-11-19 Thread Ben Eliott
Um, what about a regular python function which replaces '/' with '-' then calls slugify On 19 Nov 2008, at 20:44, Nick wrote: > > Hi, > > I have the following strings which is run through the slugify filter > on my site: > > "Business/Executives" > > and it becomes "businessexecutives".

Re: problem enabling the admin interface

2008-11-19 Thread Ben Eliott
uesses I'm finally up > and running. It's been surprisingly difficult, but I'm not tuned in to > the django world so maybe these are all known issues. > > Thanks again! > > On Nov 19, 2:49 pm, Ben Eliott <[EMAIL PROTECTED]> wrote: >> installed apps needs 'django.contrib.sessions'

Re: Django template tag question

2008-11-19 Thread Ben Eliott
what happens when you go into the python interpreter and write import basic On 19 Nov 2008, at 16:58, goblue0311 wrote: > > I'm implementing the popular basic.blog application, which requires > the inclusion of the basic.inlines project. However, I cannot seem to > get my application to locate

Re: problem enabling the admin interface

2008-11-19 Thread Ben Eliott
installed apps needs 'django.contrib.sessions', http://docs.djangoproject.com/en/dev/topics/http/sessions/#topics-http-sessions On 19 Nov 2008, at 19:42, Bryan Oakley wrote: > > I inherited a django app and I'm trying to enable the admin interface > without much luck. When I try to access the

Re: save existing jpg to model

2008-10-17 Thread Ben Eliott
Hi Steve, Nope, Linux machine... ??? On 17 Oct 2008, at 01:30, Steve Holden wrote: > > [EMAIL PROTECTED] wrote: >> I have users dumping jpgs into a folder within the media root, the >> idea is to monitor this folder and programmatically add the jpgs to >> certain model instances based on a

Re: geodjango apache vs lighttpd

2008-09-23 Thread Ben Eliott
Yup as you say, it was apache + mod_python switched to lighttpd + fastcgi. Sounds like it could well be mod_python / Apache issue at the root of it. On 23 Sep 2008, at 21:47, Jashugan wrote: > > Did you switched from Apache + mod_python to Lighttpd + FCGI? If so, > are you sure it wasn't

Re: newbie question - import conflicts

2008-08-28 Thread Ben Eliott
I found this was caused by redundant non-conventional admin imports left over from development in newforms-admin days. There is few days difference in my django version online and offline and the very latest SVN 1.0-beta decided, rightly, to play havoc with them. On 27 Aug 2008, at 21:23,

Re: newbie question - import conflicts

2008-08-27 Thread Ben Eliott
Thank you for coming back on this. Tim - The structure is organised as you say. James - Thanks for confirming it is simply a path situation, which is all it could be i guess, but for some reason things haven't been working out which has been making me think something else might have been

RE: Multiplechoicefield 1 value

2008-05-09 Thread Ben Eliott
On Fri, 2008-05-09 at 15:26 +0100, Ben Eliott wrote: > Hi, Can anyone please advise on why a multiplechoicefield might be > returning only 1 value (the last value)? Or maybe i'm not accessing it > correctly...? Many Thanks! > Ben How are you accessing the value? Are you using requ

Multiplechoicefield 1 value

2008-05-09 Thread Ben Eliott
Hi, Can anyone please advise on why a multiplechoicefield might be returning only 1 value (the last value)? Or maybe i'm not accessing it correctly...? Many Thanks! Ben --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

RE: Filefield upload_tol

2008-05-05 Thread Ben Eliott
On 5 May 2008, at 14:52, Ben Eliott wrote: > > Hi kg, > > Class HIP has a 1-to-many with Property (many HIPs / 1 Property) . The > offending field is HIP.hip > > #CODE > class Property(models.Model): >"""Model of a property""" > >

RE: Filefield upload_tol

2008-05-05 Thread Ben Eliott
@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Gonsalves Sent: 05 May 2008 15:14 To: django-users@googlegroups.com Subject: Re: Filefield upload_tol On 05-May-08, at 7:22 PM, Ben Eliott wrote: > hip = models.FileField(upload_to='/tmp',core=True) try upload_to='

RE: Filefield upload_tol

2008-05-05 Thread Ben Eliott
ld upload_tol On 05-May-08, at 6:46 PM, Ben Eliott wrote: > Thanks for for your swift attention. > It reloads the same form with the message at the top: 'Please correct > the error below.' (although it doesn't actually show any error below). please paste your model here -- regard

RE: Filefield upload_tol

2008-05-05 Thread Ben Eliott
Of Kenneth Gonsalves Sent: 05 May 2008 13:39 To: django-users@googlegroups.com Subject: Re: Filefield upload_tol On 05-May-08, at 5:33 PM, Ben Eliott wrote: > Hi, I'm getting started in the (highly enjoyable!) admin models - > FileField upload works when I give upload_to the full ab

Filefield upload_tol

2008-05-05 Thread Ben Eliott
Hi, I'm getting started in the (highly enjoyable!) admin models - FileField upload works when I give upload_to the full absolute filepath. However, as soon as I try and use MEDIA_ROOT in settings.py it baulks. Permissions are wide open, I've tried every combination of slashes & paths -- but it