Day 9: Exploring Python with Projects

We ran lot of commands on Day 8, let us see what they mean. A quick review of files created in the process is listed at ““Hello World” Using Django (First App)”: __init__.py will be a blank script similar to our project file. We can register our models in the admin.py for interfacing. Application specific configurations are placed in apps.py. The data models for applications are stored in models.py. Test … Continue reading Day 9: Exploring Python with Projects

Day 8: Exploring Python with Projects

Continuing from Day 7, we take the next steps listed at “Building an Hello World Application with Python/Django”. I had to run “python manage.py runserver” again to get django sever to launch: Next steps: django-admin startapp my_app # Create a new django app named my_app OR python manage.py startapp my_app # Create a new django app named my_app open helloworld_project/settings.py file in a text editor and … Continue reading Day 8: Exploring Python with Projects

Day 7: Exploring Python with Projects

Moving from Django installation done on Day 6, we move to “Building an Hello World Application with Python/Django” and execute following steps: mkdir my_django_project # Create my_django_project directory cd my_django_project # Change working directory into my_django_project directory django-admin startproject helloworld_project # Create a new project named helloworld_pr python manage.py runserver # Run the django server python manage.py migrate Let us keep Day 7 short! Continue reading Day 7: Exploring Python with Projects

Day 6: Exploring Python with Projects

To understand the sample code in the previous post Day 5, it would also be useful to refer to the official “The Python Language Reference”. I do a quick review of basic stuff like: Explicit / Implicit line joining  and ignoring stuff like literals and identifiers (in the same page) for now. Data Model including The standard type hierarchy Expressions Coming back to projects, it … Continue reading Day 6: Exploring Python with Projects

Day 4: Exploring Python with Projects

Let us explore few more resources that list python projects: Top Python Projects You Should Consider Learning The 10 Best Beginner Projects for New Programmers 13 Project Ideas for Intermediate Python Developers As we get into relatively bigger projects, we need to learn to use external libraries, for example, the official documentation lists Graphical User Interfaces with Tk. The site w3schools has page GUI Programming … Continue reading Day 4: Exploring Python with Projects

Day 3: How To Begin With Python

I started with the Official Python Tutorial, but found it necessary to “digress” a bit and understand the installation and configuration options. Having done that, we move to the next section in the tutorial – “Whetting Your Appetite” which is nothing but some introductory comments to warm you up. The next section is “Using the Python Interpreter”. This recommends taking a peek at “Command line … Continue reading Day 3: How To Begin With Python

How To Begin With Python: Day 2

Continuing from How To Begin With Python: Day 1, we continue with “3.7. Python Launcher for Windows” section in the official windows installation primer, the link to the primer is “Using Python on Windows”. After installation, it important to know how to run a python script. For more basic information on this see https://realpython.com/run-python-scripts/. Shebang Lines: first line of a script file starting with #!, … Continue reading How To Begin With Python: Day 2

How To Begin With Python: Day 1

With trillions of tutorials around, probably the best way is to start with the official tutorial here – The Python Tutorial. Not finding any links to installation on this page, I found it useful to search for the installer section with the intention of doing the installation first. For windows installation, the link to the primer is “Using Python on Windows”. Like most documentation, this … Continue reading How To Begin With Python: Day 1

How do we begin solving world’s biggest problems? PART – 1

Come to think of it – we humans seem to be having the best time ever and we are at a peak in terms of demonstrating our intelligence and power. As Ian Goldin and Chris Kutarna (authors of the book Age of Discovery) share in an article titled “We’re living in an age full of possibilities. So why do so many of us feel like … Continue reading How do we begin solving world’s biggest problems? PART – 1