import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) PROJECT_APP_PATH = os.path.dirname(os.path.abspath(__file__)) PROJECT_APP = os.path.basename(PROJECT_APP_PATH) BASE_DIR = os.path.dirname(PROJECT_APP_PATH) DEBUG = False USER_ID = '123456' PASSWORD = '123456' ################## # LOCAL SETTINGS # ################## # Allow any settings to be defined in local_settings.py which should be # ignored in your version control system allowing for settings to be # defined per machine. # from local_settings import * try: from local_settings import * except ImportError: pass