Use defaults for Django 1.3 not defaults for previous versions, that is use ADMIN_MEDIA_PREFIX = '/static/admin/'
Explained clearly in docs why: "...Make sure to ... have this be different from the MEDIA_URL setting (since the same URL cannot be mapped onto two different sets of files). For integration with staticfiles, this should be the same as STATIC_URL followed by 'admin/'." https://docs.djangoproject.com/en/1.3/ref/settings/#admin-media-prefix Hmm... I am going to create a complete new installation template with preference of Django 1.3 and 1.4 over Djano 1.2 in terms of minimal necessary customization. --Hy On 8 dub, 23:42, "Buddy Lindsey, Jr." <[email protected]> wrote: > i am really having trouble with getting admin css working. I am not > sure what I am even doing wrong at this point. Everyone i go to gives > the same advice, but said advice doesn't seem to work or doesn't work > in the context of satchmo. So alas I have come here. > > I am trying to publish my site to a staging server, and everything > works except the admin css and javascript. Here is my apache config: > > <VirtualHost *:80> > Alias /robots.txt /home/percent20/sites/current/static/robots.txt > Alias /favicon.ico /home/percent20/sites/current/static/favicon.ico > > AliasMatch ^/([^/]*\.css) /home/percent20/sites/current/static/css/$1 > AliasMatch ^/([^/]*\.js) /home/percent20/sites/current/static/js/$1 > > Alias /media/ /home/percent20/sites/current/static/ > Alias /static/ /home/percent20/sites/current/static/ > > <Directory /home/percent20/sites/current/static> > Order deny,allow > Allow from all > </Directory> > > <Directory /home/percent20/sites/current/media> > Order deny,allow > Allow from all > </Directory> > > WSGIScriptAlias / /home/percent20/sites/current/apache/production.wsgi > > <Directory /home/percent20/sites/current/apache> > <Files production.wsgi> > Order allow,deny > Allow from all > </Files> > </Directory> > </VirtualHost> > > And I have left the settings for satchmo default with regards to static files. > > MEDIA_ROOT = os.path.join(DIRNAME, 'static/') > MEDIA_URL="/static/" > ADMIN_MEDIA_PREFIX = '/media/' > > I am using ubuntu and django 1.3.1 > > Buddy -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.
