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
Thanks for posting this, i hope it helps others get comfortable with building a project like this with django
Thank you for an awesome tutorial.
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?
worst experience
what is the prerequsite skill /
is there a way only caption can be displayed without the photo. I would appreciate any help.
He made a huge mistake when he used forignkeyfield instead of one to one field because profile have one user not much
OperationalError at /admin/core/profile/
no such table: core_profile
what is this problem
Thank you, I finished it! I will try to add chat functionality
[08/Jun/2023 02:10:04] "GET /static/favicon.png HTTP/1.1" 404 1792
Not Found: /search
please help
thank u , but i can't get Free Resources from your website
Is messaging other users also included in this?? I have seen this section in template
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]
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
I have downloaded the souirce code from above, but i cant find the static files in the project. how to incluide now?
Error: 27:27 No module named core. Pls heeeeeeeeelp
Please how can I assess those html files
Its kinda difficult for me
great project, appreciate
My caption is not getting saved..
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?
1:46:40 he wrote Login_required and imported login_required and its still working for him but gives me a error
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!
id_user seems redundant since it's == user FK
The github repo does not match the video tutorial
How do we add the comment section?
there is no blank image in image directory that we downloaded from github
Thank you very much It is awesome tutorial
Thanks for the great tutorial!
Does anyone know how to add comment section to the post in the above code?
1:07:00 I am not able to render the signup page
Awesome! I've just finished the project and it was veery great!