I have a very basic question about adding images to Django 1.3.
I've almost read the whole documents on adding Static files , searched
for relevant results both in here and StackOverFlow and still have a
problem with my case.
Please take a look at my settings :
STATIC_ROOT = '/home/vahid/Aptana3Workspace/djangoshop/djangoShop/
static'
STATIC_URL = '/static/'
STATICFILES_DIRS = (STATIC_ROOT , )
I did the last one to avoid collision between ROOT and DIRS and make
it more simple to implement the idea.
I have also added some stuff to settings.py as :
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'django.contrib.staticfiles.finders.DefaultStorageFinder',
)
INSTALLED_APPS = (.....
'django.contrib.staticfiles',
.........
)
But I still have a problem with loading the images (for example:
logo.jpg)
Would you please help me to get it done ??
What is a simple way to load images in the developing environment ??
--
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.
No comments:
Post a Comment