I\'m new to Django. I\'m getting insane trying to understand what is going on with static files(css\'s and images).
The resume of the problem is the following... when I
I don't know whether this will fix the issue, but your url patterns look a little confused. Each urlpatterns object should only have one prefix string as its first argument. You have 'haystack.views' and then later ''.
You are passing callable objects instead of strings in your url patterns, so using the empty string '' for your prefix is fine.
urlpatterns = patterns(
'',
url(r'^resultados/$', FacetedSearchView(template='emp1001br/pgresultados.html', searchqueryset=sqs, form_class=FacetedSearchForm), name='haystack_search'),
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), # To support static files
url(r'^$', main_page),
(r'^iframe/$', i_frame),
)