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
2. Create virtual environment and install all requirements or just install the requirements directly.
29
31
30
-
```pip install -r requirements.txt```
32
+
```
33
+
pip install -r requirements.txt
34
+
```
31
35
32
36
or
33
37
34
-
```virtualenv myproject```
35
-
```myproject\Scripts\activate```
36
-
```pip install -r requirements.txt```
38
+
```
39
+
virtualenv myproject
40
+
myproject\Scripts\activate
41
+
pip install -r requirements.txt
42
+
```
37
43
38
44
3. Run setup.py to rename your project
39
45
40
-
```python setup.py < YOUR_PROJECT_NAME >```
46
+
```
47
+
python setup.py < YOUR_PROJECT_NAME >
48
+
```
41
49
42
50
4. Create migrations and apply
43
51
44
-
```python manage.py makemigrations```
45
-
```python manage.py migrate```
52
+
```
53
+
python manage.py makemigrations
54
+
python manage.py migrate
55
+
```
46
56
47
57
5. Create a superuser, provide the details when prompt
48
58
49
-
```python manage.py createsuperuser```
59
+
```
60
+
python manage.py createsuperuser
61
+
```
50
62
51
63
6. Run population script, you can skip this step if you do not want dummy data to be populated
52
64
53
-
```python populate.py < NO_OF_ENTRIES >```
65
+
```
66
+
python populate.py < NO_OF_ENTRIES >
67
+
```
54
68
55
69
7. Now everything is done, start the application and type localhost:8000/ in your browser to see the application running
56
70
57
-
```python manage.py runserver```
71
+
```
72
+
python manage.py runserver
73
+
```
58
74
59
75
Hurray, your project is running and you are way ahead of your competitors, start modifying the already provided templates and code files to customize your project. Best of luck from DHS Team.
0 commit comments