Execute code after sending a http response?

2009-08-28 Thread Shadow
Hi, Is it possible to execute code after sending the actual http response? For my website, users can optionally give an email address, and if they do, the site sends a confirmation email. But I was thinking it's more logical to spend time sending the email after the signup confirmation page is

Re: Open Sourcing a Website [dangerous?]

2009-06-11 Thread Shadow
Hi Michael, Thanks for the info, very helpful. You've convinced me, now I just need to convince the higher authorities :P On Jun 12, 12:24 am, Michael <newmani...@gmail.com> wrote: > On Thu, Jun 11, 2009 at 6:11 AM, Shadow <shadow.fusion.m...@gmail.com>wrote: > > > >

Open Sourcing a Website [dangerous?]

2009-06-11 Thread Shadow
Hi guys, I'm about to launch a non-profit django website, and was thinking I might as well open source the code as well. I noticed this has been done with djangoproject.com, but was thinking how potentially dangerous it is, that any flaws are open to see and be exploited. Is it just a matter

Re: QuerySet.values() for single object?

2009-05-08 Thread Shadow
On May 8, 7:03 pm, "K*K" wrote: > Simple way: > > >>> model = Model.objects.get(id = 1) > >>> print model.__dict__ > Awesome, thanks! I did try "dict(object)" :P btw: I didn't want to use a filter because it was all nicely wrapped in: get_object_or_404(model, id=x)

QuerySet.values() for single object?

2009-05-07 Thread Shadow
Hi, If i get a model object with Model.objects.get() Is their a way to turn that into a dictionary? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Can't visit any url but the root?

2009-05-07 Thread Shadow
For anyone that finds this: I had the following in my apache config: PythonOption django.root / which stripped the initial slash. :P --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Can't visit any url but the root?

2009-05-07 Thread Shadow
Hi, I'm not sure what I've done wrong but I get the following error if I visit any url but "/". Environment: Request Method: GET Request URL: http://fusion-gospel/test Django Version: 1.1 beta 1 SVN-10658 Python Version: 2.5.2

Re: Enable request timeout?

2009-05-05 Thread Shadow
<graham.dumple...@gmail.com> wrote: > On May 5, 3:36 am, Shadow <shadow.fusion.m...@gmail.com> wrote: > > > Hi, > > > I'm developing my site at the moment (locally) and it has an infinite > > loop somewhere. But my requests aren't timing out. The apache > >

Enable request timeout?

2009-05-04 Thread Shadow
Hi, I'm developing my site at the moment (locally) and it has an infinite loop somewhere. But my requests aren't timing out. The apache processes just get larger and larger, till I have to kill apache. I'm guessing I need to set a timeout setting, but I don't know where. Apache? mod_python?

Re: Template path for new admin doc broken in revision 8520?

2008-08-25 Thread Shadow
Hi, not an expert! but I think I had this same problem. The admin docs were fairly recently moved into a separate app. So you'll need to update your urls to something like: -- from

Re: Template path for new admin doc broken in revision 8520?

2008-08-24 Thread Shadow
Are yes, that too ;) On Aug 25, 1:36 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Sun, Aug 24, 2008 at 10:27 AM, Shadow <[EMAIL PROTECTED]>wrote: > > > > > > > Hi, not an expert! > > > but I think I had this same problem. The admin

Re: Admin problems :(

2008-08-24 Thread Shadow
5/ Cheers On Aug 25, 1:17 am, Steve Potter <[EMAIL PROTECTED]> wrote: > What Erik is saying is that in recent versions of Django you no longer > use the same syntax to activate the admin.  This happened when the > newforms-admin branch was merged. > > Steve > > On Aug 24, 1

Re: Admin problems :(

2008-08-24 Thread Shadow
t how   > the admin site should be set up. > > Erik > > On 24.08.2008, at 17:20, Shadow wrote: > > > > > Hi, I'm having some issues with the admin app (using svn rev #8520). > > > 1) I can't get my apps models to show (logged in as superuser). > > > I

Admin problems :(

2008-08-24 Thread Shadow
Hi, I'm having some issues with the admin app (using svn rev #8520). 1) I can't get my apps models to show (logged in as superuser). I've added: " class Admin: pass " to each one with no affect. But I can still see them in user permissions?! 2) The "Change password" link gives the

Re: Sqlite permissions problem - Help :(

2008-02-21 Thread Shadow
:O Well that was stupid of me... I think I assumed it worked since the testing server worked. :P Thanks! All fixed --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Admin section 404 error

2008-02-17 Thread Shadow
Anyone? :P On Feb 16, 3:26 pm, Shadow <[EMAIL PROTECTED]> wrote: > Error message: > > Using the URLconf defined in mysite.urls, Django tried these URL > patterns, in this order: > >1. ^admin/ > > The current URL, my-site.com/admin, didn't match any of these.

Re: Admin section 404 error

2008-02-15 Thread Shadow
admin.urls')), > > On Feb 16, 3:01 pm, Shadow <[EMAIL PROTECTED]> wrote: > > > I should note that it's a django 404 error and not apache so > > django is running > > > On Feb 16, 5:11 am, Shadow <[EMAIL PROTECTED]> wrote: > > > > Hi I'm ne

Re: Admin section 404 error

2008-02-15 Thread Shadow
I should note that it's a django 404 error and not apache so django is running On Feb 16, 5:11 am, Shadow <[EMAIL PROTECTED]> wrote: > Hi I'm new to django/python > > I managed to set everything up going through everything in the > documentation, up to the part where I

Admin section 404 error

2008-02-15 Thread Shadow
Hi I'm new to django/python I managed to set everything up going through everything in the documentation, up to the part where I install the admin interface. When I test the admin section through django's server it works fine. But when I test it on my apache/mod_python server, it gives a 404