As a newbye I'm using django 1.4.3 under Mac OS X.
Reading the tutorials (and an Italian book on django by Marco Beri), I was able 
to set up my app 'home' using a legacy mysql db, and play  with it as admin by 
means of the server 'python manage.py runserver'. Nice layout indeed!
I modified my apache2 httpd.conf in order to run the same app adding:

VirtualHost *:8000>

    ServerAdmin webmaster@localhost
        <Location "/">
         SetHandler python-program
         PythonHandler django.core.handlers.modpython
         PythonPath "['/home/vittorio','/home/vittorio/miosito/home'] + sys.pat$
         SetEnv DJANGO_SETTINGS_MODULE home.settings
         PythonDebug On
        </Location>

</VirtualHost>

OR (an alternative httpd.conf)


WSGIScriptAlias / /home/vittorio/miosito/home/django.wsgi
WSGIPythonPath /home/vittorio/miosito/home

<Directory /home/vittorio/miosito/home/>
<Files django.wsgi>
    Order deny,allow
    Allow from all
</Files>
</Directory>


Both work  but their layout is simply awful, not at all elegant like that 
obtained by means of runserver. 
My point is that I would like to fix this and have the same elegant layout of 
the standard python manage.py runserver

leafing thru this list I understand that I should have added an alias reference 
to the directory of the django media that im my case, according to the many 
mails (very old indeed, usually referring to django 1.0), should be 
/Library/Python/2.7/site-packages/django/contrib/admin/media 
which simply does not exist (also under FreeBSD which I use too)

What wrong with it and how can I solve this problem

Ciao
Vittorio

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to