Day 11: Exploring Python with Django – Tips
Time to list and look at a few resources describing tips and tricks in Django. 10 Tips for Beginners to Learn Django 10 Insanely Useful Django Tips 22 Tips 9 Django Tips for Working with Databases Django tips and tricks: Part 1 More than enough work for Day 11! Continue reading Day 11: Exploring Python with Django – Tips
Day 10: Exploring Python with Django
We used Day 6, Day 7, Day 8 and Day 9 to dive into Django and crash land anyhow to “Hello World”. Let us take a step back and take a broader look at Django. Some interesting information from A Complete Beginner’s Guide to Django: Among the biggest Web sites using Django are Instagram, Disqus, Mozilla, Bitbucket, Last.fm, National Geographic. For more examples you can see … Continue reading Day 10: Exploring Python with Django
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 5: Exploring Python with Projects
To get a cleaner look at the sample code listed in the last post Day 4, here is a screenshot of a nested version of the same code: To understand this, you might need step back into the tutorial to review the section 4.6. Defining Functions. Even functions without a return statement do return a value – called None (a built-in name). We can pass … Continue reading Day 5: 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
