Re: Admin without template (no colors, no css, just simple html)
I have made somthing like:
ln -s $HOME/.local/lib/python2.6/site-packages/django/contrib/admin/
media $HOME/.public_html/media
And this create a folder with three folders more in my public_html
(js, css, images) but it still don't working.
also I do:
ln -s $HOME/.local/lib/python2.6/site-packages/django/contrib/admin/
media $HOME/.local/lib/python2.6/site-packages/myproject
and nothing.
but if I go to: http://mydomain.com/media it tells me that I dont
have permission, so that means that the folder has been created, and
If i check the sorce code of the admin, and I click the link for the
css (href="/media/css/base.css") I can`t because the permission, so I
think this part is right.
What I need to do? :S
On Oct 26, 10:56 am, Giancarlo Razzolini <grazzol...@gmail.com> wrote:
> So I did the right thing... nice!
>
> Giancarlo Razzolinihttp://lock.razzolini.adm.br
> Linux User 172199
> Red Hat Certified Engineer no:804006389722501
> Verify:https://www.redhat.com/certification/rhce/current/
> Moleque Sem Conteudo Numero #002
> OpenBSD 4.5
> Ubuntu 9.04 Jaunty Jackalope
> 4386 2A6F FFD4 4D5F 5842 6EA0 7ABE BBAB 9C0E 6B85
>
>
>
>
>
>
>
> Daniel Roseman wrote:
> > On Oct 26, 1:25 pm, Giancarlo Razzolini <grazzol...@gmail.com> wrote:
>
> >> I had this same problem when hosting it with apache. I solved the
> >> problem by creating a symbolic link inside my media folder pointing to
> >> the admin site that is instaled with django. Something like this:
>
> >> admin -> /usr/share/pyshared/django/contrib/admin/media/
>
> >> Of course, this would only work in unix environments. I've tried to
> >> solve it by tweaking with the settings.py file, but couldn't find a
> >> solution. The link did the trick.
>
> >> My regards,
>
> > There's no tweaking of settings.py that can somehow 'fix' this.
> > Setting up Apache to serve the files is the only correct thing to do,
> > whether that's by symlinking or whatever.
> > --
> > DR.
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home