It's in settings.py and http.conf. It is probably easier for me to give you an example so you can see how it works.
All of my media files are located in "C:\data\projects\web\media". I copied all of the admin media files from the "site-packages\Django-0.95-py2.4.egg\django\contrib\admin\media" directory in my Python installation to "C:\data\projects\web\media\admin". In my settings file, I have the following values: MEDIA_ROOT = 'C:/data/projects/web/media/' MEDIA_URL = '/media/' ADMIN_MEDIA_PREFIX = '/media/admin/' In httpd.conf, I added the following to configure Apache to handle the media files: Alias /media "C:/data/projects/web/media" <Location "/media/"> SetHandler None </Location> <LocationMatch "\.(jpg|gif|png)$"> SetHandler None </LocationMatch> That should do it. Let me know if you run into any issues. Sean On 10/20/06, Tipan <[EMAIL PROTECTED]> wrote: > > Sean, > > Thanks for your input. I tried the changes to url.py as you suggested, > adding mysite in front of the polls did allow me to enter the > http://localhost/mysite/polls/ as the address and see the list of polls > int eh browser. > > Retruning it to it original state allows me to see the same result > under the address: http://localhost/mysite/ > > So it is working and outputting the project code. > > I also changed added the admin location in the httpd.conf file for > Apache and this has allowed me to see the administration interface. > However, it is not rendering the formatting that I see with the django > lite server. When I look at the source for the page, it shows the > following error: > > Page not found (404) > Request Method: GET > Request URL: http://localhost/media/css/dashboard.css > > So it can't see the CSS file for the formatting. I suspect I need to > add another line - Where should I reference this in the > settings.py/url.py or in the httpd.conf? > > Regards, > > Tim > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---