diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 66fafe9..74b5d4d 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -17,6 +17,10 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Set up MySQL + run: | + sudo /etc/init.d/mysql start + mysql -uroot -proot -hlocalhost -P3306 -e "create database contrihub23_db;" - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 with: diff --git a/contrihub/settings.py b/contrihub/settings.py index e06ef89..271b439 100644 --- a/contrihub/settings.py +++ b/contrihub/settings.py @@ -74,9 +74,9 @@ # Database # https://docs.djangoproject.com/en/3.2/ref/settings/#databases -DB_NAME = config('DB_NAME', default='contrihub') -DB_USER = config('DB_USER') -DB_PASSWORD = config('DB_PASSWORD') +DB_NAME = config('DB_NAME', default='contrihub23_db') +DB_USER = config('DB_USER', default='root') +DB_PASSWORD = config('DB_PASSWORD', default='root') DB_HOST = config('DB_HOST', default='localhost') DB_PORT = config('DB_PORT', default='3306')