#35634: Add Detailed Steps for Setting Up MySQL in Django Tutorials
-------------------------------+-----------------------------------------
     Reporter:  Jerome Cagado  |                     Type:  New feature
       Status:  new            |                Component:  Documentation
      Version:  5.0            |                 Severity:  Normal
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+-----------------------------------------
 The current tutorial in "Writing your first Django app, part 2" lacks
 detailed, step-by-step instructions for setting up Django with a MySQL
 database. Specifically, there are missing steps for installing MySQL
 dependencies and configuring the `DATABASES` setting in `settings.py`.

 **Steps to Reproduce:**
 1. Follow the tutorial in "Writing your first Django app, part 2".
 2. Notice that detailed instructions for setting up MySQL, such as
 installing dependencies and configuring the `DATABASES` setting in
 `settings.py`, are not provided.

 **Expected Behavior:**
 The tutorial should include:
 - Detailed steps for installing MySQL dependencies.
 - Clear instructions for configuring the `DATABASES` setting in
 `settings.py` for MySQL.

 **Actual Behavior:**
 The tutorial currently lacks these steps, making it challenging for users
 who want to set up Django with MySQL.

 **Proposed Solution:**
 Update the tutorial to include the following steps:
 1. Install MySQL and `mysqlclient`:
     ```bash
     pip install mysqlclient
     ```
 2. Configure the `DATABASES` setting in `settings.py`:
     ```python
     DATABASES = {
         'default': {
             'ENGINE': 'django.db.backends.mysql',
             'NAME': 'mydatabase',
             'USER': 'mydatabaseuser',
             'PASSWORD': 'mypassword',
             'HOST': 'localhost',
             'PORT': '3306',
         }
     }
     ```

 **Additional Information:**
 I followed the contributing guidelines as outlined in the
 [CONTRIBUTING.rst
 file](https://github.com/django/django/blob/main/CONTRIBUTING.rst).
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35634>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070190f0810732-13f66dee-396e-4ccc-8123-e47aef884da2-000000%40eu-central-1.amazonses.com.

Reply via email to