Questions tagged [cs50-web-django]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

How can I receive POST data sent from the React frontend in Django Rest Framework using serializer?

As you can see when I print the serializer by print(serializer) statement, the output there is = AddCompanySerializer(data={'name': 'Nestle', 'est': '1866', 'org': 'Switzerland'}): name = CharField(...
0
votes
1answer
22 views

CS50 web - Problem 1, wiki

I'm confused by paths in Django. In the source code for the 'Wiki' problem, the file "wiki/urls.py" has this code (1) in it: urlpatterns = [ path('admin/', admin.site.urls), path('', ...
0
votes
0answers
43 views

CS50 Web Wiki Project Edit Form adding extra lines to textarea

Everything is working properly in terms of editing and redirects, however there is a strange occurence where multiple extra empty lines are added between each line of the markdown content everytime ...
0
votes
1answer
203 views

Edit Function Help - CS50 Web Project1 Wiki

I've been having trouble with the edit function for the wiki project1. So far I've tried many different approaches but nothing has worked. I have the "edit" button on every entry page of the ...
1
vote
2answers
61 views

How to get markdown info to HTML

Question from Project 1 in CS50W I'm stuck trying to get the markdown info from files to my HTML. I manage to get the markdown info into a HTML string, but when I input it to my HTML I get the same ...
0
votes
0answers
105 views

Running web applications (Django and/or Flask) on CS50 IDE

Hope you all are doing great. Had a quick question about the CS50 IDE and running web applications on it. One thing I noticed when running my web applications on CS50 IDE either by using "python ...
0
votes
1answer
226 views

CS50W Django Project1 Wiki - Textarea issue

I got stuck at completing Wiki assignment because of strange behaviour of textarea in form, needed for creating and editing entries. Everytime user saves the entry, for each line of entered text there ...
0
votes
0answers
75 views

Django form does not render in html template

so I've been trying to render a django form in an html template for about two hours now and I can't seem to get it to work. Any one with an idea or solution to this should kindly share, thanks :) Here'...
0
votes
0answers
116 views

how do I perform a search

This is project one for wiki and I am stuck this is my last thing to do. below are screenshots of the views.py, util.py and template. We are suppose to use the functions from util.py(This is the last ...
0
votes
0answers
314 views

CS50 Web 2020, Project 1 - Wiki, CSS not working

I'm currently using Django as explained in cs50w 2020 lecture 3. Under the static folder inside encyclopedia directory is the styles.css. This was in the distro code and there is already some styles ...
0
votes
1answer
126 views

CS50Web python. I can't get a new entry to save and show on the homepage of my wiki project. I am using Django with python

I can't get my code to save a new entry and return an error message if entry already existed. its just the views.py I can't figure out help please. code below