I am using Media Temple to host my site. Every form on submit throws
500 error - users can make purchases but won't see "thank you"
message.

My guess is that the emails are not being sent o the configuration of
the server is incorrect.


Here is my config
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++
server.document-root        = "/home/xxx/domains/xxx.com/html/"
server.errorlog             = runtime_base + "/mt_lighttpd.error.log"
accesslog.filename          = runtime_base + "/
mt_lighttpd.access.log"

url.access-deny             = ( "~", ".inc" )

fastcgi.server = (
  "/main.fcgi" => (
    "main" => (
      "socket" => "/var/tmp/" + appname + ".sock", # don't change this
      "check-local" => "disable",
    )
  )
)

alias.url = (
  "/media/" => "/home/xxx/data/python/django/django/contrib/admin/
media/",
  "/static/" => "/home/xxx/containers/django/xxx/static/",
)

url.rewrite-once = (
  "^(/media.*)$" => "$1",
  "^(/static.*)$" => "$1",
  "^/favicon\.ico$" => "/media/favicon.ico",
  "^(/.*)$" => "/main.fcgi$1",
)

server.error-handler-404 = "/main.fcgi"


Error log
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++

File "/nfs/c07/h04/mnt/xxx/data/python/lib/Django-1.1.2-py2.4.egg/
django/template/__init__.py", line 914, in render
  File "/home/xxx/containers/django/xxx/localsite/templatetags/
categories.py", line 68, in category_tree
    for cats in
Category.objects.root_categories().order_by('ordering'):


Category tree
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++
@register.simple_tag
def category_tree(id=None, exclude=None):

    active_cat = None
    if id:
        try:
            active_cat = Category.objects.active().get(id=id)
        except Category.DoesNotExist:
            active_cat = None
    current_site = Site.objects.get_current()
    cache_key = "cat-%s" % current_site.id
    existing_tree = cache.get(cache_key, None)
    if existing_tree is None:
        root = Element("ul")
        for cats in
Category.objects.root_categories().order_by('ordering'):
            if exclude and (cats.name.lower() == exclude):
                continue
            recurse_for_children(cats, root, active_cat)
        existing_tree = root
        cache.set(cache_key, existing_tree)
    # If we have an active cat, search through and identify it
    # This search is less expensive than the multiple db calls
    if active_cat:
        active_cat_id = "category-%s" % active_cat.id
        for li in existing_tree.getiterator("li"):
            if li.attrib["id"] == active_cat_id:
                link = li.find("a")
                link.attrib["class"] = "current"
                break
    return tostring(existing_tree, 'utf-8')

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to