Re: Django Email
django-mailer[1] is a nice application to have around if you're planning to send too much emails. It queues messages and retry failled attempts. [1] On Wed, Jan 19, 2011 at 8:09 PM, Shawn Milochik <sh...@milochik.com> wrote: > Whatever method you decide to use to gather the e-mail addresses is up to > you, and depends on your needs. > > The send_mail function accepts a list of recipients, and it doesn't really > matter how you get them. > > Two notes on sending e-mail, though: > > 1. Ensure that you're sending the e-mail multiple times (once to each > person) to ensure privacy. Unless, for some reason, it's fine that all > recipients get the e-mail addresses of the others. > > 2. SMTP communications are expensive, so you may want to go deeper than the > send_mail function so you can create an SMTP connection and send multiple > messages then include it. Otherwise you'll create a new SMTP connection for > each message, which will take longer. Unless that's what you want. > > Shawn > > > -- > 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 > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Eduardo Cereto Carvalho -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django and google webmaster tools file
Your static files probably already live in your MEDIA_URL and this file must live in your root path. As this is just a single file and won't be handled often you can take the same approach I use when dealing with robots.txt. Keep in mind that this is not a recomended way to serve static files but you can think about these files as exceptions. Add a line to your url conf with the path you want it to be on and create the file as a template with only static content: urlpatterns += patterns('django.views.generic.simple', (r'^robots.txt$', 'direct_to_template', {'template':'robots.txt', 'mimetype':'text/plain'}), ) On Wed, Jan 19, 2011 at 5:03 PM, Martin Tiršel <dja...@blackpage.eu> wrote: > This is a static file and should be served directly by webserver, so you > need to configure your webserver to provide this file (like other static > files but from another url). > > It is possible to server it by Django too, then you are looking for > django.views.static.serve but It is not recommended. > > Regards, > Martin Tirsel > > > > On Wed, 19 Jan 2011 19:39:41 +0100, galago <prog...@gmail.com> wrote: > > How can I put a file, which is needed by the Google Webmasters Tool? Where >> to put it or how to configure django to read it? >> > > -- > 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 > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Eduardo Cereto Carvalho -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django Template CSS Load Path
You can use MEDIA_URL conf to get the root path to your media files. On Wed, Jan 19, 2011 at 5:55 PM, octopusgrabbus <old_road_f...@verizon.net>wrote: > I am trying to load a css file in my base.html template > > > > >{% block title %}Test{% endblock %} > > > > What kind of path is supposed to go in the href? Is it relative to the > document root? > > Does anyone have an example of loading a css file including the Apache > configuration? > > Thanks. > cmn > > -- > 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 > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Eduardo Cereto Carvalho -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.