(CS50 WEB) WIKI - PROJECT 1 | SOLUTION

preview_player
Показать описание


––– DISCLAIMER –––

The following videos are for educational purposes only. Cheating or any other activities are highly discouraged!! Using another person’s code breaks the academic honesty guidelines. This solution is for those who have finished the problem sets and want to watch for educational purposes, learning experience, and exploring alternative ways to approach problems and is NOT meant for those actively doing the problem sets. All problem sets presented in this video are owned by Harvard University.

–––
Рекомендации по теме
Комментарии
Автор

00:02 Overview of CS50 Web Programming Project 1 Wiki with Python and JavaScript
05:53 Converting Markdown to HTML and Working with Entries
11:48 Creating a Path for Encyclopedia Entry in Django
17:40 Handling Display and Hyperlinks in Django HTML Templates
23:34 Handling Search Queries and Form Submission in Django
29:28 Creating a Recommendation Page and Adding New Entries
35:22 Creating a New Page with HTML and Form
41:15 Working with Text Area and Post Method in Django
47:06 Creating an Edit Functionality for Entries
52:58 Creating and Rendering Entries, Random Page Functionality

SolomonKhamlamchin
Автор

I did it all by myself, but came across a bug problem i couldnt solve for a week, watching this video helped to find where was the issue so i could finally get over it. Like always it was a small thing that i missed. Thanks

NosProblemos
Автор

21:30 they literally never explained this title=entry part of the URL tag in the lecture/notes, and you can try to read the Django docs but they're very difficult to understand. Idk how we were supposed to know how to do this.

montheist_tv
Автор

This channel deserves more attention <3

PeterReynolds
Автор

It seems to me that the edit function can be simplified into a single function. When the edit button is clicked, a get request is sent and when the form is submitted, a post request is sent.

manuelguerra
Автор

I'm having trouble with the url being case sensitive.. if I enter wiki/css in the url it will return an error message... only wiki/CSS will work... but yours seems to accept different cases.. appreciate if you could help me out. thanks

dn
Автор

First of all, thank you very much for all the work you do to help new programmers its amazing and clear.
Now regarding the get_entry function being case sensitive, it just wouldn't work. the following was my approach, it work, however I feel like it can improve a lot, looks kinda forced would very much appreciate any input:
def convert_md(title):
content = util.get_entry(title)
if content is None:
content =
if content is None:
content =
markdowner = Markdown()
if content == None:
return None
else:
return markdowner.convert(content)

Nalanarud
Автор

I must use:

urlpatterns = [
path("", views.index, name="index"),
path("wiki/<str:title>/", views.entry, name="entry"),
]

if I drop the / at the end it´s not working

AudioBln
Автор

Hi I'm almost finishing up the project but there is a bug, when i create a page with exist name but in lowercase it's also got saved, for example we have CSS in title but also when I try to create a new page with css title it's can be saved too! Please help I really haven't enough time, thanks a lot!

mr.blacknight
Автор

I am facing problems in terminal because the vs is not recognizing the django module, neither the codespace nor the vs code desktop...trying to install it with pip install django in the terminal of vs code, gives me errors... can you please explain how you set up the environment and also how to submit the projects from vs code desktop? Many thanks in advance!

vejsanabito
Автор

thank you very much for all the work. if you shared URL bar with us it would be better :)

nazarakmyradov
Автор

My project was almost completed but I checked your video to rectify a bug I was getting, but you did not have that bug.
Could you please help me with that?
My markdown library is returning None only.

brannstrom
Автор

Just wanted to understand which extension ur using to run the website, I'm using live server, but it's no really working

danielneves
Автор

Hello, I am having problems with the end block and block and extend commands appearing as just text on my webpage. I have installed Jinja and it doesn't work.

sim
Автор

Please, tell us :

WHICH THEME ARE YOU USING ?

I Love it ! where can we find it ?
It's impressing at differencing any type of function for each word in the code.
I would love to be able to use it.

Vitanergie
Автор

Hi there I have a problem when I go to edit it doesn't show the current entry and title and I don't know how to solve this even where is problem come from please help me

saranourimottaghi
Автор

I'm having a problem with rendering the index page, it always gives me the Django default template.

blessmannewton
Автор

hi.i am having a major issue regarding the csrf token. when i write csrf then the tag wont show up in vs code or if i type it manually the csrf error still shows up. so basically the csrf tags arent working in vs code what should i do.

mahadusman
Автор

Hi, I wanted to know, did you put something like an .upper() or something? My GET only works if I give the exact string

marioortiz
Автор

that's really very guiding...thanks...

YSN