django 实战3 simpleui

pip3 install django-import-export
pip3 install django-simpleui

pip3 install mysqlclient

python3 manage.py makemigrations

python3 manage.py migrate

python3 manage.py createsuperuser

django-admin.py startapp app_name
 

 

DATABASES = {
    # 'default': {
    #     'ENGINE': 'django.db.backends.sqlite3',
    #     'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    # }
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'jpdata1',
        'HOST': '127.0.0.1',
        'USER': 'root',
        'PASSWORD': '123456',
        'PORT': '3306',
    }
}

 

posted on 2019-05-16 10:09  HOT SUMMER  阅读(2760)  评论(0编辑  收藏  举报

导航