Sorry the error is :
GET http://www.mydomain/static/images/giphy.gif
<http://www.google.com/url?q=http%3A%2F%2Fwww.uibm.gov.it%2Fstatic%2Fimages%2Fgiphy.gif&sa=D&sntz=1&usg=AFQjCNENnjogsBR1Z30kUWPeZTNJKu3BOQ>
404 (Not Found)
On Wednesday, March 8, 2017 at 2:24:31 PM UTC+1, valerio orfano wrote:
>
> Hello guys
>
> i've been facing the following problem. I got django 1.9 integrated with
> apache 2.4+ via mod_wsgi application. i run manage.py collect and
> everythiong is fine when i use the root url.
>
> http//10.184.2.231 it is ok and static files are served properly.
>
> Actually i will be redirected to my django app from the link
> www.mydomain.com/nuovopatetdb
>
> This is my configuration
>
>
> from urls.py
>
> from django.conf.urls import url
> from . import views
> urlpatterns = [
> url(r'^$', views.search_ES,name='search_ES'),
> url(r'^nuovopatentdb$', views.search_ES,name='search_ES'),
> url(r'^download/(?P<id_src>.*)$', views.send_file, name="download"),
> url(r"^documents$", views.documents,name="documents"),
>
> ]
>
>
> from settings.py
>
> STATIC_URL = '/static/'
> STATIC_ROOT = os.path.join(BASE_DIR, 'static')
> WSGI_APPLICATION = 'ES_Brevetti.wsgi.application'
> INSTALLED_APPS = [
> 'django.contrib.admin',
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> 'patentdb.apps.patentdbConfig',
> 'mod_wsgi.server',
> #'widget_tweaks',
> #'haystack',
> 'el_pagination',
> ]
>
>
> and from httpconf.d
>
> Alias '/static' '/home/elastic/workspace/ES_Brevetti/static'
> <Directory '/home/elastic/workspace/ES_Brevetti/static'>
> <IfVersion < 2.4>
> Order allow,deny
> Allow from all
> </IfVersion>
> <IfVersion >= 2.4>
> Require all granted
> </IfVersion>
> </Directory>
>
>
>
> This is an example of my template:
>
> <div id="waitLoading" >
> <img src="{%static "images/giphy.gif"%}">
> </div>
>
>
> The image giphy.gif cannot be server and i get the3 follwoing error:
>
> GET http://www.uibm.gov.it/static/images/giphy.gif 404 (Not Found)
>
> How cain i work this around?
>
>
> Many many thanx for ur help
>
--
You received this message because you are subscribed to the Google Groups
"modwsgi" 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 https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.