Skip to content

Commit b62bb1c

Browse files
Update superuser.md
1 parent 055c270 commit b62bb1c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

superuser.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
1+
### Create ur project
12
```python
23
django-admin startproject myproject
34
```
45
# Or
56
```python
67
python -m django startproject mysite
78

9+
```
10+
### Create Ur app
11+
```python
12+
django-admin startapp myapp
813
```
914

10-
15+
### makemigrations is a management command
1116
```python
1217
python manage.py makemigrations
1318

1419
```
1520

21+
22+
migrate is a management command
1623
```python
1724
python manage.py migrate
1825
```
@@ -24,14 +31,18 @@ python manage.py runserver
2431
python manage.py createsuperuser
2532
```
2633

34+
## run your server
2735

2836
```python
2937
python manage.py runserver
3038

3139
```
40+
### Use below url /admin with current localhost
3241
```python
3342
Use thsis url http://127.0.0.1:8000/admin
3443
```
44+
45+
3546
### output
3647
```python
3748

0 commit comments

Comments
 (0)