I tried to create an index webpage but Django told me I had a template
error:
Invalid block tag: 'endblock', expected 'empty' or 'endfor'
Here is the code of index.html:
{% extends "base.html" %}
{% block title %}Home{% endblock %}
{% block content %}
Welcome to So Easy! 学中文
Showcase
{% for
I met "404" page not found when I try to enter 127.0.0.1:8000/cn/bedroom .
It says on the webpage that "C:/Django/final/media/bedroom" does not
exist". Why would this happen?
*urls.py:*
from django.conf.urls.defaults import *
from final import settings
from django.contrib import admin
admin
t; Stanwin Siow
>
>
>
> On Apr 3, 2012, at 8:14 AM, Homer wrote:
>
> I met "404" page not found when I try to enter 127.0.0.1:8000/cn/bedroom. It
> says on the webpage that "C:/Django/final/media/bedroom" does not
> exist". Why would this hap
ATE_CONTEXT_PROCESSORS
>
> Has this file
>
> 'django.core.context_processors.static',
>
> 2012/4/3 Homer :
> > I think "media_root" works well since I also used pictures on my another
> > page. Maybe there is something wrong in my urlconf...
> >
,
> 'django.contrib.messages.context_processors.messages',
> )
>
> You have problem without'django.core.context_processors.media'
> with media content , take a look at
> https://docs.djangoproject.com/en/dev/howto/static-files/
>
>
> 2012/4/3 Homer :
>
;: {
'level': 'ERROR',
'class': 'django.utils.log.AdminEmailHandler'
}
},
'loggers': {
'django.request': {
'handlers': ['mail_admins'],
&
;: {
'level': 'ERROR',
'class': 'django.utils.log.AdminEmailHandler'
}
},
'loggers': {
'django.request': {
'handlers': ['mail_admins'],
&
9分11秒,Tom Evans写道:
>
> On Tue, Apr 3, 2012 at 1:14 AM, Homer wrote:
> > I met "404" page not found when I try to enter 127.0.0.1:8000/cn/bedroom.
> > It says on the webpage that "C:/Django/final/media/bedroom" does not
> exist".
> > Why woul
I fixed it by changing the urlconf to r'^bedroom/'. Thanks!!
在 2012年4月3日星期二UTC-4上午10时17分03秒,Sebastian写道:
>
> On Mon, 2 Apr 2012 17:14:00 -0700 (PDT)
> Homer wrote:
>
> > I met "404" page not found when I try to enter 127.0.0.1:8000/cn/bedroom.
>
I tried to use command in my templates directly, but it seems it
is not working... Here is my code:
{% for item in ShowAudio %}
{% endfor %}
Should I add something else so that it would work? Thanks for your help!
--
You received this message because you are subscribed to the Google Groups
月4日星期三UTC-4下午5时54分58秒,Joel Goldstick写道:
>
> On Wed, Apr 4, 2012 at 3:50 PM, Homer wrote:
> > I tried to use command in my templates directly, but it seems
> it is
> > not working... Here is my code:
> > {% for item in ShowAudio %}
> >
>
>
> shouldn'
UTC-4下午9时05分07秒,Andy McKay写道:
>
> On Wed, Apr 4, 2012 at 12:50 PM, Homer wrote:
>
> > Should I add something else so that it would work? Thanks for your help!
>
> There's nothing I've seen yet that's a Django problem. Does the
> outputted HTML look right? D
12 matches
Mail list logo