Spaces:
Running
Running
Beracles
commited on
Commit
·
188cb5c
1
Parent(s):
e8be25d
test4
Browse files- Dockerfile +1 -1
- myweb/firstapp/views.py +1 -1
Dockerfile
CHANGED
|
@@ -27,7 +27,7 @@ EXPOSE 7860
|
|
| 27 |
|
| 28 |
|
| 29 |
# start server
|
| 30 |
-
CMD python
|
| 31 |
|
| 32 |
|
| 33 |
# if using fastapi framework
|
|
|
|
| 27 |
|
| 28 |
|
| 29 |
# start server
|
| 30 |
+
CMD python manage.py runserver
|
| 31 |
|
| 32 |
|
| 33 |
# if using fastapi framework
|
myweb/firstapp/views.py
CHANGED
|
@@ -9,7 +9,7 @@ def index(request):
|
|
| 9 |
return HttpResponse("This is the first application of myweb.")
|
| 10 |
|
| 11 |
def root(request):
|
| 12 |
-
render(request,)
|
| 13 |
return HttpResponse("Welcome to myweb!")
|
| 14 |
|
| 15 |
|
|
|
|
| 9 |
return HttpResponse("This is the first application of myweb.")
|
| 10 |
|
| 11 |
def root(request):
|
| 12 |
+
render(request,"static/index.html")
|
| 13 |
return HttpResponse("Welcome to myweb!")
|
| 14 |
|
| 15 |
|