O'Reilly logo

Learning Django Web Development by Ratan Kumar, Sanjeev Jaiswal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up the database

In this section, we will start working with code for the first time. Therefore, we will have to choose a source code editor to enter and edit code. You can use any of your favorite source code editors. As mentioned in the previous section, we have used the Sublime text editor to write code for this book.

OK, now that you have a source code editor ready, let's open settings.py in the project folder and see what it contains:

# Django settings for django_mytweets project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', # 'mysql', 'sqlite3' or 'ado_mssql'. DATABASE_NAME = '' # Or path to database file # if ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required