httplib exception in Django model

2012-09-19 Thread airween
Hello, here is the sample code: #!/usr/bin/python > # -*- charset: utf-8 -*- > > import sys > import httplib > import base64 > > > httphost, httpport = "www.foo.com", 80 > httpuri = "/addrs.php" > > conn = httplib.HTTPConnection(httphost, httpport) > > conn.request("GET", str(httpuri)) > > >

Re: date display problem?

2012-09-19 Thread Navnath Gadakh
i am fetching multiple rows? i have already used for offer in offers: print offer.effective _date but didnt work.my code is my_offers = Offer.objects.filter(offer_id=coupon.offer_id_id,is_active=True) for offer in my_offers: print offer.effective_

Re: Extending templates

2012-09-19 Thread Tom Evans
On Tue, Sep 18, 2012 at 12:12 PM, Satinderpal Singh wrote: >> With template 'inheritance', when you extend another template, what >> happens is that the named blocks in the parent template are replaced >> with the equivalently named blocks in the derived template. >> >> This means that in the deri

Re: Alternatives to CBVs (class based views)

2012-09-19 Thread Cal Leeming [Simplicity Media Ltd]
Thanks for clarifying, I see where my initial confusion was now. The reason this leak hadn't affected our apps was because we didn't use __init__ to set up the view, instead all the state logic was placed into __call__. Never the less, having a class call return a HTTPResponse will break class usa

Re: Django + mod_wsgi url rewriting issue

2012-09-19 Thread Rafael E. Ferrero
I use something like that... i mean, for example if /foo/bar must to execute with django the url must to be example.com/site.wsgi/foo/bar (continue with the example of serverfault)... if you follow example.com/foo/bar apache use your statics files. (this part of my production virtualhost) WSGIDae

template rendering progress

2012-09-19 Thread Philippe Raoult
Hello all, I'm using django templates to generate pdf listings in my app. After running render() on the template, reportlab is called to create the pdf. My issue is that those listings can get quite big (hundreds of pages, with images) and thus take very long to render. Reportlab has progress

Re: Hello World with Django

2012-09-19 Thread Vernon Cole
127.0.0.1 is -- by definition -- your local computer. You need to substitute the actual address of your remote server. On Sunday, September 16, 2012 3:24:02 PM UTC-6, python@hotmail.com wrote: > > > Hi, > > Can someone help me in this question? > > > http://stackoverflow.com/questions/123

Re: Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-19 Thread DJ-Tom
I have now found extensive documentation as to why and how Apache has to be configured with Django and mod_wsgi here http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this disc

Django Unobtrusive Ajax

2012-09-19 Thread Faraz Masood Khan
Easiest way to do Ajax in Django: http://codestand.feedbook.org/2012/09/django-unobtrusive-ajax.html -- 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/-/qm4Hhb

Re: Django Unobtrusive Ajax

2012-09-19 Thread Kurt Pruhs
Great idea. It looks like you have a legitimate method for "baking" AJAX into the Django framework. I will be starting a new Django project in October. I will try to integrate this. On Wednesday, September 19, 2012 9:02:44 AM UTC-6, Faraz Masood Khan wrote: > > Easiest way to do Ajax in Django:

Re: Django Unobtrusive Ajax

2012-09-19 Thread Faraz Masood Khan
Yes Kurt, you can vote for this feature over here: https://code.djangoproject.com/ticket/18981 On Wednesday, September 19, 2012 8:02:44 PM UTC+5, Faraz Masood Khan wrote: > > Easiest way to do Ajax in Django: > http://codestand.feedbook.org/2012/09/django-unobtrusive-ajax.html > > -- You rec

Beginer: Need Help in setting up goflow, could you please elaborate initial Gflow setup

2012-09-19 Thread Enator24
Need Help in setting up goflow, could you please elaborate initial Gflow setup please "https://code.djangoproject.com/wiki/GoFlow_Doc"; I have been referring this setup guide but still having lot of problem. Please let me know the exact prerequisite after I have install Django. -- You received

Re: tree.io installation with django

2012-09-19 Thread Nick Apostolakis
On 18/09/2012 10:33 μμ, Fabian Weiss wrote: YES! I got this error: http://snipurl.com/251cbjb After doing your MySQL Code it WORKS!! :) THX alot! You are welcome :) -- -- Nick Apostolakis e-mail

Re: Beginer: Need Help in setting up goflow, could you please elaborate initial Gflow setup

2012-09-19 Thread Stephen Anto
Hi, There are 7 steps only to start your django project.. just visit http://www.f2finterview.com/web/Django/17/ it may give you solution. Than you for visiting On Wed, Sep 19, 2012 at 9:53 PM, Enator24 wrote: > Need Help in setting up goflow, could you please elab

Re: httplib exception in Django model

2012-09-19 Thread Alexis Roda
Al 19/09/12 10:42, En/na airween ha escrit: File "/usr/lib/python2.6/socket.py", line 547, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): error: Int or String expected >>> What should I do, what is the problem? According to the last line it seems that 'host

Re: Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-19 Thread Stephen Anto
Hi, There are only 7 steps ahead to say 'Hello World' via Django project. Visit http://www.f2finterview.com/web/Django/17/ its tells how to make simple django project with seven steps. Thank you for visiting On Thu, Sep 13, 2012 at 2:55 PM, DJ-Tom wrote: > > Ok...

Re: Hello World with Django

2012-09-19 Thread Stephen Anto
Hi, There are 7 steps only to start your django project.. just visit http://www.f2finterview.com/web/Django/17/ it may give you solution.Than you for visiting On Wed, Sep 19, 2012 at 7:52 PM, Vernon Cole wrote: > 127.0.0.1 is -- by definition -- your local comput

Re: Beginer: Need Help in setting up goflow, could you please elaborate initial Gflow setup

2012-09-19 Thread Enator24
Thanks for your reply, I am able to setup the sample project, just need to know if I need to do any thing other than specified on " https://code.djangoproject.com/wiki/GoFlow_Doc"; On Wednesday, 19 September 2012 23:10:35 UTC+5:30, Stephen Anto wrote: > > Hi, > > There are 7 steps only to sta

Re: date display problem?

2012-09-19 Thread Lachlan Musicman
On Wed, Sep 19, 2012 at 10:19 PM, Navnath Gadakh wrote: > i am fetching multiple rows? > i have already used > for offer in offers: > print offer.effective _date > but didnt work.my code is > my_offers = > Offer.objects.filter(offer_id=coupon.offer_id_id,is_active=True) >

Re: Alternatives to CBVs (class based views)

2012-09-19 Thread Russell Keith-Magee
On Wed, Sep 19, 2012 at 6:42 PM, Cal Leeming [Simplicity Media Ltd] wrote: > Thanks for clarifying, I see where my initial confusion was now. > > The reason this leak hadn't affected our apps was because we didn't use > __init__ to set up the view, instead all the state logic was placed into > __c

Re: Django Unobtrusive Ajax

2012-09-19 Thread Russell Keith-Magee
… and, you can also see on that ticket that the chance of this getting into Django itself is *very low*. Django is, by design, a server side framework. AJAX is a primarily client-side concern, with some light server-side data requirements. There's absolutely no need for this to be tightly bound to

problem with html select box values

2012-09-19 Thread Navnath Gadakh
i have project for online shoping in that i use product category and and product names. i have taken product name in select dropdown box. now i want to create offer for any perticular product whatever i selected . but at the time of product name comparison in view it takes only first string

Re: Beginer: Need Help in setting up goflow, could you please elaborate initial Gflow setup

2012-09-19 Thread Stephen Anto
Yes there are lot of necessary settings in settings.py based on the requirement. If you need any other clarification, there are lot of docs available on net, else send me your requirement in detail. Thank you for visiting On Wed, Sep 19, 2012 at 11:52 PM, Enator24 w

Re: SyntaxError Creating New Project

2012-09-19 Thread Stephen Anto
Hi, Just follow these 7 steps to start new project http://f2finterview.com/web/Django/17/ For more http://f2finterview.com/web/Django On Wed, Sep 19, 2012 at 1:49 AM, Bestrafung wrote: > I restarted from the beginning using the previously mentioned guide but > also a very helpful post on the cp

Re: tree.io installation with django

2012-09-19 Thread Fabian Weiss
The trouble is still not over :( :( When I click on Calendar or Projects I get the error in the top: "Something went wrong..." Exactly because of these two features I installed the software.. :/ So I remove the # in the link to activate the debug output and I get: http://snipurl.com/251x8oz (1054

Re: httplib exception in Django model

2012-09-19 Thread airween
Hello, On Wednesday, September 19, 2012 7:45:00 PM UTC+2, Alexis Roda wrote: > > Al 19/09/12 10:42, En/na airween ha escrit: > > >File "/usr/lib/python2.6/socket.py", line 547, in create_connection > > for res in getaddrinfo(host, port, 0, SOCK_STREAM): > > error: Int or String expect

is Django by Example still relevant resource

2012-09-19 Thread Gour
Hello, I'm starting to learn Django and considering that the present django is 1.4.1 and by the end of the year there will be 1.5 available, i wonder if Django by Example (http://lightbird.net/dbe/index.html) written for 1.2 is still good resource for learning? What about The Django Book V2.0?