Skip to content

Commit 4e5a5aa

Browse files
authored
Update README.md (update installation method)
1 parent 65e5f8b commit 4e5a5aa

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,29 @@ This requires [Python](https://www.python.org/) v3.8+ and [Django](https://www.d
3131
pip install -r requirements.txt
3232
```
3333

34-
Install the dependencies and start the server.
34+
### Add your database name (change settings.py file)
35+
36+
```bash
37+
DATABASES = {
38+
'default': {
39+
'ENGINE': 'django.db.backends.mysql',
40+
# 'NAME': BASE_DIR / 'db.sqlite3',
41+
'NAME': 'newemp', # add you database name (schema name eg: newemp)
42+
'USER': 'root',
43+
'PASSWORD': 'root',
44+
'HOST': 'localhost',
45+
'PORT': '3306'
46+
}
47+
}
48+
```
49+
50+
### Update your database (By Applying migrations)
51+
52+
```bash
53+
python manage.py migrate
54+
```
55+
56+
### Install the dependencies and start the server.
3557

3658
```bash
3759
python manage.py runserver

0 commit comments

Comments
 (0)