Better to make a link, rather than copy. If the media files ever change, you'll have to recopy the files...
keith On Tue, Aug 26, 2008 at 10:12 PM, App Engine <[EMAIL PROTECTED]> wrote: > *I have copy the media document and files to /var/www/host1/* > ** > *It's work! * > ** > *Karen Tracey and Keith Eberle , Thank you! > * > On Wed, Aug 27, 2008 at 9:48 AM, Keith Eberle <[EMAIL PROTECTED]>wrote: > >> Django by default does not serve out static content (Javascript, CSS, >> images, etc) because the web server, such as Apache, is more efficient with >> serving that type of content. It sounds like you aren't using the included >> development server... >> >> If you look at your settings.py file, ADMIN_MEDIA_PREFIX will say >> '/media/', unless you changed it. This is synonymous with >> http://mydomain.com/media/. So go to your webroot and create a link to >> the admin media files within your Django installation. So my link in my >> webroot looks like: >> >> lrwxrwxrwx 1 keith vuser 57 Jul 12 15:14 media -> >> /home/keith/django-trunk/django/contrib/admin/media/ >> >> This is also listed in the link Karen provided. >> >> HTH >> >> keith >> >> >> >> On Tue, Aug 26, 2008 at 9:38 PM, App Engine <[EMAIL PROTECTED]>wrote: >> >>> I don't understand. >>> >>> I using ubuntu_server edition apache mysql python pyton-mysqldb >>> >>> I install django follow the guide but when I finish it ,I found the admin >>> tool can't display the static files.like img and css >>> >>> On Wed, Aug 27, 2008 at 9:09 AM, Keith Eberle <[EMAIL PROTECTED]>wrote: >>> >>>> The static media files aren't getting served properly. Are you using the >>>> development server or Apache in your screenshot? >>>> >>>> keith >>>> >>>> >>>> >>>> On Tue, Aug 26, 2008 at 9:01 PM, App Engine <[EMAIL PROTECTED]>wrote: >>>> >>>>> look,please, >>>>> I don't konw why the django admin display like this.[attach] >>>>> >>>>> >>>>> ubuntu apache2 Mysql python python-mysqldb django 0.99 ALL IS OK but >>>>> ....... >>>>> >>>>> when I : sudo python manage.py syncdb >>>>> >>>>> How solve it? >>>>> >>>>> 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-users@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-users?hl=en -~----------~----~----~----~------~----~------~--~---