How To Use Django url Tag And reverse() Function To Avoid Url Hard Coded

Hard coded url in your Django template html files or views.py file is a bad practice. Because it is difficult to maintain url changes. If you change one url, you may need to change that url in a lot of pages. So Django provide template url tag and reverse function for you to avoid hard […]

How To Use Django url Tag And reverse() Function To Avoid Url Hard Coded Read More »

How To Connect Directly To Your Origin Web Server Bypass Intermediary Proxies To View Original Http Headers

My website dev2qa.com uses two CDN proxies as a chain to cache my web pages. One is Cloudflare which sits in front of my website dev2qa.com, the other is Ezoic Caching which sits in front of Cloudflare CDN. But someday, I find there are a lot of unuseful response headers in the HTTP response, and

How To Connect Directly To Your Origin Web Server Bypass Intermediary Proxies To View Original Http Headers Read More »

How To Install Python Package Numpy, Pandas, Scipy, Matplotlib On Windows, Mac And Linux

If you want to do data analysis in python, you always need to use python packages like Numpy, Pandas, Scipy and Matplotlib, etc. All those python packages are so powerful and useful to do Base N-dimensional array computing( Numpy ), Data structures & analysis ( Pandas ), scientific computing ( Scipy ), and Comprehensive 2D

How To Install Python Package Numpy, Pandas, Scipy, Matplotlib On Windows, Mac And Linux Read More »

How To Verify If CloudFlare CDN Cached Your Website Html Content, CSS, Images, JS Files

If you use Cloudflare as your website CDN server ( HTTP proxy server ), you must want to check whether your web page resources ( CSS, js, images, Html content ) have been cached by Cloudflare or not. Cloudflare adds an HTTP header CF-Cache-Status with various header values in the HTTP response to tell you

How To Verify If CloudFlare CDN Cached Your Website Html Content, CSS, Images, JS Files Read More »

How To View HTTP Headers, Cookies In Google Chrome, Firefox, Internet Explorer

When you develop a web application, you sometimes need to view HTTP headers or cookies values in a web browser to verify whether your code executes correctly or not. This example will tell you how to find and view the HTTP header value and cookies in both Google Chrome, Mozilla Firefox, and Microsoft internet explorer.

How To View HTTP Headers, Cookies In Google Chrome, Firefox, Internet Explorer Read More »

How To Pass Parameters To View Via Url In Django

Pass parameters via URL in Django is not as same as java or Php which use a question mark and key-value pairs ( for example http://127.0.0.1:8080/login.jsp?username=jerry&password=12345678). Django uses a more clear, readable, and SEO-friendly way to pass parameters in URL like http://127.0.0.1:8080/login/jerry/12345678. The first section after login is the username, and the section after jerry

How To Pass Parameters To View Via Url In Django Read More »