>>> 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:
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
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
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
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
5 matches
Mail list logo