Re: Problem with serving static files

2009-11-18 Thread igor
>>> urls.py: >>> urlpatterns = patterns('', >>> (r'^polls/', include('mysite.polls.urls')), >>> (r'^site_media/(?P.*)$', 'django.views.static.serve', >>> {'document_root': '/mysite/media/'}), >>> ) Since I always start Django in its "root" directory, I put something like:

Re: Problem with serving static files

2009-11-18 Thread Benjamin Wolf
Thanks Jeremy, got it. jeremyrdavis schrieb: > The document root specified in urlpatterns should match the directory > where your files are located. You have "/mysite/media/" in your > urlpatterns and "C:\django_projects\mysite\media" in your post. Make > sure those match. > > > On Nov 18, 6:56

Re: Problem with serving static files

2009-11-18 Thread Denis Bahati
how do you make them similar? because its also a problem to with TinyMCE. On Wed, Nov 18, 2009 at 4:13 PM, jeremyrdavis wrote: > The document root specified in urlpatterns should match the directory > where your files are located. You have "/mysite/media/" in your > urlpatterns and "C:\django_pr

Re: Problem with serving static files

2009-11-18 Thread jeremyrdavis
The document root specified in urlpatterns should match the directory where your files are located. You have "/mysite/media/" in your urlpatterns and "C:\django_projects\mysite\media" in your post. Make sure those match. On Nov 18, 6:56 am, "Benjamin W." wrote: > Hi there, > > I'm new to djang

Problem with serving static files

2009-11-18 Thread Benjamin W.
Hi there, I'm new to django and got my first little problem. I want to use a css file in my template. So I read this: http://docs.djangoproject.com/en/dev/howto/static-files/ I set up everything, but I don't get the file. My config: urls.py: urlpatterns = patterns('', (r'^polls/', includ