Python from Scratch - Creating a Dynamic Website

  Рет қаралды 855,631

Tuts+ Code

Tuts+ Code

Күн бұрын

Пікірлер: 287
@yassineattahri9603
@yassineattahri9603 10 жыл бұрын
I've been looking for months for a comprehensive tutorial like this one. Thank you very very much!
@Colstonewall
@Colstonewall 10 жыл бұрын
If you think this one is good (and comprehensive), you should check out Mike Hibbert's ch and django series. Far and away better and more comprehensive than this one.
@jamesmccafferty8869
@jamesmccafferty8869 7 жыл бұрын
Everything I needed to know for an upcoming project. Thanks so much! I'm especially glad you went over the set up on the server too. A lot of other tutorials neglect this part.
@pepe6666
@pepe6666 10 жыл бұрын
this is a great post. its cleared up a lot of the mystery around web apps. all thats left is to figure out how to get apache to talk to django
@ArdaIskender
@ArdaIskender 4 жыл бұрын
This is a solid documentary, I must say. Well prepared and helped me a lot, thank you for sharing.
@dlsber
@dlsber 7 жыл бұрын
Great tutorial! :) It is good to watch a tutorial that is not beginning from the very basics like "what is programming?". I also like that the process is shown from start to finish without an overwhelming amount of info, while still explaining the gist (not just "copy and paste these, and you will have a website"). I think you managed to highlight the main points: -what pieces one needs to create a website, what are their roles -how the pieces fit/ work together Thank you!
@AbdulMannan-rv5yx
@AbdulMannan-rv5yx 10 жыл бұрын
It is great!! I do not have any experience on python. I am PHP developer with symphony experience. It gave me some good idea what is django and how to start with you. Thank you very much for uploading such a nice video. It is very helpful for beginner
@Rajagopk
@Rajagopk 11 жыл бұрын
Fantastic tutorial. This is super presenttaion of a complete Django project. Since I already installed python and django and played with couple of projects/apps, I could appreciate this presenttaion more, This presentation has firmed me up for taking new work on Django. Thanks
@needmorebrain
@needmorebrain 9 жыл бұрын
Wow, great tutorial. Why would someone ever give you a thumb down for it? I find your instructions very useful!
@FnooneXnoname
@FnooneXnoname 11 жыл бұрын
i must tell you "you are very helpful man" really help me. thanks
@shamabbas
@shamabbas 9 жыл бұрын
Bunch of thanks! this series really helped me to understand basic python and django structure.
@eveakospokua
@eveakospokua 9 жыл бұрын
thank you so much for your videos. And if anyone is having problems getting this tutorial running in the python 2.7 and django latest version 1.8.2, check this out - 1. When setting up you url pattern you need to put in 'blog.views.home' not 'FirstBlog.blog.views.home' 2. When you change the settings.py file to point django to the app you have installed you need to put in 'blog' not 'FirstBlog.blog'."
@eveakospokua
@eveakospokua 9 жыл бұрын
proglearner got this off a post on stackoverflow
@eveakospokua
@eveakospokua 9 жыл бұрын
***** sent you details in your inbox.
@rajvardhandeshmukh3257
@rajvardhandeshmukh3257 9 жыл бұрын
+proglearner I am using Python 2.7.6 and django 1.9, I am on the very last step to get it to work. Can you brief a little bit more on installed app entry in settings.py please. Your help will be greatly appreciated.
@rajvardhandeshmukh3257
@rajvardhandeshmukh3257 9 жыл бұрын
+proglearner i'm getting an error" cannot import blog"-' no model blog to import from' even after following ur step 1, please elaborate about step 2
@何奇-m5v
@何奇-m5v 6 жыл бұрын
Hi, thanks for your great video. I have a question about the doc command you used at 7:30. #nankis-MacBook-Air:~ heqi$ doc -bash: doc: command not found. The computer told me the doc does not exist. What is a 'doc'? Is it used for open the Documents file? I am using python 3.7 and Django 2.1.
@nischitasadanand5180
@nischitasadanand5180 8 жыл бұрын
hey...Thanks for the such s great video...I have a question,what are the changes that i have to make so that i can view the webpage even on my phone or through any other devices??
@renegaed
@renegaed 12 жыл бұрын
I agree this tutorial is a little difficult for beginners but eventually as u get more familiar with development u will gravitate towards using a package manager such as homebrew over installation packages. they are far superior and give you much more flexibility.
@sntshkmr60
@sntshkmr60 9 жыл бұрын
You didn't put links in the description. :/
@karmadlaswinmlsk8997
@karmadlaswinmlsk8997 7 жыл бұрын
k
@evan.5967
@evan.5967 4 жыл бұрын
@@karmadlaswinmlsk8997 No.
@TheEndritv
@TheEndritv 11 жыл бұрын
Yeah. It looks like it but if you notice the top of the editor, you can see the file location bar. I don't know it that option is available in Sublime Text 2.
@meryemm9137
@meryemm9137 11 жыл бұрын
Can you plz answer the problem on 32:57. I am the 3rd one asking :). I am using Mac. "Hello i have a problem at 32:57 It says import error at no module named blog Im using win7. thanks for help"
@ev.c6
@ev.c6 9 жыл бұрын
Thanks for the video. Python looks like a great language once you get used to it, the problem is the setup, creating the application, starting it, etc, it is really frustrating. Many errors happen and things change a lot from version to version. I am using version 2.7.6 and things are a bit different from yours, for example syntaxes that are no longer used. It should be more simple to develop in this, like it is with Java using Eclipse or Netbeans. JDK + IDE and it's all working. No need to run commands on terminals or whatsoever. If it was as that I think more people would be interested. Anyway, I believe Python will get there one day and for now we just keep practicing and dealing with the frustration. :)
@ThePyrocorp
@ThePyrocorp 13 жыл бұрын
Don't get what you saying. I'm a beginner and I understood perfectly. Also that's the best Django video tutorial around. WORKED FOR ME!!!
@Flackon
@Flackon 11 жыл бұрын
Didn't you say not to run the django dev server in a production environment? How would we activate a production ready server?
@marcingaska9669
@marcingaska9669 6 жыл бұрын
It's good to know Symfony, Yaml and SQL because i don't need to watch previous episodes to understand that :) Everything these is so similar to each selves, espacially to Symfony.
@dashbyictfd
@dashbyictfd 12 жыл бұрын
Great tutorials, 1 question I have is can you use xampp for the MySql and if so how? Thanks
@dashbyictfd
@dashbyictfd 12 жыл бұрын
Is your manage.py in the first FirstBlog file then inside there is another FirstBlog file that has 4 files?
@erickli5282
@erickli5282 10 жыл бұрын
Very useful and powerful video for python beginners. Thanks very much for posting this!
@JacobMoen
@JacobMoen 13 жыл бұрын
This is the best Django tutorial I've seen. :)
@OfficialJakeCross
@OfficialJakeCross 10 жыл бұрын
Hey, thanks so much for this video. It taught me pretty much everything, aside from a few mishaps due to me using updated versions of things. But all in all, it was great. Thanks again.
@shubha07m
@shubha07m 8 жыл бұрын
This is just a magic ! Thank you very much! Great for a beginner like me!
@joesaad6864
@joesaad6864 9 жыл бұрын
Excellent video, very well presented and ideas are made clear.. Thanks!
@siddharrth2194
@siddharrth2194 10 жыл бұрын
is it possible to make the backend structure of the website on java, and the user interface of the website on python and then implement the java code on python with the front end?
@abdulshafy
@abdulshafy 11 жыл бұрын
Great tutorial man! Simple and clear.
@andrecardoso8950
@andrecardoso8950 10 жыл бұрын
I'm coding for 3 years now... I can do alot stuff on java, c++, php so on... but only I start get some interest on Python. This video made love the language. Thank you so much, I'm ready to do some real fucking shit :D Edit: ... made me love the language AND learning it vey well!
@cordyceps9180
@cordyceps9180 6 жыл бұрын
also using mysql v8 like i do can cause some issues with sh2 encryption. The plugin doesnt get called properly, which means the connector needs te be rewritten. Since i dont want to do that its best if you disable sh2 from the mysql workbench or choose the conventional security option while installing mysql. I think a new connector that is sha2 compatible will be here shortly. Untill then just use the md5 hash encryption that's standard.
@Rajagopk
@Rajagopk 11 жыл бұрын
Hello Giles: Fantastic tutorial. One observation though. The url works only if I have it as url(r'^$', 'blog.views.home', name='home') without the FirstBlog.blog.... Same is the case with the INSTALLED_APPS. In your tutorial you use FirstBlog.blog and it works. Any reason? Thanks
@tylermeyer424
@tylermeyer424 7 жыл бұрын
Any chance we could get this tutorial but that is more recent since python3 is in the now?
@StocksDoc
@StocksDoc 11 жыл бұрын
THANKS! . . . awesome presentations . . thanks for all of that hard work.
@savingapollomusic
@savingapollomusic 11 жыл бұрын
wget isn't working for me it's saying htt-p (KZbin wouldn't allow it as one word) is a syntax error? I've tried doing this in both PyShell, Python Command Line, and Windows' Command Prompt?
@G.e.o.r.g.e
@G.e.o.r.g.e 11 жыл бұрын
Can you post a link for to download the folders? And congratulations for your work, thanks a lot
@Ohhimark100
@Ohhimark100 9 жыл бұрын
Thank you so much, I can't thank you enough. Had little issues cause I was using Django 1.9 But no biggie.... Thanks a lot.
@mparvaiz100
@mparvaiz100 7 жыл бұрын
Super cool - Excellent tutorial
@qwe123727
@qwe123727 7 жыл бұрын
Django runs using WSGI server. You did not show the WSGI server installation & configuration. Did I miss something?
@elmastermaestr
@elmastermaestr 9 жыл бұрын
Hello, can we pass some parameters without writing them in the URL, like a POST from PHP? Like a form?
@eritert
@eritert 9 жыл бұрын
Hello, thank you for the tutorial. Since it's a bit outdated, I made this tut work for me by finding a vagrant python3 django1.7 box on github. Took a bit to connect the dots but I think I learned a lot of extra info in the process.
@bijayakarki4800
@bijayakarki4800 6 жыл бұрын
hey man where can i get your earlier python tutorials .
@MarkWeiman
@MarkWeiman 11 жыл бұрын
You need to install the WGET package, Cygwin is a bare POSIX terminal and doesn't include anything. I'd recommend you use a VM with debian or Ubuntu in it, or just dual boot (trust me, setting up a linux system is good for you).
@samismx
@samismx 11 жыл бұрын
Wow. Definitely a lot of information in this video.
@viveknimmagadda356
@viveknimmagadda356 6 жыл бұрын
My database is preset to sqlite3. So how can I change it to mysql, the database in settings is as follows "DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } }" So how can i change it to mysql?
@roberthillier80
@roberthillier80 10 жыл бұрын
That was a very good tutorial - thanks Giles.
@sebastian1998j
@sebastian1998j 11 жыл бұрын
is it possible to make the webdesign in django or does it only work with css
@sadnessinmylife
@sadnessinmylife 11 жыл бұрын
Yes, I installed Ubuntu about a week ago along with my windows. In fact I am using it right now. The only trouble I am having is when I download ubuntu using the wget command, i don't know where it stores the tar.gz file, i can try again by downloading it from the django website link manually and putting it into the Downloads folder and then trying to tar -xzvf it.
@daadaadaa4
@daadaadaa4 12 жыл бұрын
All worked great following your tutorial until I tried opening the 'hello world' page in my browser. I get an error: Exception Type: ImportError, Exception Value: No module named blog, Exception Location: filepath/importlib.py in import_module line 35. I can't figure out what the problem is here. Help?
@ZantoshGaming
@ZantoshGaming 11 жыл бұрын
I had the same problem. After reading, I found that Django 1.5.1 has some directory changes. Earlier, the convention was to use ProjectName.AppName.views.home in the urls.py. Change that to just AppName.views.home. In your case, it would be just blog.views.home instead of FirstBlog.blog.views.home.
@bsphil
@bsphil 12 жыл бұрын
I had the same problem. In Django 1.4.2, it created a "firstblog" folder inside the original "firstblog" folder. So your base "firstblog" directory probably looks like this: blog/ firstblog/ manage.py Move "blog" inside "firstblog". But that doesn't quite fix it. Edit "views.py" in the "blog" folder and remove 'blog.' from the "from" statement. That line should now read as: from models import posts This now works for me.
@mats852
@mats852 11 жыл бұрын
Thank you for this quick tutorials, it helped a lot !
@ZantoshGaming
@ZantoshGaming 11 жыл бұрын
Thank you, Thank you, Thank you! Excellent Tutorial, one of the finest on the internet :)
@ChristofferEricsater
@ChristofferEricsater 7 жыл бұрын
If you learn command line, Github and Python, is that enough to work professionally or do you need to learn HTML, CSS and Javascript as well? I am a bit confused... I like Python but it seems like one need to learn so much more to be able to work professionally, but perhaps I am wrong? Please clear things up for me :)
@jingxingshi9290
@jingxingshi9290 9 жыл бұрын
Hi, I think the django (my version 1.9.2)changed a lot when you start a new project. The hierarchy of the folder and files are different. As a consequence when going though your tutorial, I got problem of table not existing during the using the blog_posts to pass the data. And also I need to modify the setting file as well. I check the mysql database, there is only one django_migrations show up, because the django_migrations is in the blog folder. by the way there seems no syncdb at current version. How can I fix it.
@Floyd1482
@Floyd1482 9 жыл бұрын
A link to a playlist would be amazing, Great job tho :)
@gbo2k69
@gbo2k69 13 жыл бұрын
My 10.7.2 OS X Lion doesn't have wget by default. I tried to use curl, but it wasn't working, so I just downloaded the tarball in the browser.
@TheEndritv
@TheEndritv 11 жыл бұрын
What Editor / IDE are you using?
@AdrenalineXT9001
@AdrenalineXT9001 11 жыл бұрын
Hi, I've been following your tutorial and everything was working smoothly untilI I ran python2.6 manage.py runserver. It gave me this error message: File "manage.py", line 8, in module from django.core.management import execute_from_command_line ImportError: No module named django.core.management I've been searching for hours how to fix and with no luck. Any advice? It works when I just run python manage.py runserver (without the 2.6)
@MyStuff774
@MyStuff774 11 жыл бұрын
Excellent video mate
@anirudhkumar4918
@anirudhkumar4918 8 жыл бұрын
What's that you said to use for Windows command
@solmithras7527
@solmithras7527 6 жыл бұрын
I don't get why my server is slow as hell, taking a minute to load an empty page with a few text. I'm doing only the things in this basic video, while the server rendering is quite fast here. I've searched for a solution for a while and it seems nothing works, making it impossible for me to learn rails.
@jemanthi
@jemanthi 12 жыл бұрын
I tried with Django 1.4.2 version. The sample code works for me. But i did small changes on url.py and settings.py (i think)file. Removed project name from codes .. example code in urls.py url(r^'$','blog.views.home',name='home'),.
@cooool49
@cooool49 12 жыл бұрын
i just installed MYSQL server and MySQLdb and everything is ok thank you again :)
@savagenoble269
@savagenoble269 9 жыл бұрын
What the advantage of using Django's abstracted database interface methods? Is there some additional security built in?
@ashtonwest007
@ashtonwest007 6 жыл бұрын
I successfully seemed to have created a project however the "ls" function won't call the files, help?
@jav1024
@jav1024 12 жыл бұрын
i did everything right and I got the server running and all but I can't see my site or app on any browser.... Any help?
@MexicanLunchTable
@MexicanLunchTable 13 жыл бұрын
What text editor is that?
@MomoShow9
@MomoShow9 12 жыл бұрын
I like the ready administration back end I hope there is php framework like this
@wonjaehwang7670
@wonjaehwang7670 8 жыл бұрын
What keyboard do you use
@Juanbaez_
@Juanbaez_ 7 жыл бұрын
can you use this on ubuntu? You are using mac, can I use this commands on ubuntu?
@TuxGnome
@TuxGnome 12 жыл бұрын
But even you installed it on your remote server, its still in development mode (testind mode) please show us how you connect this to apache for example
@padmaksharoy7883
@padmaksharoy7883 9 жыл бұрын
hi, i have python and django installed on a linux server.Please tell me how to launch my webpage from there.If its through apache, kindly guide me how to do it.Thanks.
@SreejithSR
@SreejithSR 11 жыл бұрын
Great Tutorial. Really good for beginners.
@AmirSibat
@AmirSibat 9 жыл бұрын
***** im using mongodb instead of sql , how should i do it?
@FREEBASS
@FREEBASS 12 жыл бұрын
Has anyone ever told you, You sound like an older Stewie Griffin? :D awesome tutorial BTW i learned alot...
@TYEGaming
@TYEGaming 7 жыл бұрын
Just on a mac or windows too?
@maa8402
@maa8402 7 жыл бұрын
people in the comment section 90% of them seems like are really at very beginner point hh good job
@jacksoncn
@jacksoncn 6 жыл бұрын
has it been updated to work with 3 since?
@JuakoVergara
@JuakoVergara 11 жыл бұрын
Thanks for this great video! i've learn a lot with it! you are awesome!
@jamesshaw89
@jamesshaw89 8 жыл бұрын
Fantastic tutorial, thanks!
@rramyr1
@rramyr1 11 жыл бұрын
I am trying to run the manage.py. I am not able to use python2.6 manage.py runserver command. please help. I also tried python manage.py runserver and get error.
@duckducknoo
@duckducknoo 7 жыл бұрын
having trouble with easy-install and mysql-python. any links please
@MaK3iTCraZy
@MaK3iTCraZy 11 жыл бұрын
Hello i have a problem at 32:57 It says import error at no module named blog Im using win7. thanks for help
@Ather178
@Ather178 7 жыл бұрын
Thanks a lot for sharing this! Much appreciated! :)
@Romanticoneable
@Romanticoneable 6 жыл бұрын
Hey man are you still teaching? I have been trying to find you but not even your site exists
@djsully2369
@djsully2369 11 жыл бұрын
good vid. im stuck at the syncdb stage. I do not receive errors but the tables created in models.py are not created (checked in phpmyadmin). Any ideas lads and laddettes :)
@apfi
@apfi 11 жыл бұрын
Same problem here. (Great tutorial by the way!)
@fdmg
@fdmg 11 жыл бұрын
you most likely need to edit your settings.py file: Add the tables under the INSTALLED_APPS section.. then re-run syncdb.
@AniMorbus
@AniMorbus 10 жыл бұрын
Awesome tutorial!
@SuperNaveed101
@SuperNaveed101 11 жыл бұрын
Awesome tutorial!!
@adamwylde8255
@adamwylde8255 11 жыл бұрын
Could someone please tell me what the previous four lessons are?
@fdmg
@fdmg 11 жыл бұрын
you can find the others over at blip dot tv. google "Python from scratch".
@kyle1798
@kyle1798 11 жыл бұрын
Thank you for your time. Very helpful!
@sadnessinmylife
@sadnessinmylife 11 жыл бұрын
wget is a command for linux machines, i don't have a linux machine either and i downloaded cygwin terminal but it still does not work.
@winnersacademybest
@winnersacademybest 10 жыл бұрын
stuck with "no module named blog" (32:32)
@BrewerFR
@BrewerFR 10 жыл бұрын
ditto. no module name blog error when opening up the index page
@BrewerFR
@BrewerFR 10 жыл бұрын
yo. In urls.py, change 'FirstBlog.blog.views.home' to 'blog.views'home'. That should clear up the error.
@BrewerFR
@BrewerFR 10 жыл бұрын
if you get an error about render_to_response, make sure when you try to import render, you're typing 'from django.shortcuts import render_to_response'
@sayedahmadnaweed1
@sayedahmadnaweed1 9 жыл бұрын
Honestly It was extremely helpful. now, I got what does MVC or by your definition MTC mean.
@Ehehcho
@Ehehcho 11 жыл бұрын
Excellent video, thank you!
@utkarshasthana3853
@utkarshasthana3853 8 жыл бұрын
What is the web framework that works with python 3.5
@utkarshasthana3853
@utkarshasthana3853 8 жыл бұрын
+Benjamin Zimmermann Got it thanks!
@cooool49
@cooool49 12 жыл бұрын
how can i install MYSQL on windows and using it with django ?
@mhxxd4
@mhxxd4 12 жыл бұрын
My mushroom tip has been bustin all kinds of nuts in php groupies all day!!!
@kingclasher1513
@kingclasher1513 7 жыл бұрын
Dude... i want to create web site and make it people play my game on it my game is on python how to make it?
Transforming Code into Beautiful, Idiomatic Python
48:51
Next Day Video
Рет қаралды 1 МЛН
I built 10 web apps... with 10 different languages
14:23
Fireship
Рет қаралды 1,7 МЛН
БАБУШКА ШАРИТ #shorts
0:16
Паша Осадчий
Рет қаралды 4,1 МЛН
Vampire SUCKS Human Energy 🧛🏻‍♂️🪫 (ft. @StevenHe )
0:34
Alan Chikin Chow
Рет қаралды 138 МЛН
The Lost World: Living Room Edition
0:46
Daniel LaBelle
Рет қаралды 27 МЛН
번쩍번쩍 거리는 입
0:32
승비니 Seungbini
Рет қаралды 182 МЛН
What Can You Do with Python? - The 3 Main Applications
11:30
CS Dojo
Рет қаралды 3,6 МЛН
x86 Assembly: Hello World!
14:33
John Hammond
Рет қаралды 1,4 МЛН
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 361 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 170 М.
PYTHON vs JAVASCRIPT // What I Would Choose as a Beginner…
12:48
Internet Made Coder
Рет қаралды 334 М.
How I Would Learn To Code (If I Could Start Over)
13:43
Namanh Kapur
Рет қаралды 7 МЛН
How to OVER Engineer a Website // What is a Tech Stack?
11:20
Fireship
Рет қаралды 2,6 МЛН
An introduction to Shader Art Coding
22:40
kishimisu
Рет қаралды 1 МЛН
How I would learn to code (if I could start over)
13:27
Tina Huang
Рет қаралды 3,4 МЛН
БАБУШКА ШАРИТ #shorts
0:16
Паша Осадчий
Рет қаралды 4,1 МЛН