Improve your Python Django skills by coding a social media app.

✏️ Course developed by CodeWithTomi. Check out his channel: https://www.youtube.com/c/CodeWithTomi
🔗 Join CodeWithTomi’s Discord Server: https://discord.gg/cjqNBHHhKV
🔗 Twitter: https://twitter.com/TomiTokko3

💻 Source code: https://github.com/tomitokko/django-social-media-website
💻 Template files: https://github.com/tomitokko/django-social-media-template

🔗 Download All Free Resources – https://codewithtomi.eo.page/mz396

⭐️ Course Contents ⭐️
(0:00:00) Intro
(0:00:52) Project Demo
(0:06:37) Project Setup
(0:14:20) URL Routing
(0:23:06) Template Setup
(0:27:52) Static Files
(0:36:47) Profile Model
(1:00:31) Signup
(1:33:11) Signin and Logout
(1:47:55) Account Settings
(2:17:00) Uploading Post
(2:49:55) Post Feed
(3:00:22) Like Post
(3:20:50) Profile Page
(3:37:20) Follow and Unfollow User
(4:10:23) Post Feed Updated
(4:18:35) Download Images
(4:21:03) Search User
(4:38:18) User Suggestions

🎉 Thanks to our Champion and Sponsor supporters:
👾 Raymond Odero
👾 Agustín Kussrow
👾 aldo ferretti
👾 Otis Morgan
👾 DeezMaster

Learn to code for free and get a developer job: https://www.freecodecamp.org

Read hundreds of articles on programming: https://freecodecamp.org/news

source

31 Comments

  1. in the static files chapter around 35:10 even after making all the changes, the UI doesn't fix for me. I even tried running it in the folder cloned from GIT but the UI still seems to be an issue. Anyone got any ideas what might be going on?

  2. For user suggests, around 04:36:18, I wrote a much simpler solution leveraging QuerySet. Anyone, please chime in to let me know if this is better/worse!

    # Get IDs of all users that the current user follows
    following = Follower.objects.filter(id_follower=request.user.id).values_list('id_user', flat=True)
    # Get random suggestion of 5 users to follow which the user does not follow
    suggestions = Profile.objects.exclude(id_user__in=following).exclude(id_user=request.user.id).order_by('?')[:5]

  3. okay, so i finished this tutorial id say overall its a 7/10, not having the full template uploaded was a bit frustrating. Great tutorial since its free. Some redundant code and strange naming conventions. I would recommend skipping through his code explanations and just analyze what he wrote to speed things up, if you get confused just ask chatgpt

  4. ImportError: could not import 'rest_framework.authentication.SessionAuthentication' for API setting 'DEFAULT_AUTHENTICATION_CLASSES'. ModuleNotFoundError: No module named 'rest_framework'.

    How can I fix this error I encountered while trying to create my userAPI?

  5. Im about to create something which will hopefully be needed by companies and private people in the future. I hope it will increase innovation flow of the future.
    Its such a big Project, i dont know if its possible for me to create such a website, since im not a programmer or something. I dont even know if its possible in general.
    It will be extremely time-consuming and its hard to say if its worth since i dont even know if it will work at the end.
    Anyways, i will start and you know.. as a wise person once said.. "shoot for the moon, even if you miss you will land among the stars" .. or something like that.
    It will be a frustrating journey but it would be even more frustrating to stop before it even started, right!?
    Havnt watched a second of this video yet but i hope it will help me, thanks in advance!

Leave A Reply

Please enter your comment!
Please enter your name here