Python from Scratch - Creating a Dynamic Website

Tuts+ Code · 856K views · 2011 · 59:58

Open on YouTube

Web developmentPython, Ruby & scripting languagestutorialdated

Why Stack Overflow recommends it

Stack Overflow users cite it as the tutorial they were following when they hit Django, MySQL or deployment problems, and occasionally as a reference for template layout.

Recommended by 0 people across 0 different months, 2012 to 2017.

What it is

A one-hour Tuts+ Code tutorial, the capstone of a Python from Scratch series, that builds a dynamic blog-style website using Python and Django with a MySQL database. It builds on the earlier lessons in the series and walks through project setup, models, views, templates and the admin.

What people said

Cites lakshmen · 2012-06 · Stack Overflow · on “Running mysql database linked to my Django Project”

Possible Duplicate: Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist [LINK] I was watching the Python From Scratch ( [this video] ) and was trying to run mysql database to the django project and faced some problems I typed mysqld to get mysql database running. The error msg i faced is: InnoDB: Apply batch completed 120604 12:02:05 InnoDB: Waiting for the background threads to start 120604 12:02:06 InnoDB: 1.1.8 started; log sequence number 1595675 120604 12:02:06 [Note] Server hostname (bind-address): '(null)'; port: 3306 120604 12:02:06 [Note] - '(null)' resolves to '0.0.0.0'; 120604 12:02:06 [Note] - '(null)' resolves to '::'; 120604 12:02:06 [Note] Server soc

Cites user1834437 · 2014-02 · Stack Overflow · on “Changing Admin Templates - Django tutorial 2”

Considering the second part of your question and according to this [this video] the safest part for your templates is to create a templates dir under your projects main directory (e.g. blog ). As for the first part i am not sure.

Cites yasu · 2016-03 · Stack Overflow · on “Django's installation failed on AWS”

I got an error when I tried to do runserver Django manager.py on AWS. * I watched tutorial [this video] When I run sudo python2.7 manage.py runserver , I get the following error message: [ec2-user@ip- *** FirstBlog]$ python manage.py runserver Unhandled exception in thread started by <function wrapper at 0x7fd788c07398> Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 226, in wrapper fn(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run autoreload.raise_last_exception() File "/usr/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 249,

Cites Raghav Gupta · 2017-01 · Stack Overflow · on “Unable to show mysql database on a basic Django based website”

I've been following this tutorial: [this video] to work on creating a basic dynamic website. I managed to create and test for the database on the mysql server. But I'm unable to reproduce that data on the webpage. Following are the codes for files I had to edit: The views.py file : from django.shortcuts import render_to_response from blog.models import posts def home(request): entries = posts.objects.all()[:10] return render_to_response('index.html',{'posts' : entries}) The url.py has the following: from django.conf.urls import url from django.contrib import admin from blog import views urlpatterns = [ url(r'^$', views.home, name='home'), ] The models.py file has the following code from __future_