can you please take a look, here is my settings.py. http://pastebin.com/GSUb2k2e thanks
On 5 Feb., 05:58, doniyor <doniyor....@googlemail.com> wrote: > yes, but here you see: > For local development, if you are using runserver or adding > staticfiles_urlpatterns to your URLconf, you’re done with the setup – > your static files will automatically be served at the default (for > newly created projects) STATIC_URL of /static/. > > On 4 Feb., 19:58, Daniel Roseman <dan...@roseman.org.uk> wrote: > > > > > > > > > On Saturday, 4 February 2012 18:48:08 UTC, doniyor wrote: > > > > 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 > > > Have you set anything up to serve media and images? Have you looked at the > > documentation on how to do that? > > https://docs.djangoproject.com/en/1.3/howto/static-files/ > > -- > > 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.