There's a few ways to do it. An easy way if your just serving up some css, images etc is to symlink your admin_media folder in your media directory to the media folder in your django admin install:
[ja...@293230-app1 ~]$ ls /var/django-projects/udox/public/media/ -l total 28 lrwxr-xr-x 1 root root 62 Jun 25 09:34 admin -> /usr/local/ pyvans/lib/python2.6/site-packages/grappelli/media/ drwxr-xr-x 2 jaymz apache 4096 Jul 9 06:12 css drwxr-xr-x 32 jaymz apache 4096 Jun 14 11:21 galleries And in settings: ADMIN_MEDIA_PREFIX = '/media/admin/' This means anyone can access your admin css/js files etc, it's unlikely to be an issue for you. Another way is to set your admin_media_prefix to something like / admin_media/ and then in your apache conf set an alias for it. Alias /admin_media/ /usr/local/pyvans/lib/python2.6/site-packages/ grappelli/media/ Both work and are pretty painless. Your paths will be different of course (i'm using django-grappelli as a backend theme) jaymz On Jul 15, 2:04 am, lupuscramus <lupuscra...@hyperthese.net> wrote: > Hi. > > I've made an app (django 1.2) which works fine for tests, on my laptop with > the django built-in web server. > > I want to put in production my app, with Apache and mod_wsgi. > > I've verified I've django 1.2 on the production server. > > The problem is I've no images. When I connect to the admin site (generated bu > Django), I can see "Django Administration", the fields "connexion" and > "password", but there is not the images of the interfaces - it's a simple > page. > > I use a template dir to replace Django Administration by my own title, but > even I disable the template dir, I have no images. > > My server uses Debian, and I've installed Django by aptitude. My files are > located in /usr/share/pyshared/django. > > I can see on the documentation of django about deploying an app with apache > and wsgi that I should have another web server, or configure apache for the > media files. It could be the problem (Images are they media files ?). > > In fact, I don't understand really this part of the doc. Are the defaults > templates of django concerned by this part ? > > Thanks, -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.