Django admin not working with mod_python

2010-08-24 Thread Shamail Tayyab
de all Test cases: On accessing something like http://www.host.com/media/css/base.css it gives 404 Not Found. Thanks and Regards -- Shamail Tayyab Blog: http://shamail.in/blog -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Moderation of posts

2010-08-29 Thread Shamail Tayyab
Hi, I've sent a couple of posts and it waits for moderation, but never get cleared. I never even get any denial reason or something. Just checking if this message reaches.. Thanks -- Shamail Tayyab Blog: http://shamail.in/blog -- You received this message because you are subscribed t

Re: Moderation of posts

2010-08-29 Thread Shamail Tayyab
day or > two (or three) later, so these posts sometimes do get held up for a while. > Usually, though, there are enough new member postings that someone visits > the moderation page often enough to see these oddball cases and move them > along fairly quickly. > > Karen >

Chat application in Django

2010-08-31 Thread Shamail Tayyab
Hi, I am working on a chat application in Django, how can I ensure that I do not have to poll the server for any chat data. Possible approaches that I've been to: 1. BAD - use polling. 2. Use long polling - bad approach afa browser support is concerned. 3. Using sockets in flash - makes t

Chat application in Django

2010-08-31 Thread Shamail Tayyab
this approach looks like safest bet, is it good to go? Btw, how does Gmail and FB chat works? Thanks -- Shamail Tayyab Blog: http://shamail.in/blog -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Re: Chat application in Django

2010-08-31 Thread Shamail Tayyab
Wed, Sep 1, 2010 at 5:23 AM, ebry1 wrote: > I am interested in this problem too, I need to pass some additional > data along side chat messages. > > Why did you decide to abandon polling?  I was thinking of thinking of > using it and updating about twice a second. > > > &g

Re: Chat application in Django

2010-09-03 Thread Shamail Tayyab
send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Shamail Tayyab Blog: http://shamail.

Reverse lookup - models

2010-09-06 Thread Shamail Tayyab
w which section this topic belong to. How can I do that? Thanks -- Shamail Tayyab Blog: http://shamail.in/blog -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To un

Re: Reverse lookup - models

2010-09-06 Thread Shamail Tayyab
On Mon, Sep 6, 2010 at 11:21 PM, Shamail Tayyab wrote: >> Each topic has *multiple* sections - that's the whole point of a >> ManyToMany relationship. >> >> You can iterate through the sections for each topic: >> >>    for topic in topics: &g

Re: Generate a daily serial/batch/lot number

2010-09-06 Thread Shamail Tayyab
lan B. -- Shamail Tayyab Blog: http://shamail.in/blog -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django

Re: javascript

2010-09-08 Thread Shamail Tayyab
roup. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Shamail Tayyab

Wiki in Django?

2010-09-11 Thread Shamail Tayyab
Hi, I need a very minimal wiki, best if it runs on flat files. moinmoin is too heavy for what I am looking. Is there some Django thing available or written by someone here? Thanks -- Shamail Tayyab Blog: http://shamail.in/blog -- You received this message because you are subscribed to the

Re: Django Chat App?

2010-09-16 Thread Shamail Tayyab
t can also work. Reason: You need live streaming. Wowza media server/Adobe FMS is what you should consider once. Regards -- Shamail Tayyab Blog: http://shamail.in/blog -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: IE9 and dev server errors

2010-09-18 Thread Shamail Tayyab
to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.co

CSS and JS minification

2010-09-20 Thread Shamail Tayyab
che? Thanks and regards -- Shamail Tayyab Blog: http://shamail.in/blog -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, s

Re: [ Error infinite loop ]

2010-10-06 Thread Shamail Tayyab
quot;, line 2, in fun File "", line 2, in fun File "", line 2, in fun File "", line 2, in fun File "", line 2, in fun RuntimeError: maximum recursion depth exceeded Do you have an end condition for your recursive function? This might help: def fun(so

Re: Django Graphics

2010-12-02 Thread Shamail Tayyab
Have you also tried the python's imaging library? You can easily make any type of images in PIL and the display them as images in browser. (Should fit your requirement of circles, triangles etc and has lots more) Tx -- Shamail Tayyab Blog: http://shamail.in/blog On Dec 2, 3:08 pm, Ja

Re: css templates

2010-12-06 Thread Shamail Tayyab
Hi, Well here is an approach, you can use the Django's template engine for generating dynamic CSS as well... lets assume your templates path is TEMPLATES Now create a (minimal) file called style.css in your TEMPLATES like this: h1 { font-size: {{font_size}}; text-decoration: {{text_dec

Re: customizing admin - third party db esp. MongoDB?

2011-05-12 Thread Shamail Tayyab
g this? Or am I just doing it wrong? Use pymongo as DB Driver and mongoengine for Django ORM like wrapper for mongo.. Tx -- Shamail Tayyab -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Preview for the new website..

2011-06-04 Thread Shamail Tayyab
more.. I'ld like you to review my work and do tell me the goods and more important, the bads.. With best regards -- Shamail Tayyab P.S The site uses Facebook to login (as of now), I definitely has a lot of plans to fix that, but being alone on this work is not permitting time to get aro

Re: Preview for the new website..

2011-06-04 Thread Shamail Tayyab
On Jun 4, 5:09 pm, Kenneth Gonsalves wrote: > On Sat, 2011-06-04 at 04:58 -0700, Shamail Tayyab wrote: > > I'ld like you to review my work and do tell me the goods and more > > important, the bads.. > > cool - what happens to non facebook users? also would love to

Re: Preview for the new website..

2011-06-06 Thread Shamail Tayyab
how you got the > actual styling together? Did you bang all that out with photoshop/css/ > javascript or something? Cause I want to make a website, but I don't > know if I should go ahead and learn this way, or if there is an easier > way. Thank you. > -Raj > > On Jun 4

Re: django/python performance vs play/java

2011-07-06 Thread Shamail Tayyab
Pretty interesting.. So, I've an idea here.. Why don't you log this output in some file.. (and share) def page (request): start = time.time() # function definition elapsed = (time.time() - start) return HttpResponse() This way, see if its the framework that's taking the time, or its

Bringing down a website

2010-12-13 Thread Shamail Tayyab
Hi, I am running a website which is currently running in its test phase, it is a site which consumes too much bandwidth when running. We are running the site on Amazon EC2 and paying bandwidth cost. At times, I need to preserve over usage of data by bringing down the website while our test cas

Re: Bringing down a website

2010-12-13 Thread Shamail Tayyab
Winkler wrote: > On Dec 13, 10:20 am, Shamail Tayyab wrote: > > > What could be the simplest way to do it without altering any of my > > current views or anything? > > Write a view for /shutdown which sets some global flag eg. in the > database, > then write some mid

Django as huge image host

2010-12-17 Thread Shamail Tayyab
Hi, I have this situation.. - We need to serve static files(images), lots of them, probably 100s of them per second. Our website is in Django and we need to support something like this: 1. a URL like /xyz.jpg should open an image. 2. image should be accesibe via this path only because we as

Re: Django as huge image host

2010-12-17 Thread Shamail Tayyab
> I'm not sure this is even a task for Django. If your primary concern is > performance, try doing this directly in Apache or another web server via > rewrite rules and use the access logs to do the accounting. Apache is good at > access statistics. > > If your primary concern is statistics, th

Re: Django as huge image host

2010-12-17 Thread Shamail Tayyab
> Does your CDN offers statistics? I use rackspace cloud files and I > know there is log files I can rely on. I didn't used it yet but maybe > it's a choice... Hi, No, we don't yet have a CDN, its a prospect, a costly prospect. Thanks -- You received this message because you are subscribed t

Re: Django as huge image host

2010-12-17 Thread Shamail Tayyab
> Google for X-SendFile > Hey! This one looks like exactly what I want... I'll give it a shot. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this

Re: fcgi, runfastcgi, parameters, docs [noob question]

2010-12-22 Thread Shamail Tayyab
You may want to try running your fastcgi daemon via command line, This is the exact command that I am using at production: python manage.py runfcgi daemonize=false method=threaded host=127.0.0.1 port=9001 Tx -- Shamail Tayyab Blog: http://shamail.in/blog On Dec 22, 6:52 pm, Richard Brosnahan

mod_wsgi or mod_fcgi

2011-02-24 Thread Shamail Tayyab
Hi, I am going to deploy a site today on an Amazon's large instance. Our setup is like this: server 1: mongoDB + redis server server 2: django + nodejs We are using node for server push things. Can you please suggest what would be the best way to deploy django as? (via wsgi or fcgi). We've pl

Re: AW: parameter, but not in the URL

2011-03-04 Thread Shamail Tayyab
eid = hashlib.sha1 ( str(r.random()) + "MY_COOL_SALT" ) then you form your URLs like: /33bac54baa...33b/delete This won't make it 100% secure, but will make it almost impossible to guess an ID. Tx -- Shamail Tayyab Blog: http://shamail.in/blog -- You received this message becaus

High availability deployments

2011-03-23 Thread Shamail Tayyab
Hi, We have a setup in which we can't afford downtime (even while deployment). Our setup is based on lighttpd + django (on fcgi via flup). What my problem is, when we restart django, the site goes down for about a couple of seconds (and all API calls to DB remains incomplete resulting in 500.h

Twitter like graph with django model

2011-03-27 Thread Shamail Tayyab
Hi, Can you give me a hint on some model schema that can optimally store a big social graph (follow/following type). Tx -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To u