jPlayer issue for mp3 with IE : any recommendation? - python

I have a django website which make possible to listen mp3 files with jPlayer.
It works ok on Chrome, Firefox and Opera. Unfortunately, it doesn't work in IE9. However, it is ok when running the site locally with the django dev server.
Is there any things, i should be careful on server side. I've checked than the jPlayer.swf is on the server. Any thing else?
Any recommendation for debugging this issue?

A quick search reveals similar problems about jPlayer and IE9. Have you seen this q/a before?
JPlayer issue in IE9 <--
It could be as simple as an .htaccess fix. Gracias.

Related

Why does Python/Django keep redirecting to url 'catalog'?

I'm stepping into the Python world. First I learned a little Python. Then I learned the basics of Django, and on top of that I'm learning Wagtail (framework for template managing for Django)
To learn Django a went through a tutorial to build a site locally and test it in 127.0.0.1:8000.
At some point of the tutorial I configured the settings (because the tutorial said so) to redirect to 127.0.0.1:8000/catalog when browsing to 127.0.0.1:8000 alone.
Then I started the Wagtail tutorial, as a completely different project in another folder. Not sharing any code with the tutorial Django project.
I run the server and the console says it is now running in port 127.0.0.1:8000 and when I browse it, it redirects me to /catalog and of course shows a Page not found error since this project doesn't have one app catalog.
I workaround this by opening Chrome in Incognito Mode. But still I would like to know why this is happening and how to solve it to add to my knowledge of how Python works.
Some notes:
I'm on Windows
I killed all processes related to Python and actually this is still happening after turning my PC off and on
I know I could use a different port, please do not give me that answer. My goal is to learn.
Try clearing your browser cache.
The problem is most likely that your browser has cached a 301 Moved Permanently for 127.0.0.1:8000, thus never hit your development server when you enter the URL, but simply do the redirect based on the cache.
You will see the same result no matter what you're running behind port 8000, and it's as such not related to Django.

Flask website hosted over SSL not working in any microsoft browser (Edge or IE) but works in any other browser

I have three different python flask apps hosted on Apache using WSGI Flup webserver over FastCGI.
I am able to access all of the apps without any issues using any non-microsoft browser. Out of the three apps, two are just for services and return only json data while the third app houses our website. All the three apps are SSL enabled and can be accessed only through SSL.
The problem I am facing is that any version of Microsoft edge or IE is unable to open the flask app which serves the website, at all.
The error that I am getting in IE says that it is a DNS error. When I checked my Apache access logs, I found out that the hit by IE or edge is not even logged there. The logs appear though when I hit my other two JSON data returning flask apps through microsoft browsers.
The two apps which return only JSON data are working flawlessly in the Microsoft browsers as well as they are working in Chrome, Safari etc.
What can be the reason for the microsoft browsers to not be able to access only one flask app but render the other two over SSL considering that all is fine when the same is accessed through any other browser?
Any kind of help would be greatly appreciated. Thanks a lot.
P.S. - I have checked the settings of all the three flask apps, and all the three are configured in the same manner without any discrepancies.
Found that the problem was with favicon.ico file. Microsoft's browsers including Edge actively look for it on the server or web app root folder, and in case it doesn't exist, they simply refuse to display the page without giving out a proper error message.
The problem was solved by adding the favicon file through the method mentioned here: http://flask.pocoo.org/docs/0.10/patterns/favicon/

Why does django stops loading a page after opening several pages?

I have several django projects and they work well on my desktop. But when I run them on my laptop, they run ok for sometime. Then on a random occasion, opening a page won't work. The browser keeps trying to load the page (title tab keeps spinning, URL changes to the page its trying to open, and the page turns blank), while the development server (django on windows shell) says it has successfully served the page (200 status).
This behavior is consistent among Firefox, IE and Chrome. I tried changing ports, using machine IP instead of localhost, loading static files on external server, but nothing works. I tried opening the site (using laptop computer name) from desktop browsers and behaves the same. Another interesting thing is, even if I shutdown and restart the django server, I wont be able to open the page that have failed previously unless I close the loading page.
My laptop is running a basic Windows 8, while desktop is Windows 8 Pro. I think the windows version has something to do with it.
Does anyone know how to solve this? I hope I made myself clear. Thanks.
It is hard to tell whether the issue is related to Windows specifically, rather than compatibility issues with images/CSS/Javascript/plugins such as Flash. Are you running the latest versions of those browsers (or at least the same versions as on your desktop)? Do you have different security software/firewalls? Do other sites load inconsistently? Seems unlikely to be a Django issue (although you can try loading sites like djangoproject.com).
Thanks people for your comments and answer. I uninstalled from the laptop each application that is not present in the desktop and found which one is causing the problem. This app called NetWorx has a network filtering that I enabled and for some reason its blocking the django response. I disabled network filtering which is good enough for my need.

Django Not Reflecting Updates to Javascript Files?

I have javascript files in my static folder. Django finds and loads them perfectly fine, so I don't think there is anything wrong with my configuration of the static options. However, sometimes when I make a change to a .js file and save it, the Django template that uses it does NOT reflect those changes -- inspecting the javascript with the browser reveals the javascript BEFORE the last save. Restarting the server does nothing, though restarting my computer has sometimes solved the issue. I do not have any code that explicitly deals with caching. Has anyone ever experienced anything like this?
I believe your browser is caching your js
you could power refresh your browser, or clear browser cache?
on chrome control+f5 or shift + f5
i believe on firefox it is control + shift + r
Since you are editing JavaScript files and watching for the changes in the browser I assume you are actively developing your Django app and probably using Django's development runserver. There is a better solution than clearing the browser cache and refreshing. If you run a watcher utility that supports the livereload protocol then your browser will automatically refresh whenever you change any static file.
The django-livereload-server python package provides a spiffy solution. Install it:
$ pip install django-livereload-server
Add 'livereload.middleware.LiveReloadScript' to MIDDLEWARE_CLASSES in settings.py.
Then run
$ ./manage.py livereload
before starting the runserver.
More documentation can be found at the django-livereload-server github site
For me, opening Incognito Mode in Chrome let the browser show the recent changes in my .js static files.
To anyone who is using Firefox:
If you don't want to clean your browser cache or it doesn't solve your issue, you can try doing a hard refresh (hold Shift and press the refresh button).

Unable to load the repository(PyDev for eclipse)

I encountered the problem. When i am trying to create new PyDev project, an error occurs:
Error:
Unable to load the repository http://pydev.org/updates
Unknown Host: http://pydev.org/updates/content.xml
When I open this link(http://pydev.org/updates) in my browser, it redirects me here - http://pydev.org/updates/content.xml
So i understand Eclipse cannot find the repository because there's nothing to look at this link... Does anybody know how to solve this problem?
Update:
I installed PyDev as described at PyDev Manual (Help-Install New software-and so on...)
If the url doesn't work directly, you may visit the update site in the browser (i.e.: http://www.pydev.org/updates/) and check the note to where it does redirect.
The current url it redirects to is http://dl.bintray.com/fabioz/pydev/5.8.0/ but it changes at each release, so, you may want to check the current release and update the version accordingly.
For older versions, it's possible to visit (in the browser) http://www.pydev.org/update_sites/ and check the existing update site urls (again, you may visit the update site url to see where it does redirect to and use that directly).
Notes:
the redirects are to https, but some users seem to experience issues with it, so, using http may be an option.
check your firewall to see if it's not blocking eclipse.
if you're under a vpn, you may want to check if it's blocking something (i.e.: maybe try without the vpn).
Now http://www.pydev.org/updates points to current version of Pyded: https://dl.bintray.com/fabioz/pydev/5.3.1/
But this link won't work unless you change the protocol to http instead of https. So, the working link is:
http://dl.bintray.com/fabioz/pydev/5.3.1/
i had the same problem. I was behind a proxy and once i set the proxy (as described here: http://www.mkyong.com/web-development/how-to-configure-proxy-settings-in-eclipse/) it worked.
Not sure if you have the same problem though.
Taken from this answer by Sukupa91:
Go to Window --> Preference --> General --> Network Connection -->
select Direct from drop down!
This worked for me.
i will advice to check if your are on VPN or not , i was getting the error because i was on office VPN
There is a problem in pydev site, because I have installed it multiple times and now facing problem to install it.

Categories

Resources