If you can see it properly in the django server but not in apache, and
you see poor text instead of layout, my guess is apache can't access
or find your MEDIA_URL location (check symlink or file permissions),
so it does not load your images and css.
also, check your apache2/access.log
xau

On May 9, 12:02 pm, Eric Abrahamsen <gir...@gmail.com> wrote:
> On May 9, 2009, at 1:21 PM, lisa holper wrote:
>
> > Hi,
>
> > I thanks for your answer again.
> > Everything is showing up as plain text! It seems that the template  
> > base.html would not be used.
>
> > Do you have a further idea?
>
> Nothing very likely, sorry to say. It sounds like your main problem is  
> not that base.html isn't getting used, but that django is not loading  
> and rendering the templates correctly. Is there a chance that you're  
> looking at your template directory using a local apache installation,  
> rather than a running django instance? Are your  
> settings.TEMPLAT_LOADERS and settings.TEMPLATE_DIRS variables what  
> they should be? Are permissions on the templates and parent  
> directories set correctly? Someone else might have to step in here,  
> and you'll probably have to provide a little more information: how is  
> your project structured, what system/django version are you running,  
> and how exactly are you running the development server.
>
> Yours,
> Eric
>
> > Lisa
>
> > On Fri, May 8, 2009 at 11:10 PM, Eric Abrahamsen <gir...@gmail.com>  
> > wrote:
>
> > On May 9, 2009, at 2:37 AM, lisa holper wrote:
>
> >> Hi,
>
> >> Yes, I did and this shows up written on the page.
> >> I can see the website onhttp://127.0.0.1:8000/but not on my  
> >> website-url. Do I need to change the settings?
>
> > These are two very different questions... Are the other template  
> > elements (variables and tags) getting rendered correctly, or is  
> > everything showing up as plain text?
>
> > And yes, you certainly do have to change the settings to deploy your  
> > site at a different URL! Look through this:
> >http://docs.djangoproject.com/en/dev/howto/deployment/#howto-deployme...
>
> > But you should probably back up and start with the tutorial:
> >http://docs.djangoproject.com/en/dev/intro/tutorial01/#intro-
> > tutorial01
>
> > Eric
>
> >> Thanks, Lisa
>
> >> On Fri, May 8, 2009 at 5:57 AM, Eric Abrahamsen <gir...@gmail.com>  
> >> wrote:
>
> >> On May 8, 2009, at 4:35 PM, lisa holper wrote:
>
> >>> Hi,
>
> >>> I created a website with django.
> >>> My problem: When I insert all .html pages in my directory, I can  
> >>> see the website but without using the 'base' template.
>
> >> Do you have {% extends 'base.html' %} at the top of all your  
> >> templates? You have to extend from base explicitly.
>
> >> Eric
>
> >>> I would be glad for your help.
>
> >>> Lisa

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to