Questions tagged [cs50-web-django]
The cs50-web-django tag has no usage guidance.
11 questions
0
votes
0
answers
7
views
CS50W project 4 Network with React
I'm trying to implement project 4 Network in Django and React, I created a react app and I downloaded the distribution code for Django.
Now I'm stuck at using fetch and how make a call from the ...
0
votes
0
answers
11
views
Images uploaded path in django
In a class named Listing in models.py, I've mentioned
img = models.ImageField(upload_to="uploads")
The uploaded images are uploaded in directory called uploads.
and in listing.html i've ...
1
vote
1
answer
144
views
CS50W Capstone Project: Tools I Am Allowed to Use
It is mandatory in the project description to use django for the backend and Javascript in the frontend of my project. The course lessons introduce us to React and Bootstrap libraries.
Can I also use ...
0
votes
1
answer
37
views
What do we mean by "close" auction.?
In the Project, one of the objectives is:
If the user is signed in and is the one who created the listing, the user should have the ability to “close” the auction from this page, which makes the ...
0
votes
0
answers
175
views
cs50web project 4 network - "Edit" feature - how to execute two fetch() without the need to create a time delay?
Working on "Edit" feature for project4 network.
I wrote a javascript function with two fetch. First one to update the post. Second one to retrieve the now updated post and show it on page (...
0
votes
1
answer
116
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
1
answer
730
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
2
answers
295
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
1
answer
720
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 ...
1
vote
0
answers
743
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
1
answer
335
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