Re: Python/Django AMQP?

2011-02-25 Thread CrabbyPete
I just started looking at 0MQ it looks interesting http://zguide.zeromq.org/ On Feb 24, 11:58 am, Brian Bouterse wrote: > +1 for Celery and django-celery.  I use them also. > > On Thu, Feb 24, 2011 at 9:07 AM, Shawn Milochik wrote: > > +1 on Celery and django-celery. I use them both. > > > -- >

static list in __init__

2011-02-26 Thread CrabbyPete
I have an application that initializes a larges static array in its __init__ I want to be able to access it from my views.py functions. What is the best way to do this? I know I can put it in memcache, or a database but it seems like an unnecessary over head. eg. __init__.py biglist = initialize

Re: How can I run my django project with django-social-auth?

2011-03-21 Thread CrabbyPete
Its an app that that gets installed into your project. What helped me understand how this works the best is to look at the pinax project. I didn't use the code but looking at it is a great way to learn. http://pinaxproject.com/ On Mar 21, 3:09 am, Su Yi Kyaing wrote: > Dear All! > > I want to c

mod_wsgi - two sites on apache

2011-03-25 Thread CrabbyPete
I am trying to run two sites on one server with apache. I created virtual hosts for each in my hpttd.conf file When I hit the first site everthing is fine. When I hit the second one I get an error. If I reload and switch the order in which I access the sites. The first one is fine the second one di

Re: mod_wsgi - two sites on apache

2011-03-26 Thread CrabbyPete
f you > have set NameVirtualHosts directive properly. > > Graham > > On Saturday, March 26, 2011 5:54:48 AM UTC+11, CrabbyPete wrote: > > > I am trying to run two sites on one server with apache. I created > > virtual hosts for each in my hpttd.conf file > > When I

Re: how to create message box in Django?

2011-03-29 Thread CrabbyPete
A message box is not a django thing. Its html. Look into creating a modal window in html. I do it a lot using javascript and ajax, but there are a lot simpler ways. On Mar 29, 5:10 am, djangodjango django wrote: > Hi all, > > Could someone please tell me how to create a Message Box using Django?

Force an ajax window to close

2011-03-30 Thread CrabbyPete
I have a ajax form using smoothbox and mootools to show a form. Smoothbox has a button to close the box, but I want to force it closed once the submit button is pressed and the form validated. Is there a way django can close a browser window? -- You received this message because you are subscribe

window.location.reload( true );

2011-04-07 Thread CrabbyPete
If I do this in my html javascript window.location.reload( true ); I get the following error. Can anyone tell me why? Traceback (most recent call last): File "C:\Python26\lib\site-packages\django\core\servers \basehttp.py", line 281, in run self.finish_response() File "C:\Python26\l

Re: Django real world website samples (with django source codes)

2011-04-08 Thread CrabbyPete
pinax is great project to learn from http://pinaxproject.com/ On Apr 8, 4:08 am, mengu wrote: > go tohttp://github.comandhttp://bitbucket.organd search for > django. > > On Apr 8, 5:21 am, djangodjango django wrote: > > > thanks. > > > On Thu, Apr 7, 2011 at 4:38 PM, Nikos K wrote: > > > Here i

<    1   2