This playlist/video has been uploaded for Marketing purposes and contains only selective videos.
For the entire video course and code, visit [http://bit.ly/2mpY84E].
This video will enable you to browse through a product catalog and add products to a shopping cart. Finally, you will be able to check out the cart and place an order.
• Creating product catalog models
• Register catalog models in the admin site
• Building catalog views and Create catalog templates
For the latest App development video tutorials, please visit
http://bit.ly/1VACBzh
Find us on Facebook -- http://www.facebook.com/Packtvideo
Follow us on Twitter - http://www.twitter.com/packtvideo

published:10 Mar 2017

views:37724

TryDjango 1.9 - 25 of 38 - SetupStaticFiles - CSS & Javascript & Images in Django
** Try Django 1.9 ** is an introduction to Django version 1.9 by creating a simple, yet robust, Django blog. This series covers a variety of Django basics as well as Django 1.9 specific material. Learn more about the Django Web Framework here: http://www.djangoproject.com.
Subscribe to our channel: http://bit.ly/1kxmkzq
Generally the topics will include:
- Django Project Setup
- ClassBasedViews (& some Function Based Views)
- Models, Model Forms, Forms, FormValidation
- Integrate Bootstrap front-end framework.
- Django RegistrationRedux for Authentication/Registration
- And More
Suggest and up-vote project ideas here: http://joincfe.com/suggest/ (please keep out content related to the Build a Django 1.8 Blog series)
Premium, in-depth, Django tutorials available here: http://joincfe.com/projects.
We are Coding For Entrepreneurs [TeamCFE] and have built an entire library of content to help you master Django and other web technologies to launch real projects faster. Enroll today for as low as $20/month.
Subscribe: http://bit.ly/1kxmkzq (shareable subscribe link)
What Technology you'll learn in the Build a Django 1.8 Blog series:
-- Django Framework (version 1.9): a powerful backend framework used by top sites like Instagram and Pinterest. Django makes it easier to have a powerful web application to use for all types of projects. Django is written in Python (and is one of the most popular Python libraries in the world). Read more here: http://djangoproject.com
-- Bootstrap (version 3.3): a powerful front-end framework used by thousands of sites around the world. Bootstrap makes it easier to have a responsive web application so it looks awesome on any mobile device and any desktop computer.
-- Python: One of the top programming languages in the world. Powerful enough for the experts, easy enough for beginners. Why? It uses spaces and line breaks with minimal special characters (like !@#$;*) which means it's closer to English than most programming languages. Learn more: http://python.org
All of our tutorials have a simple goal in mind: get you building something real and quickly.

published:06 Jan 2016

views:49986

django-viewflow is open source reusable workflow library for django web framework.
In this video we will talk about what’s new django-viewflow brings to the django world. And see how to construct simple workflow web interface using django-viewflow.
Transcript and code samples: http://blog.viewflow.io/post/96062197573/viewflow-in-action-10-minutes-introduction
http://viewflow.io

published:08 Sep 2014

views:3273

In this Django Tutorial, we will be designing our first model in Django. Before we begin with the coding let's talk about what a model is. A model in Django contains fields and specific instructions how to handle data that we will be storing in the database. Each model in Django is a subclass of django.db.models.Model and each subclass of models.Model makes up a database table and each attribute of the subclass makes up a database field in Django.
Designing Our First Model In Django
Open up your favorite text editor and then open your Django project. Go into your lessons app and open the models.py file. This is where we will be designing our first database field in our Django project.
When you open the models.py file you will see the following.
from django.db import models
# Create your models here.
On the first line you see from django.db import models. This line of code will import the Django module that will allow us to interact with models.Model class. We must keep this import statement in the file for our database to work.
Creating Our First Model Subclass
Now let's create our first subclass which will make a database table. We use a class to define the subclass of django.db.models.Model. Let's get started.
from django.db import models
# Create your models here.
classLesson(models.Model):
This line creates a class which is a subclass which will give us the ability to use the features of django.db module. Class indicates we want to use a construct called class. A class allows for a more organized way of coding. Then we add Lesson this is the name of our class. Since we are creating lessons with this model I call it Lesson because each data table will represent a single lesson. Then we provide models.Model argument to indicate we want this to be the subclass of models.
Creating Our Database Fields
Now that we have created our subclass which actually our database table we now create fields for our database table.
STATUS_CHOICES
from django.db import models
# Create your models here.
class Lesson(models.Model):
STATUS_CHOICES = (
('draft', 'Draft'),
('published', 'Published')
)
We use the choice field here which we will actually initiate in our database shortly when it becomes an attribute of our status field. When working with a choices field we need to put the choices in an iterable object which can be a tuple or a list. I always use a tuple in this case. Then inside the tuple, we add our choices and they need to iterable as well and we will use a tuple again. Inside the second tuple, you see two words that are the exactly the same. The word on the left is the value the choice field will use and the one on the right is the human readable choice. When we use the choice field as an attribute I will be able to either set my lessons to draft which will not be displayed or set to publish where my lesson will be displayed to the users

published:16 Jul 2016

views:2012

I Didn't Know Querysets Could do That by Charlie Guo
QuerySets and object Managers are a core part of Django, and can be extremely powerful. But I didn't always know about some of their more advanced capabilities.
BASIC METHODS
You have likely used filter(), exclude(), and order_by(). You've even probably used an aggregation method like Sum() or Count(). Less common, however, are query(), only()/defer(), and select_related().
F EXPRESSIONS / Q OBJECTS
For some more complex queries, those basic functions and filters won't cut it. How do you construct a query that needs to check for field A or field B? What do you do if you need to multiply two fields together and then sum them? Look no further than F() and Q().
RAWSQL / THE EXTRA() METHOD
As a last resort, it's entirely possible to use raw SQL queries to get the database results that you need. The sky's the limit, but there are definitely downsides to this approach; pitfalls include SQL injections and database backend portability issues.
MANAGERS
A talk on QuerySets would be incomplete without mentioning Managers, and how to leverage Manager customization to make your life easier. Writing methods on existing Managers, and creating custom ones can go a long way towards being DRY and reducing the potential for errors.

Download project source code repository at:
https://github.com/playdoh888/youtube-tangowithdjango
Important Links and Notes:
(1) "Tango with Django" Course Chapter:
http://www.tangowithdjango.com/book17/chapters/forms.html
The basic steps involved in creating a form and allowing users to enter data via the form is as follows.
(1) If you haven’t already got one, create a forms.py file within your Django application’s directory to store form-related classes.
(2) Create a ModelForm class for each model that you wish to represent as a form.
(3) Customise the forms as you desire.
(4) Create or update a view to handle the form - including displaying the form,
saving the form data, and flagging up errors which may occur when the user enters incorrect data
(or no data at all) in the form.
(5) Create or update a template to display the form.
(6) Add a urlpattern to map to the new view (if you created a new one). urls.py
This workflow is a bit more complicated than previous workflows,
and the views that we have to construct have a lot more complexity as well.
However, once you undertake the process a few times it will be pretty clear how everything pieces together.

published:20 Jul 2017

views:679

Download project source code repository at:
https://github.com/playdoh888/youtube-tangowithdjango
Important Notes and Links:
* Steps to get the records in the database to the web pages
(Assuming you already have the model created):
(1) Update the "index" function in the application (rango)'s "views.py" module
The function will retrieve the records from database
then pass the retrieved records to the designated template by use a Python dictionary
(2) Update the template to use the Django template variable that was passed via "index" function.
* Add the Category page to the site:
(1) Modify the "index,html" by use the "slug" attrubute in category object the to construct a "href"
while iterating through each object in the dictionary.
(2) While we got the "href", the link goes nowhere.
(3) Check the error message. It is giving us the hint.
(4) Need to add a new URL switch in the "rango" application "urls.py" file.
(6) With the "switch" statement in place, we need to add a function "category".
This is to tell URL switch what function to call when the link is clicked.

published:19 Jul 2017

views:556

In this second video of django 2.0 tutorial we will create our first app named blog. In a project there can be many applications, in this case we ware going to create just one app

published:14 Jan 2018

views:388

Link to Embark DappFramework:
https://github.com/iurimatias/embark-framework
I created a Slack channel for us, sign up here:
https://wizards.herokuapp.com/
Link to Ethereum:
https://ethereum.org/
Link to IPFS:
https://ipfs.io/
Link to My Decentralized Apps Book:
http://www.amazon.com/Decentralized-Applications-Harnessing-Blockchain-Technology/dp/1491924543
Link to Decentralized Apps Paper:
https://github.com/DavidJohnstonCEO/DecentralizedApplications
I recently created a Patreon page. If you like my videos, feel free to help support my effort here!:
https://www.patreon.com/user?ty=h&u=3191693
Follow me:
Twitter: https://twitter.com/sirajraval
Facebook: https://www.facebook.com/sirajology Instagram: https://www.instagram.com/sirajraval/ Instagram: https://www.instagram.com/sirajraval/
Signup for my newsletter for exciting updates in the field of AI:
https://goo.gl/FZzJ5w

published:07 Feb 2016

views:63356

Tutorial 1: Add "application" and routing the ur to the new application.

Django's primary goal is to ease the creation of complex, database-driven websites. Django emphasizes reusability and "pluggability" of components, rapid development, and the principle of don't repeat yourself. Python is used throughout, even for settings, files, and data models. Django also provides an optional administrative create, read, update and delete interface that is generated dynamically through introspection and configured via admin models.

In roller coasters

Python (Coney Island), a D.P.V. Rides designed Zyklon-style steel roller coaster that operated from 1996 to 1999 at Splash Zone Water Park but was relocated to Coney Island at the end of the 1999 season

Python (nuclear primary)

Primary is the technical term for the fission bomb trigger of a thermonuclear or fusion bomb, which is used to compress, heat and ignite the fusion fuel in the thermonuclear secondary.

Hansen's research indicates that the W34Python primary was used in the US B28 nuclear bomb, W28, W40, and W49, and as a boosted fission warhead without a thermonuclear second stage in several other weapons. These were the Mark 45 ASTOR wire-guided 19-inch, submarine-launched heavyweight torpedo; the Mark 101 Lulu nuclear depth bomb; the Mark 105 Hotpoint laydown bomb.

Additionally, an anglicised W34 Python known to the British as 'Peter' was manufactured in Britain as the primary for Red Snow, itself an anglicised W28 warhead. Peter was also proposed as a replacement for the Red Beard warhead housed in a Red Beard carcass, and as the Violet Mist nuclear land mine for the British Army in Germany.

Python (Efteling)

History and details

With Python, Efteling started the implementation of a new strategy: development from a fairy-tale forest into an all-round amusement park. This change led to many problems with the local community. Environmentalists tried to get the building permit withdrawn, and the park's neighbors feared more problems arising from growing visitor numbers. Because of the likely noise pollution, the highest court of public justice ordered the construction to be stopped. After some time, construction could recommence, but legal problems continued for several more years.

In 1995, when operating hours were extended until 10pm, the coaster's 45-decibel noise level became a problem once more. Plans were submitted to the local municipality, describing an extension and complete renovation of the coaster, which would reduce the noise substantially. Due to the high cost, the funds were allocated to the construction of a new enclosed (to reduce noise problems for the park's surroundings) roller coaster, Bird Rok.

Django Reinhardt

Reinhardt is regarded as one of the greatest guitar players of all time; he was the first important European jazz musician who made major contributions to the development of the guitar genre. After his fourth and fifth fingers were paralyzed when he suffered burns in a fire, Reinhardt used only the index and middle finger of his left hand on his solos. He created an entirely new style of jazz guitar technique (sometimes called 'hot' jazz guitar), which has since become a living musical tradition within French Gypsy culture. With violinist Stéphane Grappelli, Reinhardt co-founded the Quintette du Hot Club de France, described by critic Thom Jurek as "one of the most original bands in the history of recorded jazz". Reinhardt's most popular compositions have become jazz standards, including "Minor Swing", "Daphne", "Belleville", "Djangology", "Swing '42", and "Nuages".

Django by Example : Creating an Online Shop Project | packtpub.com

This playlist/video has been uploaded for Marketing purposes and contains only selective videos.
For the entire video course and code, visit [http://bit.ly/2mpY84E].
This video will enable you to browse through a product catalog and add products to a shopping cart. Finally, you will be able to check out the cart and place an order.
• Creating product catalog models
• Register catalog models in the admin site
• Building catalog views and Create catalog templates
For the latest App development video tutorials, please visit
http://bit.ly/1VACBzh
Find us on Facebook -- http://www.facebook.com/Packtvideo
Follow us on Twitter - http://www.twitter.com/packtvideo

TryDjango 1.9 - 25 of 38 - SetupStaticFiles - CSS & Javascript & Images in Django
** Try Django 1.9 ** is an introduction to Django version 1.9 by creating a simple, yet robust, Django blog. This series covers a variety of Django basics as well as Django 1.9 specific material. Learn more about the Django Web Framework here: http://www.djangoproject.com.
Subscribe to our channel: http://bit.ly/1kxmkzq
Generally the topics will include:
- Django Project Setup
- ClassBasedViews (& some Function Based Views)
- Models, Model Forms, Forms, FormValidation
- Integrate Bootstrap front-end framework.
- Django RegistrationRedux for Authentication/Registration
- And More
Suggest and up-vote project ideas here: http://joincfe.com/suggest/ (please keep out content related to the Build a Django 1.8 Blog series)
Premium, in-depth, Django tutorials available here: http://joincfe.com/projects.
We are Coding For Entrepreneurs [TeamCFE] and have built an entire library of content to help you master Django and other web technologies to launch real projects faster. Enroll today for as low as $20/month.
Subscribe: http://bit.ly/1kxmkzq (shareable subscribe link)
What Technology you'll learn in the Build a Django 1.8 Blog series:
-- Django Framework (version 1.9): a powerful backend framework used by top sites like Instagram and Pinterest. Django makes it easier to have a powerful web application to use for all types of projects. Django is written in Python (and is one of the most popular Python libraries in the world). Read more here: http://djangoproject.com
-- Bootstrap (version 3.3): a powerful front-end framework used by thousands of sites around the world. Bootstrap makes it easier to have a responsive web application so it looks awesome on any mobile device and any desktop computer.
-- Python: One of the top programming languages in the world. Powerful enough for the experts, easy enough for beginners. Why? It uses spaces and line breaks with minimal special characters (like !@#$;*) which means it's closer to English than most programming languages. Learn more: http://python.org
All of our tutorials have a simple goal in mind: get you building something real and quickly.

11:00

Viewflow in Action: 10 minutes introduction

Viewflow in Action: 10 minutes introduction

Viewflow in Action: 10 minutes introduction

django-viewflow is open source reusable workflow library for django web framework.
In this video we will talk about what’s new django-viewflow brings to the django world. And see how to construct simple workflow web interface using django-viewflow.
Transcript and code samples: http://blog.viewflow.io/post/96062197573/viewflow-in-action-10-minutes-introduction
http://viewflow.io

14:59

Django Tutorial: Creating Our First Model In Django

Django Tutorial: Creating Our First Model In Django

Django Tutorial: Creating Our First Model In Django

In this Django Tutorial, we will be designing our first model in Django. Before we begin with the coding let's talk about what a model is. A model in Django contains fields and specific instructions how to handle data that we will be storing in the database. Each model in Django is a subclass of django.db.models.Model and each subclass of models.Model makes up a database table and each attribute of the subclass makes up a database field in Django.
Designing Our First Model In Django
Open up your favorite text editor and then open your Django project. Go into your lessons app and open the models.py file. This is where we will be designing our first database field in our Django project.
When you open the models.py file you will see the following.
from django.db import models
# Create your models here.
On the first line you see from django.db import models. This line of code will import the Django module that will allow us to interact with models.Model class. We must keep this import statement in the file for our database to work.
Creating Our First Model Subclass
Now let's create our first subclass which will make a database table. We use a class to define the subclass of django.db.models.Model. Let's get started.
from django.db import models
# Create your models here.
classLesson(models.Model):
This line creates a class which is a subclass which will give us the ability to use the features of django.db module. Class indicates we want to use a construct called class. A class allows for a more organized way of coding. Then we add Lesson this is the name of our class. Since we are creating lessons with this model I call it Lesson because each data table will represent a single lesson. Then we provide models.Model argument to indicate we want this to be the subclass of models.
Creating Our Database Fields
Now that we have created our subclass which actually our database table we now create fields for our database table.
STATUS_CHOICES
from django.db import models
# Create your models here.
class Lesson(models.Model):
STATUS_CHOICES = (
('draft', 'Draft'),
('published', 'Published')
)
We use the choice field here which we will actually initiate in our database shortly when it becomes an attribute of our status field. When working with a choices field we need to put the choices in an iterable object which can be a tuple or a list. I always use a tuple in this case. Then inside the tuple, we add our choices and they need to iterable as well and we will use a tuple again. Inside the second tuple, you see two words that are the exactly the same. The word on the left is the value the choice field will use and the one on the right is the human readable choice. When we use the choice field as an attribute I will be able to either set my lessons to draft which will not be displayed or set to publish where my lesson will be displayed to the users

25:56

DjangoCon US 2016 - I Didn't Know Querysets Could do That by Charlie Guo

DjangoCon US 2016 - I Didn't Know Querysets Could do That by Charlie Guo

DjangoCon US 2016 - I Didn't Know Querysets Could do That by Charlie Guo

I Didn't Know Querysets Could do That by Charlie Guo
QuerySets and object Managers are a core part of Django, and can be extremely powerful. But I didn't always know about some of their more advanced capabilities.
BASIC METHODS
You have likely used filter(), exclude(), and order_by(). You've even probably used an aggregation method like Sum() or Count(). Less common, however, are query(), only()/defer(), and select_related().
F EXPRESSIONS / Q OBJECTS
For some more complex queries, those basic functions and filters won't cut it. How do you construct a query that needs to check for field A or field B? What do you do if you need to multiply two fields together and then sum them? Look no further than F() and Q().
RAWSQL / THE EXTRA() METHOD
As a last resort, it's entirely possible to use raw SQL queries to get the database results that you need. The sky's the limit, but there are definitely downsides to this approach; pitfalls include SQL injections and database backend portability issues.
MANAGERS
A talk on QuerySets would be incomplete without mentioning Managers, and how to leverage Manager customization to make your life easier. Writing methods on existing Managers, and creating custom ones can go a long way towards being DRY and reducing the potential for errors.

Python/Django Development 8 of 12 - Using Web/Django form to add records to database

Python/Django Development 8 of 12 - Using Web/Django form to add records to database

Python/Django Development 8 of 12 - Using Web/Django form to add records to database

Download project source code repository at:
https://github.com/playdoh888/youtube-tangowithdjango
Important Links and Notes:
(1) "Tango with Django" Course Chapter:
http://www.tangowithdjango.com/book17/chapters/forms.html
The basic steps involved in creating a form and allowing users to enter data via the form is as follows.
(1) If you haven’t already got one, create a forms.py file within your Django application’s directory to store form-related classes.
(2) Create a ModelForm class for each model that you wish to represent as a form.
(3) Customise the forms as you desire.
(4) Create or update a view to handle the form - including displaying the form,
saving the form data, and flagging up errors which may occur when the user enters incorrect data
(or no data at all) in the form.
(5) Create or update a template to display the form.
(6) Add a urlpattern to map to the new view (if you created a new one). urls.py
This workflow is a bit more complicated than previous workflows,
and the views that we have to construct have a lot more complexity as well.
However, once you undertake the process a few times it will be pretty clear how everything pieces together.

36:45

Python/Django Development 7 of 12 - Using Templates and Views to display the records in the database

Python/Django Development 7 of 12 - Using Templates and Views to display the records in the database

Python/Django Development 7 of 12 - Using Templates and Views to display the records in the database

Download project source code repository at:
https://github.com/playdoh888/youtube-tangowithdjango
Important Notes and Links:
* Steps to get the records in the database to the web pages
(Assuming you already have the model created):
(1) Update the "index" function in the application (rango)'s "views.py" module
The function will retrieve the records from database
then pass the retrieved records to the designated template by use a Python dictionary
(2) Update the template to use the Django template variable that was passed via "index" function.
* Add the Category page to the site:
(1) Modify the "index,html" by use the "slug" attrubute in category object the to construct a "href"
while iterating through each object in the dictionary.
(2) While we got the "href", the link goes nowhere.
(3) Check the error message. It is giving us the hint.
(4) Need to add a new URL switch in the "rango" application "urls.py" file.
(6) With the "switch" statement in place, we need to add a function "category".
This is to tell URL switch what function to call when the link is clicked.

5:25

Django 2.0 Tutorial 2: Creating First Django Application

Django 2.0 Tutorial 2: Creating First Django Application

Django 2.0 Tutorial 2: Creating First Django Application

In this second video of django 2.0 tutorial we will create our first app named blog. In a project there can be many applications, in this case we ware going to create just one app

2:58

How to Build a Dapp in 3 min

How to Build a Dapp in 3 min

How to Build a Dapp in 3 min

Link to Embark DappFramework:
https://github.com/iurimatias/embark-framework
I created a Slack channel for us, sign up here:
https://wizards.herokuapp.com/
Link to Ethereum:
https://ethereum.org/
Link to IPFS:
https://ipfs.io/
Link to My Decentralized Apps Book:
http://www.amazon.com/Decentralized-Applications-Harnessing-Blockchain-Technology/dp/1491924543
Link to Decentralized Apps Paper:
https://github.com/DavidJohnstonCEO/DecentralizedApplications
I recently created a Patreon page. If you like my videos, feel free to help support my effort here!:
https://www.patreon.com/user?ty=h&u=3191693
Follow me:
Twitter: https://twitter.com/sirajraval
Facebook: https://www.facebook.com/sirajology Instagram: https://www.instagram.com/sirajraval/ Instagram: https://www.instagram.com/sirajraval/
Signup for my newsletter for exciting updates in the field of AI:
https://goo.gl/FZzJ5w

22:50

Building A Web Site using Python 3.6, Django 1.10 Eclipse IDE and PyDev

Building A Web Site using Python 3.6, Django 1.10 Eclipse IDE and PyDev

Building A Web Site using Python 3.6, Django 1.10 Eclipse IDE and PyDev

Tutorial 1: Add "application" and routing the ur to the new application.

DjangoCon US 2017 - Python & Spreadsheets: 2017 Edition by Kojo Idrissa
Spreadsheets are OFTEN terrible. They’re also everywhere! As one of the default forms of data exchange, learning to work with spreadsheets directly via Python can save time and effort. We’ll look at Openpyxl, a library that lets you do just that. We’ll look at at least two different (beginner-friendly)example cases: transforming one spreadsheet into another spreadsheet and converting a spreadsheet into JSON. I’ll also use my experience as a former accountant to highlight some of the issues around reading from and writing to a spreadsheet file and how you might deal with them. You MAY even learn to make new friends and grow the Python community! True Story!
https://2017.djangocon.us/talks/python-spreadsheets-2017-edition/

39:50

Building a Real Time Dashboard with Python by Stephen Cassidy

Building a Real Time Dashboard with Python by Stephen Cassidy

Building a Real Time Dashboard with Python by Stephen Cassidy

This video is from a talk by Stephen Cassidy at the HoustonPython Web meetup on the 3rd of November 2015.
You can find Stephen at https://twitter.com/stevemartingale
This will be a demo where Stephen Cassidy walks through using Python/Flask with some newer technologies (Apache Storm, Apache Kafka) to power a real time dashboard for sensor monitoring.
Links from the talk:
- Flask Python microframework http://flask.pocoo.org/
- Apache Kafka http://kafka.apache.org/
- Apache Storm http://storm.apache.org/

3:25

Django Reinhardt - Nuage II - London, 01.02.1946

Django Reinhardt - Nuage II - London, 01.02.1946

Django Reinhardt - Nuage II - London, 01.02.1946

Django Reinhardt & Stéphane Grappelli
Stéphane Grappelli (vln);
Django Reinhardt (g solo);
Jack Llewellyn, Allan Hodgkiss (g);
Coleridge Goode (b)
1946 February 1 - Decca, LondonDjango and Stephane were reunited in London in February of 1946 and recorded eight titles together which included the joyful Echoes of France as well as NUAGES. Delaunay's original discography listed only one take of Nuages but it later became known that two takes were recorded. The sleeve notes of London CD 820 591-2 show that Take 1 was issued in September 1947 backed with Loves Melody but that Take 2 was not issued until February 1964 on a Decca LP ACL1158. Grappelli seemingly was as uneasy with the introduction as Rostaing had been in 1940 and on both the Decca LP and the London CD the intro was ommitted (take 2). DanielNevers, in his sleeve notes to Fremaux FA13, states that Take 2 was issued on the original 78 but that Take 1 was issued, probably by mistake, on a few records. However it is the music that counts and what we have here is the opportunity to hear Django on consecutive takes of the same melody. Legendary players such as he never disappoint! We are treated to two completely different and extraordinary solos showing that Django and Stephane had the ability to bring out the best in each other whenever they recorded together. On Take 1 Django begins his solo with one of his show stopping phrases followed by a run which starts low down on the sixth string and ends high on the first. Someone once asked Django to demonstrate this and after a few attempts to figure out what happened in between could only be certain that SOMETHING happened, but he knew not what! Django goes on to construct the most delicate of solos suitable for this melody. The rest of the track is standard arrangement and Stephane does not solo. The solo to Take 2 begins, similar to the December 1940 version, in harmonics. The remainder of the solo is just as delicate and beautiful as Take 1, but completely different. The genius that was Django. - Dave Gould

Django by Example : Creating an Online Shop Project | packtpub.com

This playlist/video has been uploaded for Marketing purposes and contains only selective videos.
For the entire video course and code, visit [http://bit.ly/2mpY84E].
This video will enable you to browse through a product catalog and add products to a shopping cart. Finally, you will be able to check out the cart and place an order.
• Creating product catalog models
• Register catalog models in the admin site
• Building catalog views and Create catalog templates
For the latest App development video tutorials, please visit
http://bit.ly/1VACBzh
Find us on Facebook -- http://www.facebook.com/Packtvideo
Follow us on Twitter - http://www.twitter.com/packtvideo

Viewflow in Action: 10 minutes introduction

django-viewflow is open source reusable workflow library for django web framework.
In this video we will talk about what’s new django-viewflow brings to the django world. And see how to construct simple workflow web interface using django-viewflow.
Transcript and code samples: http://blog.viewflow.io/post/96062197573/viewflow-in-action-10-minutes-introduction
http://viewflow.io

published: 08 Sep 2014

Django Tutorial: Creating Our First Model In Django

In this Django Tutorial, we will be designing our first model in Django. Before we begin with the coding let's talk about what a model is. A model in Django contains fields and specific instructions how to handle data that we will be storing in the database. Each model in Django is a subclass of django.db.models.Model and each subclass of models.Model makes up a database table and each attribute of the subclass makes up a database field in Django.
Designing Our First Model In Django
Open up your favorite text editor and then open your Django project. Go into your lessons app and open the models.py file. This is where we will be designing our first database field in our Django project.
When you open the models.py file you will see the following.
from django.db import models
# Create yo...

published: 16 Jul 2016

DjangoCon US 2016 - I Didn't Know Querysets Could do That by Charlie Guo

I Didn't Know Querysets Could do That by Charlie Guo
QuerySets and object Managers are a core part of Django, and can be extremely powerful. But I didn't always know about some of their more advanced capabilities.
BASIC METHODS
You have likely used filter(), exclude(), and order_by(). You've even probably used an aggregation method like Sum() or Count(). Less common, however, are query(), only()/defer(), and select_related().
F EXPRESSIONS / Q OBJECTS
For some more complex queries, those basic functions and filters won't cut it. How do you construct a query that needs to check for field A or field B? What do you do if you need to multiply two fields together and then sum them? Look no further than F() and Q().
RAWSQL / THE EXTRA() METHOD
As a last resort, it's entirely possible to ...

Python/Django Development 8 of 12 - Using Web/Django form to add records to database

Download project source code repository at:
https://github.com/playdoh888/youtube-tangowithdjango
Important Links and Notes:
(1) "Tango with Django" Course Chapter:
http://www.tangowithdjango.com/book17/chapters/forms.html
The basic steps involved in creating a form and allowing users to enter data via the form is as follows.
(1) If you haven’t already got one, create a forms.py file within your Django application’s directory to store form-related classes.
(2) Create a ModelForm class for each model that you wish to represent as a form.
(3) Customise the forms as you desire.
(4) Create or update a view to handle the form - including displaying the form,
saving the form data, and flagging up errors which may occur when the user enters incorrect data
(or no data at all) in the form.
...

published: 20 Jul 2017

Python/Django Development 7 of 12 - Using Templates and Views to display the records in the database

Download project source code repository at:
https://github.com/playdoh888/youtube-tangowithdjango
Important Notes and Links:
* Steps to get the records in the database to the web pages
(Assuming you already have the model created):
(1) Update the "index" function in the application (rango)'s "views.py" module
The function will retrieve the records from database
then pass the retrieved records to the designated template by use a Python dictionary
(2) Update the template to use the Django template variable that was passed via "index" function.
* Add the Category page to the site:
(1) Modify the "index,html" by use the "slug" attrubute in category object the to construct a "href"
while iterating through each object in the dictionary.
(2) While we got the "href", the link goes nowhere....

published: 19 Jul 2017

Django 2.0 Tutorial 2: Creating First Django Application

In this second video of django 2.0 tutorial we will create our first app named blog. In a project there can be many applications, in this case we ware going to create just one app

DjangoCon US 2017 - Python & Spreadsheets: 2017 Edition by Kojo Idrissa
Spreadsheets are OFTEN terrible. They’re also everywhere! As one of the default forms of data exchange, learning to work with spreadsheets directly via Python can save time and effort. We’ll look at Openpyxl, a library that lets you do just that. We’ll look at at least two different (beginner-friendly)example cases: transforming one spreadsheet into another spreadsheet and converting a spreadsheet into JSON. I’ll also use my experience as a former accountant to highlight some of the issues around reading from and writing to a spreadsheet file and how you might deal with them. You MAY even learn to make new friends and grow the Python community! True Story!
https://2017.djangocon.us/talks/python-spreadsheets-2017-edit...

published: 06 Sep 2017

Building a Real Time Dashboard with Python by Stephen Cassidy

This video is from a talk by Stephen Cassidy at the HoustonPython Web meetup on the 3rd of November 2015.
You can find Stephen at https://twitter.com/stevemartingale
This will be a demo where Stephen Cassidy walks through using Python/Flask with some newer technologies (Apache Storm, Apache Kafka) to power a real time dashboard for sensor monitoring.
Links from the talk:
- Flask Python microframework http://flask.pocoo.org/
- Apache Kafka http://kafka.apache.org/
- Apache Storm http://storm.apache.org/

published: 03 Nov 2015

Django Reinhardt - Nuage II - London, 01.02.1946

Django Reinhardt & Stéphane Grappelli
Stéphane Grappelli (vln);
Django Reinhardt (g solo);
Jack Llewellyn, Allan Hodgkiss (g);
Coleridge Goode (b)
1946 February 1 - Decca, LondonDjango and Stephane were reunited in London in February of 1946 and recorded eight titles together which included the joyful Echoes of France as well as NUAGES. Delaunay's original discography listed only one take of Nuages but it later became known that two takes were recorded. The sleeve notes of London CD 820 591-2 show that Take 1 was issued in September 1947 backed with Loves Melody but that Take 2 was not issued until February 1964 on a Decca LP ACL1158. Grappelli seemingly was as uneasy with the introduction as Rostaing had been in 1940 and on both the Decca LP and the London CD the intro was ommitte...

Django by Example : Creating an Online Shop Project | packtpub.com

This playlist/video has been uploaded for Marketing purposes and contains only selective videos.
For the entire video course and code, visit [http://bit.ly/2m...

This playlist/video has been uploaded for Marketing purposes and contains only selective videos.
For the entire video course and code, visit [http://bit.ly/2mpY84E].
This video will enable you to browse through a product catalog and add products to a shopping cart. Finally, you will be able to check out the cart and place an order.
• Creating product catalog models
• Register catalog models in the admin site
• Building catalog views and Create catalog templates
For the latest App development video tutorials, please visit
http://bit.ly/1VACBzh
Find us on Facebook -- http://www.facebook.com/Packtvideo
Follow us on Twitter - http://www.twitter.com/packtvideo

This playlist/video has been uploaded for Marketing purposes and contains only selective videos.
For the entire video course and code, visit [http://bit.ly/2mpY84E].
This video will enable you to browse through a product catalog and add products to a shopping cart. Finally, you will be able to check out the cart and place an order.
• Creating product catalog models
• Register catalog models in the admin site
• Building catalog views and Create catalog templates
For the latest App development video tutorials, please visit
http://bit.ly/1VACBzh
Find us on Facebook -- http://www.facebook.com/Packtvideo
Follow us on Twitter - http://www.twitter.com/packtvideo

TryDjango 1.9 - 25 of 38 - SetupStaticFiles - CSS & Javascript & Images in Django
** Try Django 1.9 ** is an introduction to Django version 1.9 by creating a simple, yet robust, Django blog. This series covers a variety of Django basics as well as Django 1.9 specific material. Learn more about the Django Web Framework here: http://www.djangoproject.com.
Subscribe to our channel: http://bit.ly/1kxmkzq
Generally the topics will include:
- Django Project Setup
- ClassBasedViews (& some Function Based Views)
- Models, Model Forms, Forms, FormValidation
- Integrate Bootstrap front-end framework.
- Django RegistrationRedux for Authentication/Registration
- And More
Suggest and up-vote project ideas here: http://joincfe.com/suggest/ (please keep out content related to the Build a Django 1.8 Blog series)
Premium, in-depth, Django tutorials available here: http://joincfe.com/projects.
We are Coding For Entrepreneurs [TeamCFE] and have built an entire library of content to help you master Django and other web technologies to launch real projects faster. Enroll today for as low as $20/month.
Subscribe: http://bit.ly/1kxmkzq (shareable subscribe link)
What Technology you'll learn in the Build a Django 1.8 Blog series:
-- Django Framework (version 1.9): a powerful backend framework used by top sites like Instagram and Pinterest. Django makes it easier to have a powerful web application to use for all types of projects. Django is written in Python (and is one of the most popular Python libraries in the world). Read more here: http://djangoproject.com
-- Bootstrap (version 3.3): a powerful front-end framework used by thousands of sites around the world. Bootstrap makes it easier to have a responsive web application so it looks awesome on any mobile device and any desktop computer.
-- Python: One of the top programming languages in the world. Powerful enough for the experts, easy enough for beginners. Why? It uses spaces and line breaks with minimal special characters (like !@#$;*) which means it's closer to English than most programming languages. Learn more: http://python.org
All of our tutorials have a simple goal in mind: get you building something real and quickly.

TryDjango 1.9 - 25 of 38 - SetupStaticFiles - CSS & Javascript & Images in Django
** Try Django 1.9 ** is an introduction to Django version 1.9 by creating a simple, yet robust, Django blog. This series covers a variety of Django basics as well as Django 1.9 specific material. Learn more about the Django Web Framework here: http://www.djangoproject.com.
Subscribe to our channel: http://bit.ly/1kxmkzq
Generally the topics will include:
- Django Project Setup
- ClassBasedViews (& some Function Based Views)
- Models, Model Forms, Forms, FormValidation
- Integrate Bootstrap front-end framework.
- Django RegistrationRedux for Authentication/Registration
- And More
Suggest and up-vote project ideas here: http://joincfe.com/suggest/ (please keep out content related to the Build a Django 1.8 Blog series)
Premium, in-depth, Django tutorials available here: http://joincfe.com/projects.
We are Coding For Entrepreneurs [TeamCFE] and have built an entire library of content to help you master Django and other web technologies to launch real projects faster. Enroll today for as low as $20/month.
Subscribe: http://bit.ly/1kxmkzq (shareable subscribe link)
What Technology you'll learn in the Build a Django 1.8 Blog series:
-- Django Framework (version 1.9): a powerful backend framework used by top sites like Instagram and Pinterest. Django makes it easier to have a powerful web application to use for all types of projects. Django is written in Python (and is one of the most popular Python libraries in the world). Read more here: http://djangoproject.com
-- Bootstrap (version 3.3): a powerful front-end framework used by thousands of sites around the world. Bootstrap makes it easier to have a responsive web application so it looks awesome on any mobile device and any desktop computer.
-- Python: One of the top programming languages in the world. Powerful enough for the experts, easy enough for beginners. Why? It uses spaces and line breaks with minimal special characters (like !@#$;*) which means it's closer to English than most programming languages. Learn more: http://python.org
All of our tutorials have a simple goal in mind: get you building something real and quickly.

Viewflow in Action: 10 minutes introduction

django-viewflow is open source reusable workflow library for django web framework.
In this video we will talk about what’s new django-viewflow brings to the dj...

django-viewflow is open source reusable workflow library for django web framework.
In this video we will talk about what’s new django-viewflow brings to the django world. And see how to construct simple workflow web interface using django-viewflow.
Transcript and code samples: http://blog.viewflow.io/post/96062197573/viewflow-in-action-10-minutes-introduction
http://viewflow.io

django-viewflow is open source reusable workflow library for django web framework.
In this video we will talk about what’s new django-viewflow brings to the django world. And see how to construct simple workflow web interface using django-viewflow.
Transcript and code samples: http://blog.viewflow.io/post/96062197573/viewflow-in-action-10-minutes-introduction
http://viewflow.io

Django Tutorial: Creating Our First Model In Django

In this Django Tutorial, we will be designing our first model in Django. Before we begin with the coding let's talk about what a model is. A model in Django co...

In this Django Tutorial, we will be designing our first model in Django. Before we begin with the coding let's talk about what a model is. A model in Django contains fields and specific instructions how to handle data that we will be storing in the database. Each model in Django is a subclass of django.db.models.Model and each subclass of models.Model makes up a database table and each attribute of the subclass makes up a database field in Django.
Designing Our First Model In Django
Open up your favorite text editor and then open your Django project. Go into your lessons app and open the models.py file. This is where we will be designing our first database field in our Django project.
When you open the models.py file you will see the following.
from django.db import models
# Create your models here.
On the first line you see from django.db import models. This line of code will import the Django module that will allow us to interact with models.Model class. We must keep this import statement in the file for our database to work.
Creating Our First Model Subclass
Now let's create our first subclass which will make a database table. We use a class to define the subclass of django.db.models.Model. Let's get started.
from django.db import models
# Create your models here.
classLesson(models.Model):
This line creates a class which is a subclass which will give us the ability to use the features of django.db module. Class indicates we want to use a construct called class. A class allows for a more organized way of coding. Then we add Lesson this is the name of our class. Since we are creating lessons with this model I call it Lesson because each data table will represent a single lesson. Then we provide models.Model argument to indicate we want this to be the subclass of models.
Creating Our Database Fields
Now that we have created our subclass which actually our database table we now create fields for our database table.
STATUS_CHOICES
from django.db import models
# Create your models here.
class Lesson(models.Model):
STATUS_CHOICES = (
('draft', 'Draft'),
('published', 'Published')
)
We use the choice field here which we will actually initiate in our database shortly when it becomes an attribute of our status field. When working with a choices field we need to put the choices in an iterable object which can be a tuple or a list. I always use a tuple in this case. Then inside the tuple, we add our choices and they need to iterable as well and we will use a tuple again. Inside the second tuple, you see two words that are the exactly the same. The word on the left is the value the choice field will use and the one on the right is the human readable choice. When we use the choice field as an attribute I will be able to either set my lessons to draft which will not be displayed or set to publish where my lesson will be displayed to the users

In this Django Tutorial, we will be designing our first model in Django. Before we begin with the coding let's talk about what a model is. A model in Django contains fields and specific instructions how to handle data that we will be storing in the database. Each model in Django is a subclass of django.db.models.Model and each subclass of models.Model makes up a database table and each attribute of the subclass makes up a database field in Django.
Designing Our First Model In Django
Open up your favorite text editor and then open your Django project. Go into your lessons app and open the models.py file. This is where we will be designing our first database field in our Django project.
When you open the models.py file you will see the following.
from django.db import models
# Create your models here.
On the first line you see from django.db import models. This line of code will import the Django module that will allow us to interact with models.Model class. We must keep this import statement in the file for our database to work.
Creating Our First Model Subclass
Now let's create our first subclass which will make a database table. We use a class to define the subclass of django.db.models.Model. Let's get started.
from django.db import models
# Create your models here.
classLesson(models.Model):
This line creates a class which is a subclass which will give us the ability to use the features of django.db module. Class indicates we want to use a construct called class. A class allows for a more organized way of coding. Then we add Lesson this is the name of our class. Since we are creating lessons with this model I call it Lesson because each data table will represent a single lesson. Then we provide models.Model argument to indicate we want this to be the subclass of models.
Creating Our Database Fields
Now that we have created our subclass which actually our database table we now create fields for our database table.
STATUS_CHOICES
from django.db import models
# Create your models here.
class Lesson(models.Model):
STATUS_CHOICES = (
('draft', 'Draft'),
('published', 'Published')
)
We use the choice field here which we will actually initiate in our database shortly when it becomes an attribute of our status field. When working with a choices field we need to put the choices in an iterable object which can be a tuple or a list. I always use a tuple in this case. Then inside the tuple, we add our choices and they need to iterable as well and we will use a tuple again. Inside the second tuple, you see two words that are the exactly the same. The word on the left is the value the choice field will use and the one on the right is the human readable choice. When we use the choice field as an attribute I will be able to either set my lessons to draft which will not be displayed or set to publish where my lesson will be displayed to the users

DjangoCon US 2016 - I Didn't Know Querysets Could do That by Charlie Guo

I Didn't Know Querysets Could do That by Charlie Guo
QuerySets and object Managers are a core part of Django, and can be extremely powerful. But I didn't alway...

I Didn't Know Querysets Could do That by Charlie Guo
QuerySets and object Managers are a core part of Django, and can be extremely powerful. But I didn't always know about some of their more advanced capabilities.
BASIC METHODS
You have likely used filter(), exclude(), and order_by(). You've even probably used an aggregation method like Sum() or Count(). Less common, however, are query(), only()/defer(), and select_related().
F EXPRESSIONS / Q OBJECTS
For some more complex queries, those basic functions and filters won't cut it. How do you construct a query that needs to check for field A or field B? What do you do if you need to multiply two fields together and then sum them? Look no further than F() and Q().
RAWSQL / THE EXTRA() METHOD
As a last resort, it's entirely possible to use raw SQL queries to get the database results that you need. The sky's the limit, but there are definitely downsides to this approach; pitfalls include SQL injections and database backend portability issues.
MANAGERS
A talk on QuerySets would be incomplete without mentioning Managers, and how to leverage Manager customization to make your life easier. Writing methods on existing Managers, and creating custom ones can go a long way towards being DRY and reducing the potential for errors.

I Didn't Know Querysets Could do That by Charlie Guo
QuerySets and object Managers are a core part of Django, and can be extremely powerful. But I didn't always know about some of their more advanced capabilities.
BASIC METHODS
You have likely used filter(), exclude(), and order_by(). You've even probably used an aggregation method like Sum() or Count(). Less common, however, are query(), only()/defer(), and select_related().
F EXPRESSIONS / Q OBJECTS
For some more complex queries, those basic functions and filters won't cut it. How do you construct a query that needs to check for field A or field B? What do you do if you need to multiply two fields together and then sum them? Look no further than F() and Q().
RAWSQL / THE EXTRA() METHOD
As a last resort, it's entirely possible to use raw SQL queries to get the database results that you need. The sky's the limit, but there are definitely downsides to this approach; pitfalls include SQL injections and database backend portability issues.
MANAGERS
A talk on QuerySets would be incomplete without mentioning Managers, and how to leverage Manager customization to make your life easier. Writing methods on existing Managers, and creating custom ones can go a long way towards being DRY and reducing the potential for errors.

Download project source code repository at:
https://github.com/playdoh888/youtube-tangowithdjango
Important Links and Notes:
(1) "Tango with Django" Course Chapter:
http://www.tangowithdjango.com/book17/chapters/forms.html
The basic steps involved in creating a form and allowing users to enter data via the form is as follows.
(1) If you haven’t already got one, create a forms.py file within your Django application’s directory to store form-related classes.
(2) Create a ModelForm class for each model that you wish to represent as a form.
(3) Customise the forms as you desire.
(4) Create or update a view to handle the form - including displaying the form,
saving the form data, and flagging up errors which may occur when the user enters incorrect data
(or no data at all) in the form.
(5) Create or update a template to display the form.
(6) Add a urlpattern to map to the new view (if you created a new one). urls.py
This workflow is a bit more complicated than previous workflows,
and the views that we have to construct have a lot more complexity as well.
However, once you undertake the process a few times it will be pretty clear how everything pieces together.

Download project source code repository at:
https://github.com/playdoh888/youtube-tangowithdjango
Important Links and Notes:
(1) "Tango with Django" Course Chapter:
http://www.tangowithdjango.com/book17/chapters/forms.html
The basic steps involved in creating a form and allowing users to enter data via the form is as follows.
(1) If you haven’t already got one, create a forms.py file within your Django application’s directory to store form-related classes.
(2) Create a ModelForm class for each model that you wish to represent as a form.
(3) Customise the forms as you desire.
(4) Create or update a view to handle the form - including displaying the form,
saving the form data, and flagging up errors which may occur when the user enters incorrect data
(or no data at all) in the form.
(5) Create or update a template to display the form.
(6) Add a urlpattern to map to the new view (if you created a new one). urls.py
This workflow is a bit more complicated than previous workflows,
and the views that we have to construct have a lot more complexity as well.
However, once you undertake the process a few times it will be pretty clear how everything pieces together.

Python/Django Development 7 of 12 - Using Templates and Views to display the records in the database

Download project source code repository at:
https://github.com/playdoh888/youtube-tangowithdjango
Important Notes and Links:
* Steps to get the records in t...

Download project source code repository at:
https://github.com/playdoh888/youtube-tangowithdjango
Important Notes and Links:
* Steps to get the records in the database to the web pages
(Assuming you already have the model created):
(1) Update the "index" function in the application (rango)'s "views.py" module
The function will retrieve the records from database
then pass the retrieved records to the designated template by use a Python dictionary
(2) Update the template to use the Django template variable that was passed via "index" function.
* Add the Category page to the site:
(1) Modify the "index,html" by use the "slug" attrubute in category object the to construct a "href"
while iterating through each object in the dictionary.
(2) While we got the "href", the link goes nowhere.
(3) Check the error message. It is giving us the hint.
(4) Need to add a new URL switch in the "rango" application "urls.py" file.
(6) With the "switch" statement in place, we need to add a function "category".
This is to tell URL switch what function to call when the link is clicked.

Download project source code repository at:
https://github.com/playdoh888/youtube-tangowithdjango
Important Notes and Links:
* Steps to get the records in the database to the web pages
(Assuming you already have the model created):
(1) Update the "index" function in the application (rango)'s "views.py" module
The function will retrieve the records from database
then pass the retrieved records to the designated template by use a Python dictionary
(2) Update the template to use the Django template variable that was passed via "index" function.
* Add the Category page to the site:
(1) Modify the "index,html" by use the "slug" attrubute in category object the to construct a "href"
while iterating through each object in the dictionary.
(2) While we got the "href", the link goes nowhere.
(3) Check the error message. It is giving us the hint.
(4) Need to add a new URL switch in the "rango" application "urls.py" file.
(6) With the "switch" statement in place, we need to add a function "category".
This is to tell URL switch what function to call when the link is clicked.

DjangoCon US 2017 - Python & Spreadsheets: 2017 Edition by Kojo Idrissa
Spreadsheets are OFTEN terrible. They’re also everywhere! As one of the default forms o...

DjangoCon US 2017 - Python & Spreadsheets: 2017 Edition by Kojo Idrissa
Spreadsheets are OFTEN terrible. They’re also everywhere! As one of the default forms of data exchange, learning to work with spreadsheets directly via Python can save time and effort. We’ll look at Openpyxl, a library that lets you do just that. We’ll look at at least two different (beginner-friendly)example cases: transforming one spreadsheet into another spreadsheet and converting a spreadsheet into JSON. I’ll also use my experience as a former accountant to highlight some of the issues around reading from and writing to a spreadsheet file and how you might deal with them. You MAY even learn to make new friends and grow the Python community! True Story!
https://2017.djangocon.us/talks/python-spreadsheets-2017-edition/

DjangoCon US 2017 - Python & Spreadsheets: 2017 Edition by Kojo Idrissa
Spreadsheets are OFTEN terrible. They’re also everywhere! As one of the default forms of data exchange, learning to work with spreadsheets directly via Python can save time and effort. We’ll look at Openpyxl, a library that lets you do just that. We’ll look at at least two different (beginner-friendly)example cases: transforming one spreadsheet into another spreadsheet and converting a spreadsheet into JSON. I’ll also use my experience as a former accountant to highlight some of the issues around reading from and writing to a spreadsheet file and how you might deal with them. You MAY even learn to make new friends and grow the Python community! True Story!
https://2017.djangocon.us/talks/python-spreadsheets-2017-edition/

This video is from a talk by Stephen Cassidy at the HoustonPython Web meetup on the 3rd of November 2015.
You can find Stephen at https://twitter.com/stevemartingale
This will be a demo where Stephen Cassidy walks through using Python/Flask with some newer technologies (Apache Storm, Apache Kafka) to power a real time dashboard for sensor monitoring.
Links from the talk:
- Flask Python microframework http://flask.pocoo.org/
- Apache Kafka http://kafka.apache.org/
- Apache Storm http://storm.apache.org/

This video is from a talk by Stephen Cassidy at the HoustonPython Web meetup on the 3rd of November 2015.
You can find Stephen at https://twitter.com/stevemartingale
This will be a demo where Stephen Cassidy walks through using Python/Flask with some newer technologies (Apache Storm, Apache Kafka) to power a real time dashboard for sensor monitoring.
Links from the talk:
- Flask Python microframework http://flask.pocoo.org/
- Apache Kafka http://kafka.apache.org/
- Apache Storm http://storm.apache.org/

Django Reinhardt & Stéphane Grappelli
Stéphane Grappelli (vln);
Django Reinhardt (g solo);
Jack Llewellyn, Allan Hodgkiss (g);
Coleridge Goode (b)
1946 February 1 - Decca, LondonDjango and Stephane were reunited in London in February of 1946 and recorded eight titles together which included the joyful Echoes of France as well as NUAGES. Delaunay's original discography listed only one take of Nuages but it later became known that two takes were recorded. The sleeve notes of London CD 820 591-2 show that Take 1 was issued in September 1947 backed with Loves Melody but that Take 2 was not issued until February 1964 on a Decca LP ACL1158. Grappelli seemingly was as uneasy with the introduction as Rostaing had been in 1940 and on both the Decca LP and the London CD the intro was ommitted (take 2). DanielNevers, in his sleeve notes to Fremaux FA13, states that Take 2 was issued on the original 78 but that Take 1 was issued, probably by mistake, on a few records. However it is the music that counts and what we have here is the opportunity to hear Django on consecutive takes of the same melody. Legendary players such as he never disappoint! We are treated to two completely different and extraordinary solos showing that Django and Stephane had the ability to bring out the best in each other whenever they recorded together. On Take 1 Django begins his solo with one of his show stopping phrases followed by a run which starts low down on the sixth string and ends high on the first. Someone once asked Django to demonstrate this and after a few attempts to figure out what happened in between could only be certain that SOMETHING happened, but he knew not what! Django goes on to construct the most delicate of solos suitable for this melody. The rest of the track is standard arrangement and Stephane does not solo. The solo to Take 2 begins, similar to the December 1940 version, in harmonics. The remainder of the solo is just as delicate and beautiful as Take 1, but completely different. The genius that was Django. - Dave Gould

Django Reinhardt & Stéphane Grappelli
Stéphane Grappelli (vln);
Django Reinhardt (g solo);
Jack Llewellyn, Allan Hodgkiss (g);
Coleridge Goode (b)
1946 February 1 - Decca, LondonDjango and Stephane were reunited in London in February of 1946 and recorded eight titles together which included the joyful Echoes of France as well as NUAGES. Delaunay's original discography listed only one take of Nuages but it later became known that two takes were recorded. The sleeve notes of London CD 820 591-2 show that Take 1 was issued in September 1947 backed with Loves Melody but that Take 2 was not issued until February 1964 on a Decca LP ACL1158. Grappelli seemingly was as uneasy with the introduction as Rostaing had been in 1940 and on both the Decca LP and the London CD the intro was ommitted (take 2). DanielNevers, in his sleeve notes to Fremaux FA13, states that Take 2 was issued on the original 78 but that Take 1 was issued, probably by mistake, on a few records. However it is the music that counts and what we have here is the opportunity to hear Django on consecutive takes of the same melody. Legendary players such as he never disappoint! We are treated to two completely different and extraordinary solos showing that Django and Stephane had the ability to bring out the best in each other whenever they recorded together. On Take 1 Django begins his solo with one of his show stopping phrases followed by a run which starts low down on the sixth string and ends high on the first. Someone once asked Django to demonstrate this and after a few attempts to figure out what happened in between could only be certain that SOMETHING happened, but he knew not what! Django goes on to construct the most delicate of solos suitable for this melody. The rest of the track is standard arrangement and Stephane does not solo. The solo to Take 2 begins, similar to the December 1940 version, in harmonics. The remainder of the solo is just as delicate and beautiful as Take 1, but completely different. The genius that was Django. - Dave Gould

Django by Example : Creating an Online Shop Project | packtpub.com

This playlist/video has been uploaded for Marketing purposes and contains only selective videos.
For the entire video course and code, visit [http://bit.ly/2mpY84E].
This video will enable you to browse through a product catalog and add products to a shopping cart. Finally, you will be able to check out the cart and place an order.
• Creating product catalog models
• Register catalog models in the admin site
• Building catalog views and Create catalog templates
For the latest App development video tutorials, please visit
http://bit.ly/1VACBzh
Find us on Facebook -- http://www.facebook.com/Packtvideo
Follow us on Twitter - http://www.twitter.com/packtvideo

TryDjango 1.9 - 25 of 38 - SetupStaticFiles - CSS & Javascript & Images in Django
** Try Django 1.9 ** is an introduction to Django version 1.9 by creating a simple, yet robust, Django blog. This series covers a variety of Django basics as well as Django 1.9 specific material. Learn more about the Django Web Framework here: http://www.djangoproject.com.
Subscribe to our channel: http://bit.ly/1kxmkzq
Generally the topics will include:
- Django Project Setup
- ClassBasedViews (& some Function Based Views)
- Models, Model Forms, Forms, FormValidation
- Integrate Bootstrap front-end framework.
- Django RegistrationRedux for Authentication/Registration
- And More
Suggest and up-vote project ideas here: http://joincfe.com/suggest/ (please keep out content related to the Build a Django 1.8 Blog series)
Premium, in-depth, Django tutorials available here: http://joincfe.com/projects.
We are Coding For Entrepreneurs [TeamCFE] and have built an entire library of content to help you master Django and other web technologies to launch real projects faster. Enroll today for as low as $20/month.
Subscribe: http://bit.ly/1kxmkzq (shareable subscribe link)
What Technology you'll learn in the Build a Django 1.8 Blog series:
-- Django Framework (version 1.9): a powerful backend framework used by top sites like Instagram and Pinterest. Django makes it easier to have a powerful web application to use for all types of projects. Django is written in Python (and is one of the most popular Python libraries in the world). Read more here: http://djangoproject.com
-- Bootstrap (version 3.3): a powerful front-end framework used by thousands of sites around the world. Bootstrap makes it easier to have a responsive web application so it looks awesome on any mobile device and any desktop computer.
-- Python: One of the top programming languages in the world. Powerful enough for the experts, easy enough for beginners. Why? It uses spaces and line breaks with minimal special characters (like !@#$;*) which means it's closer to English than most programming languages. Learn more: http://python.org
All of our tutorials have a simple goal in mind: get you building something real and quickly.

Viewflow in Action: 10 minutes introduction

django-viewflow is open source reusable workflow library for django web framework.
In this video we will talk about what’s new django-viewflow brings to the django world. And see how to construct simple workflow web interface using django-viewflow.
Transcript and code samples: http://blog.viewflow.io/post/96062197573/viewflow-in-action-10-minutes-introduction
http://viewflow.io

Django Tutorial: Creating Our First Model In Django

In this Django Tutorial, we will be designing our first model in Django. Before we begin with the coding let's talk about what a model is. A model in Django contains fields and specific instructions how to handle data that we will be storing in the database. Each model in Django is a subclass of django.db.models.Model and each subclass of models.Model makes up a database table and each attribute of the subclass makes up a database field in Django.
Designing Our First Model In Django
Open up your favorite text editor and then open your Django project. Go into your lessons app and open the models.py file. This is where we will be designing our first database field in our Django project.
When you open the models.py file you will see the following.
from django.db import models
# Create your models here.
On the first line you see from django.db import models. This line of code will import the Django module that will allow us to interact with models.Model class. We must keep this import statement in the file for our database to work.
Creating Our First Model Subclass
Now let's create our first subclass which will make a database table. We use a class to define the subclass of django.db.models.Model. Let's get started.
from django.db import models
# Create your models here.
classLesson(models.Model):
This line creates a class which is a subclass which will give us the ability to use the features of django.db module. Class indicates we want to use a construct called class. A class allows for a more organized way of coding. Then we add Lesson this is the name of our class. Since we are creating lessons with this model I call it Lesson because each data table will represent a single lesson. Then we provide models.Model argument to indicate we want this to be the subclass of models.
Creating Our Database Fields
Now that we have created our subclass which actually our database table we now create fields for our database table.
STATUS_CHOICES
from django.db import models
# Create your models here.
class Lesson(models.Model):
STATUS_CHOICES = (
('draft', 'Draft'),
('published', 'Published')
)
We use the choice field here which we will actually initiate in our database shortly when it becomes an attribute of our status field. When working with a choices field we need to put the choices in an iterable object which can be a tuple or a list. I always use a tuple in this case. Then inside the tuple, we add our choices and they need to iterable as well and we will use a tuple again. Inside the second tuple, you see two words that are the exactly the same. The word on the left is the value the choice field will use and the one on the right is the human readable choice. When we use the choice field as an attribute I will be able to either set my lessons to draft which will not be displayed or set to publish where my lesson will be displayed to the users

DjangoCon US 2016 - I Didn't Know Querysets Could do That by Charlie Guo

I Didn't Know Querysets Could do That by Charlie Guo
QuerySets and object Managers are a core part of Django, and can be extremely powerful. But I didn't always know about some of their more advanced capabilities.
BASIC METHODS
You have likely used filter(), exclude(), and order_by(). You've even probably used an aggregation method like Sum() or Count(). Less common, however, are query(), only()/defer(), and select_related().
F EXPRESSIONS / Q OBJECTS
For some more complex queries, those basic functions and filters won't cut it. How do you construct a query that needs to check for field A or field B? What do you do if you need to multiply two fields together and then sum them? Look no further than F() and Q().
RAWSQL / THE EXTRA() METHOD
As a last resort, it's entirely possible to use raw SQL queries to get the database results that you need. The sky's the limit, but there are definitely downsides to this approach; pitfalls include SQL injections and database backend portability issues.
MANAGERS
A talk on QuerySets would be incomplete without mentioning Managers, and how to leverage Manager customization to make your life easier. Writing methods on existing Managers, and creating custom ones can go a long way towards being DRY and reducing the potential for errors.

Python/Django Development 8 of 12 - Using Web/Django form to add records to database

Download project source code repository at:
https://github.com/playdoh888/youtube-tangowithdjango
Important Links and Notes:
(1) "Tango with Django" Course Chapter:
http://www.tangowithdjango.com/book17/chapters/forms.html
The basic steps involved in creating a form and allowing users to enter data via the form is as follows.
(1) If you haven’t already got one, create a forms.py file within your Django application’s directory to store form-related classes.
(2) Create a ModelForm class for each model that you wish to represent as a form.
(3) Customise the forms as you desire.
(4) Create or update a view to handle the form - including displaying the form,
saving the form data, and flagging up errors which may occur when the user enters incorrect data
(or no data at all) in the form.
(5) Create or update a template to display the form.
(6) Add a urlpattern to map to the new view (if you created a new one). urls.py
This workflow is a bit more complicated than previous workflows,
and the views that we have to construct have a lot more complexity as well.
However, once you undertake the process a few times it will be pretty clear how everything pieces together.

Python/Django Development 7 of 12 - Using Templates and Views to display the records in the database

Download project source code repository at:
https://github.com/playdoh888/youtube-tangowithdjango
Important Notes and Links:
* Steps to get the records in the database to the web pages
(Assuming you already have the model created):
(1) Update the "index" function in the application (rango)'s "views.py" module
The function will retrieve the records from database
then pass the retrieved records to the designated template by use a Python dictionary
(2) Update the template to use the Django template variable that was passed via "index" function.
* Add the Category page to the site:
(1) Modify the "index,html" by use the "slug" attrubute in category object the to construct a "href"
while iterating through each object in the dictionary.
(2) While we got the "href", the link goes nowhere.
(3) Check the error message. It is giving us the hint.
(4) Need to add a new URL switch in the "rango" application "urls.py" file.
(6) With the "switch" statement in place, we need to add a function "category".
This is to tell URL switch what function to call when the link is clicked.

DjangoCon US 2017 - Python & Spreadsheets: 2017 Edition by Kojo Idrissa
Spreadsheets are OFTEN terrible. They’re also everywhere! As one of the default forms of data exchange, learning to work with spreadsheets directly via Python can save time and effort. We’ll look at Openpyxl, a library that lets you do just that. We’ll look at at least two different (beginner-friendly)example cases: transforming one spreadsheet into another spreadsheet and converting a spreadsheet into JSON. I’ll also use my experience as a former accountant to highlight some of the issues around reading from and writing to a spreadsheet file and how you might deal with them. You MAY even learn to make new friends and grow the Python community! True Story!
https://2017.djangocon.us/talks/python-spreadsheets-2017-edition/

Building a Real Time Dashboard with Python by Stephen Cassidy

This video is from a talk by Stephen Cassidy at the HoustonPython Web meetup on the 3rd of November 2015.
You can find Stephen at https://twitter.com/stevemartingale
This will be a demo where Stephen Cassidy walks through using Python/Flask with some newer technologies (Apache Storm, Apache Kafka) to power a real time dashboard for sensor monitoring.
Links from the talk:
- Flask Python microframework http://flask.pocoo.org/
- Apache Kafka http://kafka.apache.org/
- Apache Storm http://storm.apache.org/