Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

changing database of django

# settings.py

...

# Database
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases

DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.mysql',
            #'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
            'OPTIONS' : {
                'read_default_file': '/etc/mysql/my.cnf',
                }
            }
        }

...
Comment

PREVIOUS NEXT
Code Example
Python :: numba for python 
Python :: activate python venv in windows 
Python :: python append list to list 
Python :: how to make bak files with python 
Python :: plotly dash datatable column width 
Python :: Python3 boto3 put object to s3 
Python :: python get chars among quotation marks 
Python :: Getting the string and the regex of the matched object 
Python :: __floordiv__ 
Python :: find out length of a string in pixels python 
Python :: use python to download youtube playlist mp3 
Python :: scipy.optimize.curve_fit 3D 
Python :: find daily aggregation in pandas 
Python :: create a list of sequential numbers in python 
Python :: use rclone on colab 
Python :: get index of item in list 
Python :: keras functional api embedding layer 
Python :: django query string route 
Python :: re module python 
Python :: User.objects.first() get specific id user in django 
Python :: what is fn.call 
Python :: how to stop python for certain time in python 
Python :: numpy subtract 
Python :: python get substring 
Python :: def create(self validated_data) 
Python :: python - subtracting dictionary values 
Python :: python selenium check if browser is open 
Python :: ski learn decision tree 
Python :: all python statements 
Python :: open python file with read write permissions 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =