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

Django settings for the mytweets project

Let's update the settings.py file with the minimal settings that we need for our mytweets project. Before starting our mytweets application we will add many settings which we will see with the following changes. For more information on this file, visit https://docs.djangoproject.com/en/1.6/topics/settings/.

For the full list of settings and their values, visit https://docs.djangoproject.com/en/1.6/ref/settings/.

Update the settings.py file of our project with the following content:

# Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/ ...

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