What are the basics of Python and Django, and write a program to add an underscore in a string.
Discuss Python data types, functions, collections, and Django's project, app, URL, view, and model structure. Then implement add_underscores(s), which returns a new string with _ between every pair of adjacent characters.
Input: one string s. Output: the transformed string. Preserve character order, including spaces and existing underscores.
def add_underscores(s):