Thanks, but my real problem turned out to be a missing comma after the
staticfiles_dirs entry. After adding it I was able to see files stored on
my hard drive.
On Wednesday, July 17, 2013 2:07:42 AM UTC-4, Lukáš Němec wrote:
>
> Hi,
>
> You are not the first to have trouble when serving images from django's
> built-in server.
> It is not only images, but all staticfiles.
>
> I'd like to clarify your settings.py
>
> The directory you have put in STATICFILES_DIRS will be available to
> django as /static/ in your web app, but you need to have
>
> STATICFILES_FINDERS =
>
> ("django.contrib.staticfiles.finders.FileSystemFinder",
> "django.contrib.staticfiles.finders.AppDirectoriesFinder")
>
>
> Also the django test server needs to have correct permissions to open
> and read that folder,
> but when you go just to /static/, you will not see anything, it will not
> list the files, you need to specify exact name of the file.
>
> Django help:
> https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/
>
> If this didn't help, try stackowerflow
>
> Lukas
>
>
> On 07/16/2013 07:09 PM, evh wrote:
> > Working in a Windows environment without a production server -
> > everything on one machine for ease of development (or so I thought).
> > Can display images pulled from the web, but not any stored on local
> > hard drive. Some of the relevant items in my settings.py looks like
> > this:
> > MEDIA_ROOT = 'C:/djcode/images/'
> > MEDIA_URL = 'C:/djcode/images/'
> > STATIC_ROOT = ''
> > STATIC_URL = '/static/'
> > STATICFILES_DIRS = (
> > # Put strings here, like "/home/html/static" or
> > "C:/www/django/static".
> > # Always use forward slashes, even on Windows.
> > # Don't forget to use absolute paths, not relative paths.
> > "C:/djcode/images/"
> > )
> > Would appreciate any guidance or suggestions on what I am missing or
> > doing incorrectly. Thanks.
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Django users" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> > an email to [email protected] <javascript:>.
> > To post to this group, send email to
> > [email protected]<javascript:>.
>
> > Visit this group at http://groups.google.com/group/django-users.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.