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.
> > It says on the webpage that "C:/Django/
If I split them up, I cannot see my pictures on the webpage since the links
of them becomes "http://127.0.0.1:8000/cn/simages/XXX.jpg";. But my pictures
stored in "http://127.0.0.1:8000/media/simages/XXX.jpg";... That's why I mix
them up...
在 2012年4月3日星期二UTC-4上午10时09分11秒,Tom Evans写道:
>
> On Tue
OK.
# Django settings for final project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_em...@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add
'postgresql_psycopg2', 'postgresql', 'mys
OK.
# Django settings for final project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_em...@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add
'postgresql_psycopg2', 'postgresql', 'mys
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 .
> It says on the webpage that "C:/Django/final/media/bedroom" does not
> exist". Why would this happen?
I am positive the problem is with your URL patterns:
> # ur
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 would this happen?
>
> urls.py:
>
> from django.conf.urls.defaults import *
> from final im
Could you please add your setting.py from root of the your project to
your letter ?
2012/4/3 Homer :
> I add the section you provided to my settings.py but it still does not
> work...
>
> 在 2012年4月3日星期二UTC-4上午8时57分57秒,skhohlov写道:
>>
>> this section from my last project :
>>
>>
>> TEMPLATE_CONTEX
I add the section you provided to my settings.py but it still does not
work...
在 2012年4月3日星期二UTC-4上午8时57分57秒,skhohlov写道:
>
> this section from my last project :
>
>
> TEMPLATE_CONTEXT_PROCESSORS = (
>
> 'django.core.context_processors.request',
> 'django.core.context_processors.debug',
this section from my last project :
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.request',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.media',
'django.core.context_processors.static',
Sorry, I did not find "TEMPLATE_CONTEXT_PROCESSORS" in my settings.py. I do
not know whether it is related to the version of Django. I am using Django
1.3 right now.
在 2012年4月3日星期二UTC-4上午2时20分30秒,skhohlov写道:
>
> please post section of the setting.py file
>
> TEMPLATE_CONTEXT_PROCESSORS
>
> Ha
please post section of the setting.py file
TEMPLATE_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...
>
> 在 2012年4月2日星期一
I think "media_root" works well since I also used pictures on my another
page. Maybe there is something wrong in my urlconf...
在 2012年4月2日星期一UTC-4下午8时41分02秒,St@n写道:
>
> check your Media_root in settings.py.
>
> It could be a missing stroke.
>
> Best Regards,
>
> Stanwin Siow
>
>
>
> On Apr 3, 2
check your Media_root in settings.py.
It could be a missing stroke.
Best Regards,
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".
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
14 matches
Mail list logo