Saturday, February 4, 2012

Django Server impacts path-rules ???

Hi everyone,

i have a small problem which makes me worry. i have a normal html file
with fotos to see in. and i have created a project and started the
server with "manage.py runserver". this is the point! :

if i open the html file just normal from the folder by doubleclick,
the browser shows the page very perfectly with fotos and so. just as
normal..

but my problem is that if i start the server and open the index.html
in my 127.0.0.1:8000, i see only text and no fotos are there. fotos
are even not downloadable, so the media resource is not reachable, but
why ? from the folder it finds the resources but not in
127.0.0.1:8000.

i will give my actual case here:

this is the project hierarchie i have:

-- transfer
-- contact (das ist app)
-- __init__
-- models.py
-- tests.py
-- views.py
-- media
-- js
-- images
-- css
-- template
-- index.html
-- transfer
-- __init__
-- settings.py
-- urls.py
-- wsgi.py

and how i give the src path in my index.html is here:
<link rel="stylesheet" href="../media/css/style.css" type="text/css"
media="all">

can you please help me with that, is it possible that django 1.4 looks
for path differently from last ones.. ?

thanks
doni

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


Real Estate