You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -77,36 +77,32 @@ CREATE DATABASE `djangoblog` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8
77
77
78
78
Run the following commands in Terminal:
79
79
```bash
80
-
./manage.py makemigrations
81
-
./manage.py migrate
82
-
```
83
-
84
-
**Attention: ** Before you using `./manage.py`, make sure the `python` command in your system is towards to `python 3.6` or above version. Otherwise you may solve this by one of the two following methods:
85
-
- Modify the first line in `manage.py`, change `#!/usr/bin/env python` to `#!/usr/bin/env python3`
86
-
- Just run with: `python3 ./manage.py makemigrations`
80
+
python manage.py makemigrations
81
+
python manage.py migrate
82
+
```
87
83
88
84
### Create super user
89
85
90
86
Run command in terminal:
91
87
```bash
92
-
./manage.py createsuperuser
88
+
python manage.py createsuperuser
93
89
```
94
90
95
91
### Create testing data
96
92
Run command in terminal:
97
93
```bash
98
-
./manage.py create_testdata
94
+
python manage.py create_testdata
99
95
```
100
96
101
97
### Collect static files
102
98
Run command in terminal:
103
99
```bash
104
-
./manage.py collectstatic --noinput
105
-
./manage.py compress --force
100
+
python manage.py collectstatic --noinput
101
+
python manage.py compress --force
106
102
```
107
103
108
104
### Getting start to run server
109
-
Execute: `./manage.py runserver`
105
+
Execute: `python manage.py runserver`
110
106
111
107
Open up a browser and visit: http://127.0.0.1:8000/ , the you will see the blog.
0 commit comments