Well, and what about your own media? Product pictures?

You'll be better off symlinking to /media/admin and setting ADMIN_MEDIA (if i 
got the setting wrong, please someone interfere) to that.

Also check if the 'symlinkmedia' admin command exists. That'll create links to 
the media directories of all your INSTALLED_APPS into your MEDIA_ROOT.

-----Mensaje original-----
De: gg
Enviados:  15/04/2012 09:27:00
Asunto:  Re: django admin template not loading for satchmo project

I seemed to have resolved my issue by creating the following symlink

Being in my root folder,
Considering my settings.py as I mentioned in my earlier email, I
created a symlink
sudo ln -s /usr/local/lib/python2.6/dist-packages/django/contrib/admin/
media media

And, I could see my styled Admin control panel.
Thanks
++


On Apr 15, 11:51 am, gg <[email protected]> wrote:
> Hi all
>
> I completed my first satchmo-shop successfully with the help of tips/
> comments from such an amazing and wonderful community. Thank you guys.
> Thumbs up to all Satchmo team/developers..(Chris!)
>
> I don't know if anyone have encountered such a problem...
>
> The only issue that I am facing now is that I am able to view my admin
> without css/javascript. Followings are the my settings.py
>
> MEDIA_ROOT = os.path.join(DIRNAME, 'static/')
> MEDIA_URL = "/static/"   # ORIGINAL
>
> #following 2 STATIC_ROOT and STATIC_URL has been added here.
> STATIC_ROOT = os.path.join(DIRNAME, 'media/') # required settings for
> django-staticfiles, data will be placed here by running command
> $python manage.py collectstatic
> STATIC_URL = "/media/"
>
> # URL prefix for admin media -- CSS, JavaScript and images. Make sure
> to use a trailing slash.
> ADMIN_MEDIA_PREFIX = STATIC_URL + "admin/"
>
> The above url that I setup for ADMIN_MEDIA_PREFIX works fine in my dev
> machine where  I can see my admin with proper css/javascript etc, but
> this do not work in my hosted server.
>
> A quick help from anyone would be greatly appreciable.
> Many many thanks in advance.
> ++

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


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

Reply via email to