Re: Sending SMS messages
On Jan 23, 2008 5:01 PM, John <[EMAIL PROTECTED]> wrote: > > Let me try and answer your questions. > > Do you need to receive SMS? If you need to receive SMS, you will need > to host your own GSM device or modem so that people can send you SMS. afaik clickatell can receive sms messages on your behalf and trigger some sort of callback to your server. not sure how it works though. > If not, you can just use internet SMS gateways like clickatell to do > the work, and post to them by HTTP, XML or email. The cost is about > 6-8 cents per SMS. There are cheaper services, but not always > reliable. If you need to host your own GSM device, you can use > software like [url]http://www.kannel.org[/url] (GPL Open Source) or > [url]http://www.visualgsm.com[/url]. can you share some other service names, not necessarily cheaper but with a decent api like clickatell has? thx papa --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Striped tables in Django
On Jan 23, 2008 4:55 PM, shabda <[EMAIL PROTECTED]> wrote: > > Does anybody have a code snippet for getting striped tables with > django? Basically I would need to apply alternating classes to the the > rows returned by the rowset. I do not want to do this from javascript, > but from server side. http://www.djangoproject.com/documentation/templates/#cycle papa --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Template Macros Like In Jinja
On Jan 23, 2008 11:32 AM, James Bennett <[EMAIL PROTECTED]> wrote: > > On Jan 22, 2008 4:15 PM, Papalagi Pakeha <[EMAIL PROTECTED]> wrote: > > what's the reasoning behind not having and not planning to have macros > > in django templates? they look like a very useful construct compliant > > with DRY to me. > > Django's template system is meant to be a means of expressing > presentation, not a programming language. Programmable macros are, > well, part of a programming language, not a presentation system. template macros are not that much about programming. it's about bringing DRY to templates since without macros you often have to repeat the same HTML again and again. i'm indeed biased as in my last project we used TAL template engine which has a decent support for macros (but many serious problems in other areas hence i'm not keen to drop the native django template engine in favour of TAL. yet). i'll explore jinja a bit more. that could be the way to go. papa --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Template Macros Like In Jinja
On Jan 23, 2008 4:08 AM, James Bennett <[EMAIL PROTECTED]> wrote: > > On Jan 21, 2008 8:30 PM, Papalagi Pakeha <[EMAIL PROTECTED]> wrote: > > i wonder if there is any way to have Macros in django templates > > similar to what Jinja has (http://jinja.pocoo.org/)? > > No. > > The Jinja project was started specifically to add additional > programming constructs that the Django template system does not and > likely will not implement. what's the reasoning behind not having and not planning to have macros in django templates? they look like a very useful construct compliant with DRY to me. papa --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Template Macros Like In Jinja
hi there! i wonder if there is any way to have Macros in django templates similar to what Jinja has (http://jinja.pocoo.org/)? the closest i could get was using 'include' tag and have the repetitive content in a standalone file, but it's pretty obscure to have a separate file for each little bit of content that to be repeated here and there. is there any other way other than switching to Jinja to get some sort of macros in django templates? thanks papa --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---