What is the basic difference between the following import statements in a Django app?
import settings
and
from django.conf import settings
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Will import settings(.py) module of your Django project (if you are writing this code from the “root” package of your application, of course)
Will import settings object from django.conf package (Django’s provided files). This is important, because
UPDATE: if you want to define some own settings, see this part of the documentation