Skip to main content
4 votes
Accepted

Does anyone know how to use Django on CS50 IDE?

Type python manage.py runserver 0.0.0.0:8080 and start the server. Then click the web server option in the IDE. After going to the site, remove the -beta from the url and press enter. It will show ...
Vsjain's user avatar
  • 1,016
2 votes
Accepted

CS50W Project Wiki search function

I know this is late but if it helps somebody. The issue in your code is indentation. The moment the loop find the first matching substring it renders the page. Left indenting it by two levels should ...
Dineth Hettiarachchi's user avatar
2 votes
Accepted

How do we delete existing flight in sqlite via Django?

I was having the same problem. What worked for me was going back into Django shell and entering the following command. Flight.objects.filter(id=1).delete() Of course if there is more than one flight ...
Damian Danner's user avatar
1 vote
Accepted

CS50W Project 2 Commerce - Missing Button

At least one problem is the <select> element is not closed (ie </select>). Consider validating the html as with Nu HTML Checker. An easy way is right-click on the page and "View ...
DinoCoderSaurus's user avatar
1 vote
Accepted

Edit Function Help - CS50 Web Project1 Wiki

In the entry page, at the end you are specifying a url which should take you to the edit page. But instead it reloads the entry page as the path is 'entry' not 'edit'. If you do this small change then ...
Vsjain's user avatar
  • 1,016
1 vote

Help with Search Bar - Wiki Project1 CS50 Web Django

Nevermind, I have been able to figure it out. I had to use a GET request.
user14567126's user avatar
1 vote

How to get markdown info to HTML

A possible method has been mentioned in the Hints part. By default, when substituting a value in a Django template, Django HTML-escapes the value to avoid outputting unintended HTML. If you want to ...
Vsjain's user avatar
  • 1,016
1 vote

CS50W Django Project1 Wiki - Textarea issue

I hit the same issue and found the solution. I thought I'd post it here in case others hit the same problem. The solution is here: https://stackoverflow.com/questions/62903909/django-contentfile-...
Doug F's user avatar
  • 11
1 vote
Accepted

Django 127.0.0.1 refused to connect for the default Django Webpage

Type python manage.py runserver 127.0.0.1:8080 in the terminal. At the top right corner of the terminal, you will see a link. Click on that. Copy the link. Then in the settings.py file of the app, go ...
Vsjain's user avatar
  • 1,016

Only top scored, non community-wiki answers of a minimum length are eligible