├── .gitignore ├── LICENSE ├── Procfile ├── README.md ├── app.py ├── requirements.txt ├── runtime.txt ├── static ├── css │ └── main.css └── images │ ├── durga.jpg │ ├── naam_tamilar_flag.jpg │ └── tiger.jpg ├── templates ├── base.html ├── index.html ├── myth.html └── symbol.html └── test_mysql_connection.py /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | build/ 12 | develop-eggs/ 13 | dist/ 14 | downloads/ 15 | eggs/ 16 | .eggs/ 17 | lib/ 18 | lib64/ 19 | parts/ 20 | sdist/ 21 | var/ 22 | wheels/ 23 | pip-wheel-metadata/ 24 | share/python-wheels/ 25 | *.egg-info/ 26 | .installed.cfg 27 | *.egg 28 | MANIFEST 29 | 30 | # PyInstaller 31 | # Usually these files are written by a python script from a template 32 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 33 | *.manifest 34 | *.spec 35 | 36 | # Installer logs 37 | pip-log.txt 38 | pip-delete-this-directory.txt 39 | 40 | # Unit test / coverage reports 41 | htmlcov/ 42 | .tox/ 43 | .nox/ 44 | .coverage 45 | .coverage.* 46 | .cache 47 | nosetests.xml 48 | coverage.xml 49 | *.cover 50 | *.py,cover 51 | .hypothesis/ 52 | .pytest_cache/ 53 | 54 | # Translations 55 | *.mo 56 | *.pot 57 | 58 | # Django stuff: 59 | *.log 60 | local_settings.py 61 | db.sqlite3 62 | db.sqlite3-journal 63 | 64 | # Flask stuff: 65 | instance/ 66 | .webassets-cache 67 | 68 | # Scrapy stuff: 69 | .scrapy 70 | 71 | # Sphinx documentation 72 | docs/_build/ 73 | 74 | # PyBuilder 75 | target/ 76 | 77 | # Jupyter Notebook 78 | .ipynb_checkpoints 79 | 80 | # IPython 81 | profile_default/ 82 | ipython_config.py 83 | 84 | # pyenv 85 | .python-version 86 | 87 | # pipenv 88 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. 89 | # However, in case of collaboration, if having platform-specific dependencies or dependencies 90 | # having no cross-platform support, pipenv may install dependencies that don't work, or not 91 | # install all needed dependencies. 92 | #Pipfile.lock 93 | 94 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow 95 | __pypackages__/ 96 | 97 | # Celery stuff 98 | celerybeat-schedule 99 | celerybeat.pid 100 | 101 | # SageMath parsed files 102 | *.sage.py 103 | 104 | # Environments 105 | .env 106 | .venv 107 | env/ 108 | venv/ 109 | ENV/ 110 | env.bak/ 111 | venv.bak/ 112 | 113 | # Spyder project settings 114 | .spyderproject 115 | .spyproject 116 | 117 | # Rope project settings 118 | .ropeproject 119 | 120 | # mkdocs documentation 121 | /site 122 | 123 | # mypy 124 | .mypy_cache/ 125 | .dmypy.json 126 | dmypy.json 127 | 128 | # Pyre type checker 129 | .pyre/ 130 | 131 | # Python executables 132 | *.pyc 133 | 134 | # other samples 135 | samples -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- 1 | web: gunicorn app:app 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Deploy Your Flask Project To Heroku 2 | 3 | This is an example repository that uses **Flask** and **Gunicorn** to deploy your project to Heroku. [Demo app link](https://flask-basic-example.herokuapp.com/) 4 | 5 | ## Fork The Repository 6 | 7 | You should **fork the repository** and then **clone it** so you can manage your own repo and use this only as a template. 8 | 9 | ``` 10 | $ git clone https://github.com/your_username/flask-heroku-example.git 11 | ``` 12 | 13 | At this point you should be able to modify the Flask app `app.py`: 14 | 15 | **WARNING:** If you change the file name (`app.py`) and the Flask **app** (`app = Flask(__name__)`) then remember to change Heroku's Procfile: 16 | ``` 17 | web: gunicorn : 18 | ``` 19 | 20 | ## Login to Heroku account using Heroku CLI 21 | 22 | ``` 23 | $ heroku login 24 | ``` 25 | 26 | ## Create Your Heroku App 27 | 28 | You can also leave `your_app_name` empty if you want Heroku to create a randomized name. 29 | 30 | ``` 31 | $ heroku create your_app_name 32 | Creating app... done, ⬢ your_app_name 33 | https://your_app_name.herokuapp.com/ | https://git.heroku.com/your_app_name.git 34 | ``` 35 | 36 | ## Deploy Your Project 37 | 38 | Your project is going to be deploy using **gunicorn** as a web server using the **Procfile** and it will be detected as a Python project since it is declared in **runtime.txt** 39 | 40 | * **Add necessary files and commit them** 41 | ```bash 42 | $ git add -A 43 | $ git commit -am "finished flask project" 44 | ``` 45 | 46 | * **Push to Heroku** 47 | ```bash 48 | $ git push heroku master 49 | -- SNIP -- 50 | remote: -----> Python app detected 51 | remote: -----> Installing python-3.6.5 52 | remote: -----> Installing pip 53 | remote: -----> Installing dependencies with Pipenv 11.8.2… 54 | remote: Installing dependencies from Pipfile.lock (59a99c)… 55 | remote: -----> Discovering process types 56 | remote: Procfile declares types -> web 57 | remote: 58 | remote: -----> Compressing... 59 | remote: Done: 53.9M 60 | remote: -----> Launching... 61 | remote: Released v3 62 | remote: https://your_app_name.herokuapp.com/ deployed to Heroku 63 | remote: 64 | remote: Verifying deploy... done. 65 | To https://git.heroku.com/your_app_name.git 66 | * [new branch] master -> master 67 | ``` 68 | 69 | That's it, you can visit your app now with `heroku open`. 70 | -------------------------------------------------------------------------------- /app.py: -------------------------------------------------------------------------------- 1 | from flask import Flask, render_template 2 | from flask import jsonify 3 | import socket 4 | 5 | app = Flask(__name__) 6 | 7 | # two decorators, same function 8 | @app.route('/') 9 | @app.route('/index.html') 10 | def index(): 11 | return render_template('index.html', the_title='Tiger Home Page') 12 | 13 | @app.route('/symbol.html') 14 | def symbol(): 15 | return render_template('symbol.html', the_title='Tiger As Symbol') 16 | 17 | @app.route('/myth.html') 18 | def myth(): 19 | return render_template('myth.html', the_title='Tiger in Myth and Legend') 20 | 21 | @app.route('/ip') 22 | def ip(): 23 | hostname = socket.gethostname() 24 | IPAddr = socket.gethostbyname(hostname) 25 | d = { 26 | "hostname": hostname, 27 | "IPAddr": IPAddr, 28 | } 29 | return jsonify(d) 30 | 31 | @app.route('/test-mysql-db-connection') 32 | def test_db_connection(): 33 | try: 34 | # google sql cloud database -- ip whitelisting test for heroku app 35 | from mysql.connector import connect 36 | cnx = connect( 37 | host='35.238.34.27', 38 | database='demo', 39 | user='nivratti', 40 | password='nivpoijkldfghcc@@', 41 | port=3306 42 | ) 43 | d = { 44 | "success": True, 45 | "message": "Connected to database successfully", 46 | } 47 | except Exception as e: 48 | d = { 49 | "success": False, 50 | "message": str(e), 51 | } 52 | return jsonify(d) 53 | 54 | if __name__ == '__main__': 55 | app.run(debug=True) 56 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | Flask 2 | Flask-RESTful 3 | 4 | Jinja2 5 | Werkzeug 6 | 7 | itsdangerous 8 | gunicorn 9 | 10 | # to test mysql connectivity 11 | mysql-connector 12 | -------------------------------------------------------------------------------- /runtime.txt: -------------------------------------------------------------------------------- 1 | python-3.6.5 2 | -------------------------------------------------------------------------------- /static/css/main.css: -------------------------------------------------------------------------------- 1 | * { 2 | -webkit-box-sizing: border-box; 3 | -moz-box-sizing: border-box; 4 | box-sizing: border-box; 5 | } 6 | 7 | body { 8 | font-family: 'Source Sans Pro', sans-serif; 9 | font-size: 100%; 10 | color: #000; 11 | background: #407189; 12 | margin: 0; 13 | } 14 | 15 | #container { 16 | margin: 2em auto; 17 | width: 740px; 18 | padding: 2em 4em; 19 | background: #f1f7dc; 20 | } 21 | 22 | h1, h2 { 23 | font-family: 'Droid Serif', serif; 24 | font-size: 3em; 25 | margin: 0; 26 | padding-bottom: 1em; 27 | } 28 | 29 | h2 { 30 | font-size: 2em; 31 | } 32 | 33 | p, li { 34 | font-size: 1.4em; 35 | } 36 | 37 | p.credit { 38 | font-size: 0.9em; 39 | } 40 | 41 | img { 42 | display: block; 43 | margin: auto; 44 | max-width: 100%; 45 | } 46 | 47 | /* links */ 48 | 49 | a { 50 | color: #1484bc; 51 | text-decoration: none; 52 | } 53 | 54 | a:hover { 55 | color: #407189; 56 | text-decoration: underline; 57 | } 58 | 59 | 60 | /* media queries */ 61 | 62 | @media (max-width: 800px) { 63 | body { 64 | background: #f1f7dc; 65 | } 66 | #container { 67 | margin: 0; 68 | width: 100%; 69 | padding: 2em; 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /static/images/durga.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev746390/flask_heroku/ca0e09600dfdab21080a513228a381f34235f142/static/images/durga.jpg -------------------------------------------------------------------------------- /static/images/naam_tamilar_flag.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev746390/flask_heroku/ca0e09600dfdab21080a513228a381f34235f142/static/images/naam_tamilar_flag.jpg -------------------------------------------------------------------------------- /static/images/tiger.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev746390/flask_heroku/ca0e09600dfdab21080a513228a381f34235f142/static/images/tiger.jpg -------------------------------------------------------------------------------- /templates/base.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | {{ the_title }} 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | {% block body %} 17 | {% endblock %} 18 | 19 |
20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /templates/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | 3 | {% block body %} 4 | 5 | 6 |

{{ the_title }}

7 | 8 | 9 | Photo: Bengal Tiger 10 |

Photo by John and Karen Hollingsworth, retouched by Zwoenitzer (Fish & Wildlife Service, ID WO0409-33F) [Public domain] via Wikimedia Commons

11 | 12 |

This is the index page for my example Flask app.

13 | 14 | 19 | 20 |

The tiger (Panthera tigris) is the largest cat species, most recognisable for their pattern of dark vertical stripes on reddish-orange fur with a lighter underside. The species is classified in the genus Panthera with the lion, leopard, jaguar and snow leopard. Tigers are apex predators, primarily preying on ungulates such as deer and bovids. They are territorial and generally solitary but social animals, often requiring large contiguous areas of habitat that support their prey requirements. This, coupled with the fact that they are indigenous to some of the more densely populated places on Earth, has caused significant conflicts with humans.

21 | 22 |

Tigers once ranged widely across eastern Eurasia, from the Black Sea in the west, to the Indian Ocean in the south, and from Kolyma to Sumatra in the east. Over the past 100 years, they have lost 93% of their historic range, and have been extirpated from Western and Central Asia, from the islands of Java and Bali, and from large areas of Southeast, Southern and Eastern Asia. Today, they range from the Siberian taiga to open grasslands and tropical mangrove swamps. The remaining six tiger subspecies have been classified as endangered by the International Union for Conservation of Nature (IUCN). The global population in the wild is estimated to number between 3,062 and 3,948 individuals, down from around 100,000 at the start of the 20th century, with most remaining populations occurring in small pockets isolated from each other, of which about 2,000 exist on the Indian subcontinent. A 2016 global census estimated the population of wild tigers at approximately 3,890 individuals.

23 | 24 |

(Text from Wikipedia)

25 | 26 | 27 | {% endblock %} 28 | -------------------------------------------------------------------------------- /templates/myth.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | 3 | {% block body %} 4 | 5 |

{{ the_title }}

6 | 7 | Painting: Goddess Durga on a tiger's back 8 |

Early 18th century picture of the Guler School [Public domain] via Wikimedia Commons

9 | 10 | 14 | 15 |

In Chinese myth and culture, the tiger is one of the 12 animals of the Chinese zodiac. In Chinese art, the tiger is depicted as an earth symbol and equal rival of the Chinese dragon – the two representing matter and spirit respectively. The Southern Chinese martial art Hung Ga is based on the movements of the tiger and the crane. In Imperial China, a tiger was the personification of war and often represented the highest army general (or present day defense secretary), while the emperor and empress were represented by a dragon and phoenix, respectively. The White Tiger (Chinese: 白虎; pinyin: Bái Hǔ) is one of the Four Symbols of the Chinese constellations. It is sometimes called the White Tiger of the West (西方白虎), and it represents the west and the autumn season.

16 | 17 |

The tiger's tail appears in stories from countries including China and Korea, it being generally inadvisable to grasp a tiger by the tail.

18 | 19 |

In Buddhism, the tiger is one of the Three Senseless Creatures, symbolising anger, with the monkey representing greed and the deer lovesickness. The Tungusic peoples considered the Siberian tiger a near-deity and often referred to it as "Grandfather" or "Old man". The Udege and Nanai called it "Amba". The Manchu considered the Siberian tiger as Hu Lin, the king.[69] In Hinduism, the god Shiva wears and sits on tiger skin.[197] The ten-armed warrior goddess Durga rides the tigress (or lioness) Damon into battle. In southern India the god Ayyappan was associated with a tiger.

20 | 21 |

The weretiger replaces the werewolf in shapeshifting folklore in Asia; in India they were evil sorcerers, while in Indonesia and Malaysia they were somewhat more benign. As per Hindu epic Mahabharata, tiger is more fiercer and ruthless than lion.

22 | 23 |

(Text from Wikipedia)

24 | 25 | 26 | {% endblock %} 27 | -------------------------------------------------------------------------------- /templates/symbol.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | 3 | {% block body %} 4 | 5 |

{{ the_title }}

6 | 7 | Photo: Flag of Naam Tamilar 8 |

Flag of the Naam Tamilar political party, India (2010)

9 | 10 | 14 | 15 |

The tiger is one of the animals displayed on the Pashupati seal of the Indus Valley Civilisation. The tiger was the emblem of the Chola Dynasty and was depicted on coins, seals and banners. The seals of several Chola copper coins show the tiger, the Pandyan emblem fish and the Chera emblem bow, indicating that the Cholas had achieved political supremacy over the latter two dynasties. Gold coins found in Kavilayadavalli in the Nellore district of Andhra Pradesh have motifs of the tiger, bow and some indistinct marks. The tiger symbol of Chola Empire was later adopted by the Liberation Tigers of Tamil Eelam and the tiger became a symbol of the unrecognised state of Tamil Eelam and Tamil independence movement.

16 | 17 |

The Bengal tiger is the national animal of India and Bangladesh. The Malaysian tiger is the national animal of Malaysia. The Siberian tiger is the national animal of South Korea. Since the successful economies of South Korea, Taiwan, Hong Kong and Singapore were described as the Four Asian Tigers, a tiger economy is a metaphor for a nation in rapid development. Tiger are also mascots for various sports teams around the world. Tony the Tiger is a famous mascot for Kellogg's breakfast cereal Frosted Flakes. The Esso (Exxon) brand of petrol was advertised from 1969 onwards with the slogan 'put a tiger in your tank', and a tiger mascot; more than 2.5 million synthetic tiger tails were sold to motorists, who tied them to their petrol tank caps.

18 | 19 |

The tiger appears in heraldry but is distinct from the heraldic beast tyger, a wolflike, snouted creature which has its roots in European Medieval bestiaries.

20 | 21 |

(Text from Wikipedia)

22 | 23 | 24 | {% endblock %} 25 | -------------------------------------------------------------------------------- /test_mysql_connection.py: -------------------------------------------------------------------------------- 1 | # pip install mysql-connector 2 | 3 | from mysql.connector import connect 4 | 5 | cnx = connect( 6 | host='35.238.34.27', 7 | database='demo', 8 | user='nivratti', 9 | password='Rajendra4@@', 10 | port=3306 11 | ) 12 | 13 | print("Successfully connected to database.") --------------------------------------------------------------------------------