I have arrived at the second point. But the static files are not served, i have set up the STATIC ROOT and the STATIC_URL, but what should i add to the template src tag to find the pages? The tutorial speaks about the template context processor, but it doesn't exist in my setting.py file.
TEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', )
i cannot make my css and javascript work, please, can you explain me what is happening behind the interface?
Agnese
Thanks.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
2013/1/8 Mike Dewhirst <mi...@dewhirst.com.au>
Thanks.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
"NetworkError: 500 - http://127.0.0.1:8000/static/images/gauge_example.jpg". When I didn't commented out, it works. So I think STATICFILES_DIRS and STATIC_URL actually works in
my app, the problem is that how to set it to the correct path. In my case, I want to STATIC_URL can find my "static" folder which is in the project home directory.
I was puzzled by this problem many days, right now I have no way but to use local folder "E:/code/python/djangoBook/django-testapp-develop/static" to code and test in my PC.
Thanks.
Jianhui
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/crL9a25SIWMJ.