CS50W Wiki project: How to start the Django server after uploading distribution code and installing/activating dependencies through requirements.txt

Source: https://cs50.harvard.edu/web/2020/projects/1/wiki/

After uploading the distribution code into Codespace and installing Python and third party dependencies (including first of all of course Django) through requirements.txt, it is needed to run:

pip install -r requirements.txt

Next step would be to start Django server?

How to start this. I am not sure which of the two to follow:

First way:

Second way (suggested by an AI tool):

Start the Django Development Server: Use the Django manage.py script to start the development server. Run:

python manage.py runserver

Ran this command:

$ python manage.py runserver

Getting this error on terminal:

@SplendidDigital ➜ /workspaces/wiki (main) $ $ python manage.py runserver
bash: $: command not found
@SplendidDigital ➜ /workspaces/wiki (main) $

[https://www.canva.com/design/DAGM5EZBhe0/1KgOlIOUpY5FElW8EFtHaA/edit?utm_content=DAGM5EZBhe0&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton](Ran this command: $ python manage.py runserver Getting this error on terminal: @SplendidDigital ➜ /workspaces/wiki (main) $ $ python manage.py runserver bash: $: command not found @SplendidDigital ➜ /workspaces/wiki (main) $ https://www.canva.com/design/DAGM5EZBhe0/1KgOlIOUpY5FElW8EFtHaA/edit?utm_content=DAGM5EZBhe0&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton)

Actually I was in the wrong directory. After cd wiki, applied the command as in wiki directory manage.py exists.

1 Like