Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ Everything you do here is contained within this one codespace. There is no repos

To run this application:

```
```python
python manage.py runserver
```
1 change: 0 additions & 1 deletion hello_world/core/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from django.http import HttpRequest
from django.shortcuts import render

def index(request):
Expand Down
17 changes: 9 additions & 8 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
import os
import sys

try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc


def main():
"""Run administrative tasks."""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hello_world.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)


Expand Down