For this project, we'll get practice creating a real-world and more complicated web application — our own Reddit clone. It will showcase a variety of features including subreddits, posts, comments, voting, and even search. We will explore Django concepts such as abstract models, advanced querying, signals and receivers, and more!
Part of course:
Hands-on Assignment: Creating a Reddit Clone Part 1
- Project Goals
- Step 0: Setup
- Step 1: Exercise in Object Modeling
- Subreddit
- Posts
- Comment
- Step 2: A Sample Object Model
- Creating the Base Model
- Creating the Votable Object
- Creating the Post Object
- Creating the Comment Object
- Creating the SubReddit Object
- Creating the UserVote Object
- The Final Object Model
- Step 3: Create the Basic Forms
- Our Forms
- Step 4: Create the basic views
- Step 5: Urls
- Step 6: Creating the basic templates
- base.html
- post_list.html
- post_edit.html
- post_detail.html
- sub_detail.html
- CSS File
- Step 7: Add the admin
- Step 8: Testing The Site Thus Far
- Part 1 Completed!
Show admin stats