How to automatically reload Django when files change?

You don’t need a browser extension to accomplish auto refreshes. Take a look at https://github.com/tjwalch/django-livereload-server. I posted a more extensive answer about this at https://stackoverflow.com/a/36961244/2950621 It works by using a manage.py command (server) to monitor your .js and other static files. The server sends a signal to the browser via websockets. There is some client-side … Read more

Google Analytics: How to track pages in a single page application?

If you are using the newer analytics.js API, Google’s documentation requires the following code to trigger the event: ga(‘send’, ‘pageview’, ‘/some-page’); If you are using the older ga.js API, David Walsh suggests AJAX websites to use the _gaq.push method: _gaq.push([‘_trackPageview’, ‘/some-page’]);

Google Chrome “Application Shortcut”: How to auto-load JavaScript?

Chrome extensions and their content scripts are also loaded when Chrome starts in the App mode. So, you can create a simple extension, which injects JavaScript code in the page as follows: 1. Create a manifest.json file { “name”: “Run code on twitter mobile”, “version”: “1.0”, “manifest_version”: 2, “content_scripts”: [ { “js”: [ “contentscript.js” ], … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)