Re: ajax

2012-12-19 Thread jirka . vejrazka
Yes -Original Message- From: Randa Hisham Sender: django-users@googlegroups.com Date: Wed, 19 Dec 2012 13:11:35 To: Reply-To: django-users@googlegroups.com Subject: ajax hey, if i wana use ajax in my django project could i use

Can't display data from app in flatpages

2012-12-19 Thread Frank Valcarcel
I have a Django app called blogengine which does exactly what the name implies. I can't seem to get data from blogengine (posts) to display in templates when they're called by flatpages. I'm new to Django but I assume this is a urls.py issue. My urls.py: from django.conf.urls.defaults import

Error "no module named xxxx"

2012-12-19 Thread Sebastien Hoarau
Hi all, I'm beginning with Django and I've a trouble with a "no module named album" error :( So I've a project photos with a single app named album. For the moment I've just made urls in the urls.py of the project : url(r'^$', 'index'), url(r'^(?P\d+)/$', 'annee'),

ajax

2012-12-19 Thread Randa Hisham
hey, if i wana use ajax in my django project could i use jquery or dajax liberary -- Randa Hesham Software Developer Twitter:@ro0oraa FaceBook:Randa Hisham ٍ -- You received this message because you are subscribed to the

Re: Converting Django app into a Desktop app

2012-12-19 Thread Gladson Simplício Brito
http://portablepython.com/ 2012/12/18 Chris Cogdon > Personally, I'd prefer something that didn't require packaging up > additional programs (xampp and python, in this example). > > It should be _perfectly possible_ to find a native-python moderate > performance webserver,

Re: Truncating Session Table makes site hang indefinitely

2012-12-19 Thread Russell Keith-Magee
Hi Wade, If this is something you can't reproduce in testing, and print statements are causing a problem in production, don't use them -- use logging instead. Django's logging tools, which build on Python's built-in logging libraries, are designed specifically for this sort of thing. [1]

Re: Truncating Session Table makes site hang indefinitely

2012-12-19 Thread Wade Williams
Thanks, Russ. I guess i'm a little perplexed as to how exactly to debug this -- the apache log shows no errors, and trying to debug with print statements just forces the code to die due to a WSGI I/O Error. Any help that anyone can provide on debugging is much appreciated; Thanks so much for

Re: Truncating Session Table makes site hang indefinitely

2012-12-19 Thread Russell Keith-Magee
On Thu, Dec 20, 2012 at 9:25 AM, Wade Williams wrote: > Thanks Russ. I too thought it might be the loop to allocate a new session > key, but after studying the code and trying some forced debugs (print x) I > thought it could be due to the super __init__ spinning when

Re: Truncating Session Table makes site hang indefinitely

2012-12-19 Thread Wade Williams
pps tried changing session_id to session_key to see if that solved anything with no effect. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Wqfu2PNjRsYJ.

Re: Truncating Session Table makes site hang indefinitely

2012-12-19 Thread Wade Williams
ps also upgraded to 1.5.b2 with no change. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/_9HalLM--YQJ. To post to this group, send email to

[Solved]: trouble with pre_delete signal method

2012-12-19 Thread Mike Dewhirst
On 20/12/2012 10:59am, Mike Dewhirst wrote: On 19/12/2012 11:58pm, Thomas Orozco wrote: Hi, If you have no relationship, I'm a bit at a loss. I think the easier way would be to use a debugger if possible. I think we need to know what field is causing the ValidationError. The line that's

Re: Truncating Session Table makes site hang indefinitely

2012-12-19 Thread Wade Williams
Thanks Russ. I too thought it might be the loop to allocate a new session key, but after studying the code and trying some forced debugs (print x) I thought it could be due to the super __init__ spinning when it couldnt find the session key in the db. I can access and insert into the DB table

Re: Django community, is it active?

2012-12-19 Thread galgal
You should also look here: https://plus.google.com/communities/108940692418100611427 -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/XhlsXnUgj_QJ. To post

Re: trouble with pre_delete signal method

2012-12-19 Thread Mike Dewhirst
On 19/12/2012 11:58pm, Thomas Orozco wrote: Hi, If you have no relationship, I'm a bit at a loss. I think the easier way would be to use a debugger if possible. I think we need to know what field is causing the ValidationError. The line that's causing an error is in the to_python method of the

Re: Truncating Session Table makes site hang indefinitely

2012-12-19 Thread Russell Keith-Magee
On Thu, Dec 20, 2012 at 5:42 AM, Wade Williams wrote: > Hi all. > > I've got a custom session middlware built that is simply extending the > session base. The only interesting thing this backend is doing is using a > different session table than django's stock one --

Re: Entity has an event Lifecycle, how does Django do it?

2012-12-19 Thread Russell Keith-Magee
Hi Glyn, What you're calling "events", Django calls "signals" [1]. In particular, I'm guessing you're looking for the pre_save and post_save signals. [1] https://docs.djangoproject.com/en/dev/topics/signals/ Yours, Russ Magee %-) On Wed, Dec 19, 2012 at 5:53 PM, Glyn Jackson

Re: Truncating Session Table makes site hang indefinitely

2012-12-19 Thread Wade Williams
Correction we're running 1.5b1 corrently. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/KOtcLPyas_IJ. To post to this group, send email to

Re: Django community, is it active?

2012-12-19 Thread Glyn Jackson
@Odagi point well made. thanks for everyone for being so welcoming :0 I spent today building my first Django local site, ended up with 4 apps. taken me awhile to get my head around things i ended up with registration - handles my user signed security - login, logout web - flat pages

Truncating Session Table makes site hang indefinitely

2012-12-19 Thread Wade Williams
Hi all. I've got a custom session middlware built that is simply extending the session base. The only interesting thing this backend is doing is using a different session table than django's stock one -- this is for integration with a pre-existing PHP site we are in the process of migrating

Re: Converting Django app into a Desktop app

2012-12-19 Thread Loai Ghoraba
@all thanks a lot, I will try your suggestions, may be mixing them :) On Tue, Dec 18, 2012 at 11:39 PM, Chris Cogdon wrote: > Personally, I'd prefer something that didn't require packaging up > additional programs (xampp and python, in this example). > > It should be

Re: trouble with pre_delete signal method

2012-12-19 Thread Mike Dewhirst
On 20/12/2012 12:09am, Thomas Orozco wrote: Hi Mike, Could you try using a debugger as suggested? Yup Otherwise and if that's OK with you / your job, could you send me minimal model code off-list so I can have a look at it? I'm pretty sure we're just missing something obvious! : ) Ok -

Re: Django community, is it active?

2012-12-19 Thread Odagi
In the last 24 hs 10 tickets have been modified in the Django Track system: https://code.djangoproject.com/query?status=assigned=new=reopened=1=changetime and 10 people have replied your email. IMHO, that's an active community for me. On Tuesday, December 18, 2012 6:36:42 PM UTC-3, Glyn

Image upload remove old files - is there a better way then mine?

2012-12-19 Thread Detectedstealth
Hi, For my application I created a custom ImageField (code below) as I need to automatically generate a few different sets of thumbnails. I read the posts on the requests for Django to delete old images when uploading, and was blown away to see the request for that feature turned down. I still

Re: Django community, is it active?

2012-12-19 Thread Bill Freeman
Particularly if it mellows them. Bill On Wed, Dec 19, 2012 at 1:56 PM, Nikolas Stevenson-Molnar < nik.mol...@consbio.org> wrote: > I think the bears should be free to drink the beer ;) > > _Nik > > > On 12/19/2012 6:25 AM, Cal Leeming [Simplicity Media Ltd] wrote: > > LOL omg, I just realised

Re: how to use jquery onclick event and django inclusion_tag/assignment_tag?

2012-12-19 Thread Bill Freeman
On Wed, Dec 19, 2012 at 1:34 PM, Andriyko wrote: > Hello dear Django Users! > > I'm trying to use django inclusion_tag or/and assignment_tag with jquery > 'onclick' event. > Encountered such problems: > 1. When using inclusion_tag/assignment_tag the content returned by them

Re: Django community, is it active?

2012-12-19 Thread Nikolas Stevenson-Molnar
I think the bears should be free to drink the beer ;) _Nik On 12/19/2012 6:25 AM, Cal Leeming [Simplicity Media Ltd] wrote: > LOL omg, I just realised I was spelling beer wrong. > > Cal > > On Wed, Dec 19, 2012 at 1:32 PM, Tom Christie >

how to use jquery onclick event and django inclusion_tag/assignment_tag?

2012-12-19 Thread Andriyko
Hello dear Django Users! I'm trying to use django inclusion_tag or/and assignment_tag with jquery 'onclick' event. Encountered such problems: 1. When using inclusion_tag/assignment_tag the content returned by them is rendered on page load, not onclick. And I suspect that it is correct behavior,

Re: Django community, is it active?

2012-12-19 Thread Timothy Makobu
This link is quite telling of what the Python community in general thinks of Django http://www.python.org/3kpoll On Wed, Dec 19, 2012 at 5:25 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > LOL omg, I just realised I was spelling beer wrong. > > Cal > >

Re: Django community, is it active?

2012-12-19 Thread Cal Leeming [Simplicity Media Ltd]
LOL omg, I just realised I was spelling beer wrong. Cal On Wed, Dec 19, 2012 at 1:32 PM, Tom Christie wrote: > > Is this worth going? --- http://2013.djangocon.eu > > Yes, yes, yes, yes, and yes. I've been to two DjangoCons, both have been > incredible, and have

Re: Django community, is it active?

2012-12-19 Thread peter
Yeah man, we are alive. :). You wanna be part of us. Don't be afraid, just take a seat, to share, implement, etc, etc. On 12/19/2012 10:32 AM, Tom Christie wrote: > Is this worth going? --- http://2013.djangocon.eu Yes, yes, yes, yes, and yes. I've been to two

Re: Django community, is it active?

2012-12-19 Thread Tom Christie
> Is this worth going? --- http://2013.djangocon.eu Yes, yes, yes, yes, and yes. I've been to two DjangoCons, both have been incredible, and have reaffirmed how proud I am to work in this industry, and to be a part of this community. > Who are the top blogs people within the Django community

Re: trouble with pre_delete signal method

2012-12-19 Thread Thomas Orozco
Hi Mike, Could you try using a debugger as suggested? Otherwise and if that's OK with you / your job, could you send me minimal model code off-list so I can have a look at it? I'm pretty sure we're just missing something obvious! : ) Cheers, Thomas 2012/12/19 Mike Dewhirst

Re: trouble with pre_delete signal method

2012-12-19 Thread Mike Dewhirst
On 19/12/2012 12:06am, Thomas Orozco wrote: I think you have a ForeignKey field that is required or limited and that is causing the ValidationError. Indeed, that line 988 is in the code for ModelChoiceField I have now been through the entire application and adjusted *ALL* foreign keys to be

Re: Django community, is it active?

2012-12-19 Thread Cal Leeming [Simplicity Media Ltd]
Sorry, slightly misworded! Don't /just/ drink the free bear, help out as well. Cal On Wed, Dec 19, 2012 at 3:02 AM, Chris Cogdon wrote: > But I _want_ to drink the free bear. > > On Tuesday, December 18, 2012 3:19:59 PM UTC-8, Cal Leeming [Simplicity > Media Ltd] wrote: >>

Re: trouble with pre_delete signal method

2012-12-19 Thread Thomas Orozco
Hi, If you have no relationship, I'm a bit at a loss. I think the easier way would be to use a debugger if possible. I think we need to know what field is causing the ValidationError. The line that's causing an error is in the to_python method of the ModelChoiceField object. Basically, you'll

Re: invalid syntax inside urls.py

2012-12-19 Thread Bill Freeman
On Tue, Dec 18, 2012 at 5:04 PM, carlos wrote: > and coma before url admin !!! > > Cheers > > > On Tue, Dec 18, 2012 at 3:32 PM, Chris Cogdon wrote: > >> Need a comma between the view name, and {'queryset...' and your >> parenthesis are not nested

Re: Entity has an event Lifecycle, how does Django do it?

2012-12-19 Thread Sergiy Khohlov
Have you checked https://docs.djangoproject.com/en/dev/topics/auth/ ? Allso views and forms for this one are already created Many thanks, Serge +380 636150445 skype: skhohlov 2012/12/19 Glyn Jackson : > In other languages and frameworks I have used when you have an

Re: Django community, is it active?

2012-12-19 Thread Glyn Jackson
@Cal Leeming some really useful information and very honest. I'm loving using Django! -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/6tebKj_Jg-wJ. To

Entity has an event Lifecycle, how does Django do it?

2012-12-19 Thread Glyn Jackson
In other languages and frameworks I have used when you have an entity such as user. Each entity has an event lifecycle i.e. post update, pre update, post save etc The following code below is my first save using Django. But its looks very messy, it should be than user has a pre create for