Hi,

I'm new to Django, and am trying to write a csv file and attach it to
an email that is sent upon completion of a sales order. All works fine
in the developement server, but when I switch to Apache2 I get an
error message that either says' No such file or directory, ../orders1/
csv_files/ or Permissions denied etc. All works fine when I use the
developement server. Here's my Apache2 sites-available script:
<VirtualHost *>
        ServerAdmin malc...@sporthill.com
        ServerName localhost
        ServerAlias localhost/media/
        DocumentRoot /home/malcolm/data1/orders1/media
        WSGIScriptAlias / /home/malcolm/data1/orders1/apache/django.wsgi
        <Directory /home/malcolm/data1/orders1/>
        Order allow,deny
        Allow from all
        </Directory>
        <Directory /home/malcolm/data1/orders1/csv_files/>
        Order allow,deny
        Allow from all
        </Directory>
</VirtualHost>

Apache2 is located in /etc/apache2/

My app is in /home/malcolm/data1/orders1/

Here's some of the relevant code in my views:
for n in new_m:
            so_order=n.so_number
            so_order=str(so_order)
            custo=n.custno/csv_files/"+custo+so_order+".csv", "wb"))

Any ideas about what might fix this problem. Any thoughts are
appreciated.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to