Upload
dhruv-gohil
View
32
Download
1
Embed Size (px)
Citation preview
Django girl’sFirst Steps, walk with me!
An introduction to “Technical things” - by Dhruv @yourfrienddhruv
Things are scary...Until you know them..
Until you touch them..
Until you see them..
Until you CREATE them.
1. Why so serious?Yes, “Making things” is a long process but not a hard process! We are going to do “simple” things but a lot of it.
➔ Machines are DumbYes machines are still “dumber” than humans!
➔ Machines are EffectiveOnce told, they can do things anywhere, all the time and without asking for any leaves!
➔ Machines are SimpleTrust me.
How many people do you need to sell “flower pots” to all the people in this city and then world?
Tip
Try to estimate “all” the people”, involved, somebody has to make them too!.
Where do you sell it? How do people know about your shop?.
Just one! Yourself.(With a little help from a computer & internet )
Tip
Dumb Machine + Technology = Computer!
Your computer + Everybody else’s computer = Internet!
We are going to create a global place (“web-site”)
using Django and related technologies, which will allow the whole world to reach to your creations!
Tip
To set up a shop, in other country we need “a space” there, but to actually “sell” something we need to know their “Language” too.
Note this, we’ll come back to this soon!
2. Global Shop(s)!We need to take care of 3 things by 3 parties
➔ What
◆ Brand Name (Unique!, email?)
◆ Shop’s design
◆ Things to sell
➔ Who
◆ Mall owner
◆ Shop’s Contractor/Builder
◆ You !
Start talking to your computer!
Taking to computer in simplest way possible is through “console” or “command line”.
And yes it’ really like “talking” + “listening”.
Tip
We have to talk to lot of computers, a lot! , so need to use bare minimal “interface” to “interact” with them.
Just like we use “English” to talk to most of the people, for computers we choose “Python”.
Tip
As you know “English” alone might not be enough!
Don’t worry we will use some other languages too! They are easy.. I swear. :-)
It’s fun Once you start talking.
Also powerful as you can now control “computers” by giving “commands” even from other end of the world!
Tip
Once you have access to “remote” device (e.g. phone, server) with the language you know, you are god!
Using DjangoIs like being part of team.
Where console, python, database, web-interface and others players help you to build a complete website. Tip
We are going to do hands on to everything,
Don’t worry about these big words as of now!
3. Database?!You can’t keep all items you produce in a shop, we need a warehouse or at-least a store room.
➔ ModelStandard way to store your items
➔ QueryA way to find items from your big
store-room!
➔ MigrationsA way to expand your store room!
4. CodingIf you need to create a complete shope’s design yourself, you need to know:
➔ DatabaseWarehouse to store items.
➔ Back-endShope’s shelves.
➔ Front-endShope’s most attractive view, and first impression!
Milestones
Online Offline
Global SetupGithub (Source),
PythonAnywhere (Hosting)
Local SetupGit, Django (Python), Code
Editor (Notepad)
WebsiteShows things to world,
created from central place.
Web ApplicationAlso allows to create things
from anywhere!
What we will use today.
Version control
Git with github
Command line
To interact with computers
Programming language
Python, shell script, HTML, CSS
It’s just small list, of big things!
Still some doubts? You are not the Only one,You are not the First one.
That’s why weare community.
Tip
If you ask questions, your doubts will be answered.
Your doubts will only be answered if you ask questions!
Let’s rock!Just remember, It’s really easy but it’s not short! So, we have to stick together, and do it all!
Creating something together is the best way to share & ultimate way to learn!