Hi, I had a somewhat similar question. I've followed the setup and
when the dashboard, etc, are uncommented in installedapps, i merely
get a stripped down version of the admin page without the default
styling. Mine is a local development server. The command prompt is
posting this:

[TIMESTAMP] "GET /site_media/admin_tools/css/dashboard.css/ HTTP1.1"
404 2148
[TIMESTAMP] "GET /site_media/admin_tools/css/theming.css/ HTTP1.1" 404
2142
[TIMESTAMP] "GET /site_media/admin_tools/js/utils.js/ HTTP1.1" 404
2130

I guess this means it's 404'ing on the files needed to style the admin
page.
These are some of the settings:
settings.py:
...
MEDIA_ROOT = '/site_media/'
...
ADMIN_TOOLS_MEDIA_URL = '/site_media/'
...
TEMPLATE_CONTEXT_PROCESSORS = (
    # default template context processors
    'django.core.context_processors.auth',
    'django.core.context_processors.debug',
    'django.core.context_processors.i18n',
    'django.core.context_processors.media',

    # django 1.2 only
    'django.contrib.messages.context_processors.messages',

    # required by django-admin-tools
    'django.core.context_processors.request',
)

INSTALLED_APPS = (
    'admin_tools.theming',
    #'admin_tools.menu',
    'admin_tools.dashboard',
        'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.admin',
        'django.contrib.admindocs',
        'gnarmis.blog',
)

...

urls.py:
...
url(r'^admin_tools/', include('admin_tools.urls')),
...
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': '/site_media/'}),
...


Any ideas, or links/resources where I can learn more about how
media_root, media_url etc in detail?

Thanks,
-gnarmis
On Jun 1, 8:46 am, izi <izimo...@gmail.com> wrote:
> Hi,
>
> As I said in my previous mail, you should bring this to the django-
> admin-tools mailing list:http://groups.google.com/group/django-admin-tools/
>
> > My guess is documentation is wrong.I think admin_tools media folder
> > should be inside django.contrib.admin.
>
> No, the documentation is ok, please re-read this section 
> carefully:http://packages.python.org/django-admin-tools/0.2.0/configuration.htm...
>
> What you need is to symlink or copy the "admin_tools" media directory
> in your MEDIA_ROOT and setup your MEDIA_URL accordingly.
>
> Regards,
>
> --
> David

-- 
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.

Reply via email to