On Thu, Mar 6, 2014 at 5:24 PM, Tom Browder <tom.brow...@gmail.com> wrote:
> I am working on my first Django project and would like to get comments
> on a reasonable layout for a single Django instance used with several
...

In the attached file there were a couple of mistakes.  In the macro
definition directive the file shows:

  <Macro VHOST_NONSSL $project $tld>

and in the macro body a typical use is:

  ServerName  ${project}.${tld}

However the macro does not expand as I'm used to in shell and other
macro programming, so that

  $project

is not the same as

  ${project}

so the macro definition directive should have been:

  <Macro VHOST_NONSSL ${project} ${tld}>

Then the use of "${project}" and "${tld}" in the macro body is correct.

I have now successfully used such macros and they are a real boon for
using multiple virtual hosts.

Best regards,

-Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFMGiz9Vxgy30q3pAdamG6iKXzD4LnNTXuX3x4n2i0VJkCzUCg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to