Python Django 4 Crash Course For Beginners | Build a Student Management System | Web Development

  Рет қаралды 134,051

Bob's Programming Academy

Bob's Programming Academy

Күн бұрын

Пікірлер: 193
@dvstarzzots
@dvstarzzots 2 жыл бұрын
This is the first comment i've ever left on a youtube channel lol. Your way of teaching is very beginner friendly. I really like how you break down every single step you're doing and why. This is definitely worth your time watching and code along if you really wanna learn django its everything you need
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Thank you for the kind words 🙂We are glad you've found this video helpful.
@dkadayinthailand3082
@dkadayinthailand3082 Жыл бұрын
This is brilliant. This is the perfect stepping stone to learning Django.
@kelvinace5478
@kelvinace5478 Жыл бұрын
It’s my 2 years moving away to django, I’m back to brush my knowledge again and I can tell you that this is one of the best tutorials out there. Watch this and continue with Corey Schaefer’s tutorial
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
Glad you enjoy it!
@sharokhkeshawarz2122
@sharokhkeshawarz2122 Жыл бұрын
Bro its the best Django tutorial i have ever seen! You showed us so much ressource to have icons, custom bootstrap etc... I swear your just the best! Keep it up!
@brianndlovu5334
@brianndlovu5334 Жыл бұрын
Bob finally my page is working properly and all the buttons are functioning as taught on the video. Thank you so much for the lesson. I'm so grateful to your step by step process of understand how each component works.😊
@brianndlovu5334
@brianndlovu5334 Жыл бұрын
I'm progressing in terms on leearning and understanding django. Thanks Bob!
@rishirajs5711
@rishirajs5711 Жыл бұрын
Thank You Sir for this wonderful class. During the process I found lots of problems but with a little bit of assistance from a AI and little bit rewinding, I was able to complete this 2 hr tutorial within 12-15 hrs. Thank You, I learnt a lot.
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
Happy to hear that 😊
@josiahmunguti2493
@josiahmunguti2493 11 ай бұрын
this is the best django project , it contains anything you need to know in django
@abuhamidify
@abuhamidify 2 жыл бұрын
Beautiful. Nicely buildup the tutorial from scratch covering all the basic topics. The presentation so natural its very easy to cop up with the pace of the tutorial. Great method of teaching. really appreciated. Want to get some tutorials with map dynamically changes with the data from db!
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Thank you 🙂 We are glad you've found the video helpful.
@СМЕШНЯШ
@СМЕШНЯШ 2 жыл бұрын
.👆You are my treasure👆
@odesay1018
@odesay1018 Жыл бұрын
i dont know why youtube aint indexing you well .loved your course btw so straight forward and simple for a beginner
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
Thank you for the kind words. We really appreciate it 🙂
@DannyG80
@DannyG80 11 ай бұрын
Thank you for this! It was a very helpful video, with the narrative very clearly delivered. Really enjoyed the no nonsense approach.
@mhbokul378
@mhbokul378 2 ай бұрын
Really Awsome Sir. Take Love from Bangladesh🙂
@sebastiansebastian3158
@sebastiansebastian3158 8 ай бұрын
Thank you Bob! It was really helpful.
@mertodikromoa
@mertodikromoa 11 ай бұрын
Hi, i've been following your tutorials and they are great. But i have an error when i want to add a student which says "'ValueError at /add/ The view students.views.add didn't return an HttpResponse object. It returned None instead." Could you help me with this? Thanku!
@nirajanmahara23
@nirajanmahara23 10 ай бұрын
please same error reply to this ValueError at /add/ The view students.views.add didn't return an HttpResponse object. It returned None instead. Request Method: GET Request URL: 127.0.0.1:8000/add/
@adnanassabar3098
@adnanassabar3098 8 ай бұрын
​@@nirajanmahara23me too same error please let us know if you have any suggestions
@adnanassabar3098
@adnanassabar3098 8 ай бұрын
Try to replace the render in the else by http response redirect ( reverse ('index'))
@deequi77
@deequi77 8 ай бұрын
Man, I found gold in this video. Thanks so much bob
@ЯрославИванов-б4ч
@ЯрославИванов-б4ч Жыл бұрын
Thank you so much for this django course! I hope you will continue make django tutorials. We need more!😉
@mushfiratmohaimin5892
@mushfiratmohaimin5892 Жыл бұрын
Thanks for the tutorial!! You gained a sub. One suggestion so that your next video is even better: Turn the volume up
@mpicuser
@mpicuser 11 ай бұрын
Thank you for this tutorial. Just started Django.
@otiasammy
@otiasammy Жыл бұрын
I feel educated with this info, Thanks Bob
@wayuberry
@wayuberry 2 жыл бұрын
Your teaching way is exceptional!!...woow....Thank you so much!!
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Thank you for the kind words 🙂 We really appreciate it.
@جمعةضو-ز6ب
@جمعةضو-ز6ب 2 жыл бұрын
Thanks for the excellent explanation, but note that the font is very small, and it is difficult to follow the video
@TheCommentChronicles
@TheCommentChronicles Жыл бұрын
Thanks a lot' today I Crack my system test. Because of u broooo
@zakariasulieman4548
@zakariasulieman4548 Жыл бұрын
thank you, this is a brilliant tutor. I followed along and felt like I learn new stuff
@farrukhliaqat4776
@farrukhliaqat4776 4 ай бұрын
your tutorial is very good for beginners highly recommended for beginners
@isidroespenidojr9766
@isidroespenidojr9766 2 жыл бұрын
This tutorial helps me a lot so far!. Keep it up. Very informative and well explained. Help me to build my portofolio
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Thank you, Isidro. We really appreciate it.
@nadytv0726
@nadytv0726 Жыл бұрын
This is what I've been looking for!!!... Thank you so much for sharing!!!!...more power to your channel...already subscribed..=)
@josbexerra8115
@josbexerra8115 2 жыл бұрын
Muchas gracias Mister Bob, muy bien explicado.....saludos de los andes peruanos
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Thank you for your kind words, Jos. We really appreciate it.
@alimihakeem841
@alimihakeem841 4 ай бұрын
Thanks. I found it helpful ❤
@brianbyaruhanga5791
@brianbyaruhanga5791 Жыл бұрын
There is so much to learn here. Thank you, Bob. Can you do a video course for Authentication(login and Logout)
@StoicismAspects
@StoicismAspects Жыл бұрын
thank you so much😉
@sharab2639
@sharab2639 Жыл бұрын
Man your teaching style so good...plz buddy make more django projects video❤❤
@chocoblan4288
@chocoblan4288 Жыл бұрын
Nice tutorial, I learned a lot from you. Thank you!
@JayJay-th3hd
@JayJay-th3hd 2 жыл бұрын
This is a very pretty good beginner guide to learn django from scratch. What surprises me is the loop inside the "for student in students" because if into database a lot of fields (e.g. 50 and more) it's necessary to declare every single value from the dict?
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Hi Jay. Yes, that's Django's syntax in the Django Template Language to get the fields. If you want to learn more, please check the section "The Django template language" in Django's documentation.
@hexacoder1742
@hexacoder1742 2 жыл бұрын
Great video, I learned several new aspects. Thank you so much
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Thank you 🙂 We are glad you like the video and that you've found it helpful.
@nassarzinho
@nassarzinho Жыл бұрын
Tkx for your video! It was perfect. I'm learning it and you help me very much. Please, make more tutorials like that. Besides, do you have any tutorial that explains how to use/create relational tables or and how to use postgres instead of sqlite?
@Nirmal-z9f5q
@Nirmal-z9f5q Жыл бұрын
thank you sir ! it really help me
@akordeonista
@akordeonista 8 ай бұрын
Hi Bob. Is there a chance you could record a tutorial on how to create a functional registration and login form in Django?
@td66331
@td66331 9 ай бұрын
Excellent tutorial, best I have found, thank you
@BobsProgrammingAcademy
@BobsProgrammingAcademy 9 ай бұрын
Glad it was helpful!
@platinum7664
@platinum7664 8 ай бұрын
thank you i gained a lot because of this video
@fahadkhan1415
@fahadkhan1415 Жыл бұрын
👍 Pretty cool The method of teaching is very good.
@lwchafik
@lwchafik Жыл бұрын
Thank you for the tutorial it was very helpful
@ram_qr
@ram_qr 9 ай бұрын
In fact, awesome tutorial
@thisaintmyrealname1
@thisaintmyrealname1 2 жыл бұрын
Thanks, nice crash course
@gilsonjunior_narrador
@gilsonjunior_narrador Жыл бұрын
Awesome thank you sir
@johnmahugu
@johnmahugu Жыл бұрын
thank you great tutorial
@jijirijohnson3453
@jijirijohnson3453 Жыл бұрын
God bless you for this great tutorials. You are a greater teacher.
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
Thank you 🙂
@jijirijohnson3453
@jijirijohnson3453 Жыл бұрын
Please, do you have any videos on Django and react crud application?
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
Not yet. In the future, we will add more tutorials.
@13_eliaroysandimanurun94
@13_eliaroysandimanurun94 5 ай бұрын
sangat bermanfaat bro
@SweetyBlossom
@SweetyBlossom Жыл бұрын
Thank you sir,I have a doubt I included more fields but I can't perform delete and read operations...
@korbiniangrimm1359
@korbiniangrimm1359 4 ай бұрын
thanks bob :)
@xudayfitechofficial
@xudayfitechofficial Жыл бұрын
Hi Teacher 👋, thanks for your time that helped me Thanks Thanks from somalia 🇸🇴
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
Thank you for the kind words 🙂We are glad you've found this video helpful.
@gilsonjunior_narrador
@gilsonjunior_narrador Жыл бұрын
Can I add the number as incremental one instead of input it manually?
@kudakwashenhemachena3512
@kudakwashenhemachena3512 2 жыл бұрын
Great tutorial.👍🏾
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Thank you for the kind words. We really appreciate it.
@keerthanak5726
@keerthanak5726 Жыл бұрын
Great video for a beginner
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
Thank you for the kind words 🙂 We are glad you've found this video helpful.
@collen89c5
@collen89c5 2 жыл бұрын
Im loving this tutorial ,Thank you soo much .... but im having a problem with my add student form its not adding to the database. Can you kindly share the code pliz
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Hi Collen. Thank you for the kind words. We really appreciate it 🙂 You can find the link to the project's source code in the video's description (the description section below the video).
@CelosiaMagic
@CelosiaMagic 2 жыл бұрын
Thank you so much for this video. It’s help me a lot
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Thank you for the kind words. We really appreciate it.
@sim9955
@sim9955 Жыл бұрын
Great video! Is there a way to modify the form to expand on text fields and drop downs? Also, can the form be opened in an entire page rather than a pop-up card?
@franciscodelafruitas9424
@franciscodelafruitas9424 2 жыл бұрын
Very clear thank you! Could you show how to automatically assign a unique student number instead of typing one in?
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Hi Francisco, There are a few ways to do this, and the solution depends on what format and length of the unique student number you want. You can check these Stack Overflow posts for different methods: stackoverflow.com/questions/73113491/how-to-generate-unique-accountid-in-user-model-which-should-be-auto-generated-af stackoverflow.com/questions/72101518/how-can-i-automatically-generate-unique-4-digits-and-save-in-django-model stackoverflow.com/questions/52070462/django-generate-custom-id HERE IS A SAMPLE SOLUTION: You need to make changes in the models.py file. For example, you can use Django's built-in UUIDField, which is a field for storing universally unique identifiers: docs.djangoproject.com/en/4.1/ref/models/fields/#uuidfield STEP 1 - Install the UUID package First, install the UUID package by running the command: pip install uuid To update the requirements.txt file, which contains the list of packages used for the project, you need to run the command: pip freeze > requirements.txt STEP 2 - Modify the Student model Next, in the students/models.py file, at the top of the file, add the import statement: import uuid Next, edit the Student model and modify the student_number field, for example, like this: student_number = models.UUIDField(primary_key=False, default=uuid.uuid4, editable=False) Please note that the id field is automatically added to the Student model (the automatic primary key field), which is why we don't specify it in the model. This is also why, in the example above, we set the primary_key option on the student_number to False. You can find more information here: docs.djangoproject.com/en/4.1/topics/db/models/#automatic-primary-key-fields STEP 3 - Modify the StudentForm Next, modify the StudentForm located in the students/forms.py file. You need to specify the student_number field as read-only: readonly_fields=('student_number',) Also, you need to remove the student_number field from the list of fields and from the widgets section. The code of the StudentForm after the changes: class StudentForm(forms.ModelForm): readonly_fields=('student_number',) class Meta: model = Student fields = ['first_name', 'last_name', 'email', 'field_of_study', 'gpa'] labels = { 'student_number': 'Student Number', 'first_name': 'First Name', 'last_name': 'Last Name', 'email': 'Email', 'field_of_study': 'Field of Study', 'gpa': 'GPA' } widgets = { 'first_name': forms.TextInput(attrs={'class': 'form-control'}), 'last_name': forms.TextInput(attrs={'class': 'form-control'}), 'email': forms.EmailInput(attrs={'class': 'form-control'}), 'field_of_study': forms.TextInput(attrs={'class': 'form-control'}), 'gpa': forms.NumberInput(attrs={'class': 'form-control'}), } STEP 4 - Modify the Add view Next, you need to modify the Add view in the student/views.py file and remove the student_number from the view (it will be added automatically). The code of the add view after making the changes: def add(request): if request.method == 'POST': form = StudentForm(request.POST) if form.is_valid(): new_first_name = form.cleaned_data['first_name'] new_last_name = form.cleaned_data['last_name'] new_email = form.cleaned_data['email'] new_field_of_study = form.cleaned_data['field_of_study'] new_gpa = form.cleaned_data['gpa'] new_student = Student( first_name = new_first_name, last_name = new_last_name, email = new_email, field_of_study = new_field_of_study, gpa = new_gpa ) new_student.save() return render(request, 'students/add.html', { 'form': StudentForm(), 'success': True }) else: form = StudentForm() return render(request, 'students/add.html', { 'form': StudentForm() }) STEP 5 - Run migrations Please remember to run migrations after making the changes so that the changes you make are propagated into your database schema: docs.djangoproject.com/en/4.1/topics/migrations/ python manage.py makemigrations python manage.py migrate COMPLETE STEPS: To make sure you don't encounter any problems during migrations, please follow the steps: 1. Download the code from the project's GitHub repository. 2. Open the project in Visual Studio Code or some other code editor. 3. Create and activate a virtual environment (steps 1 and 2 of the installation guide). 4. Install the required dependencies specified in the requirements.txt file (step 3 of the installation guide). 5. Install the UUID package by running the command pip install uuid (see STEP 1 above). 6. Update the requirements.txt file by running the command pip freeze > requirements.txt 7. Modify the Student model (see STEP 2 above). 8. Modify the StudentForm (see STEP 3 above). 9. Modify the Add view (see STEP 4 above). 10. Run migrations (see STEP 5 above and also step 4 of the installation guide). 11. Create an admin user to access the Django Admin interface (see step 5 of the installation guide). 12. Start the application by running the command python manage.py runserver. 13. Add a new student (the student number will not be visible on the form). 14. Go to the All Student list - the automatically generated student number field will be available on the list. We have tested this solution and it works fine. There is no student number to specify when adding or editing a student (both from the web app and from the Django Admin), but the automatically added unique student number is visible on the list of all students (in the table). If you want a student number in a different format, please check the links to the Stack Overflow posts we have added above. We hope that helps.
@franciscodelafruitas9424
@franciscodelafruitas9424 2 жыл бұрын
@@BobsProgrammingAcademy Excellente thank you!!! 👏
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
@@franciscodelafruitas9424 No problem. Happy to help 🙂
@ketanwaghmare9272
@ketanwaghmare9272 2 жыл бұрын
Hi bob. Really nice video, I'm very beginner. On 1:38:17, after running sever, bootstrap is not loading and navbar options also not visible. before creating base.html everything was working fine.
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Hi Ketan, Have you added the line {% extends "students/base.html" %} in both the index.html and add.html files? You need to add this line to all templates that will extend the base.html template. If that doesn't help, please check if you're not missing anything in your templates by comparing your code with the code in the project's GitHub repository (you can find the link in the description of the video).
@ketanwaghmare9272
@ketanwaghmare9272 2 жыл бұрын
@@BobsProgrammingAcademy Thanks Bob, Its working now.🙂
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
@@ketanwaghmare9272 That's great 🙂Happy learning!
@EBIKAVLOG
@EBIKAVLOG Жыл бұрын
Thanks for such an amazing tutorial. at first, I had issues with my VIEW RECORDS and EDIT, but after copying your code it got resolved. Though I couldn't figure out my error lol. I used Pycharm for my virtual environment I don't know why I cant set up venv for VSC.
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
Glad it helped! 🙂
@sweeeett123
@sweeeett123 Жыл бұрын
Hello! Should I watch this tutorial, if I am zero in Django? I know oop, templates, SQLite and am about to start learning Django, so should I?
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
Yes 🙂 This is Django for beginners, and we start from scratch. We hope you'll find this video helpful.
@МахамбетМамыров
@МахамбетМамыров Жыл бұрын
Fantastic video
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
Thank you 🙂
@marcelobc2230
@marcelobc2230 Жыл бұрын
I would like to suggest the creation of a car rental project, with a choice of the rental period, preventing this car from being reserved by another customer. Thanks friend!
@jeremiahnwosu4929
@jeremiahnwosu4929 Жыл бұрын
This is really great content. Do you have any suggestions on any structured material for learning Django and Boostrap/Tailwind. Something to get a hang of all the fundamentals (beginner - intermediate).
@JoguRupa
@JoguRupa 3 ай бұрын
Sir after following all steps carefully navigating the http in chrome its showing successfully installing django, can u help me sir?
@kamangoumou6099
@kamangoumou6099 10 ай бұрын
From the beginning till the end any error thanks you for this wonderful project
@HariniNeon
@HariniNeon Жыл бұрын
When I create virtual environment and activate it , its showing like venv module couldn't be loaded. What to do?
@stricho8636
@stricho8636 8 ай бұрын
good job
@JustForFun1426-t4k
@JustForFun1426-t4k Жыл бұрын
Of all the django tutors you are the best! From A to Z I digested everything. Thanks for your valuable content. Please make another video on how to make specific id or access for each school incase this kind of system is used by different schools.
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
Thank you for the kind words. We really appreciate it. In the future, we will add more tutorials.
@UnderdogVoicePodcast
@UnderdogVoicePodcast 2 жыл бұрын
You have done such a great job with teaching!! I have one question though, when I enter a record, I still can enter a record wit hthe same student number duplicating the record based on the student number. How would i prevent that?
@TheMostRandomKid_
@TheMostRandomKid_ Жыл бұрын
thank you so much taking us throught this. im facing so many issues. my first modal doesnt work. also my update and delete functions do not work. any way you could help out?
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
Have you tried to compare your code with the code in the project's GitHub repository? You can find the link in the description section below the video. If you can't see the difference by comparing the files (the error in your code might be something small and easily missed), then copying the code from the project's GitHub repository should fix the issue.
@josephnalo7607
@josephnalo7607 2 жыл бұрын
hi bob my vs code is not responding to the index.html,i cant type or code anything in html file.what might be wrong?
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Hi Joseph, Try to restart your Visual Studio Code.
@AMA_RILDO
@AMA_RILDO Жыл бұрын
I have the same issue. Just rename each html file to htm. so “index.htm” “base.htm”
@delacliqueentertainment4456
@delacliqueentertainment4456 6 ай бұрын
Thanks alot sir
@Drellical
@Drellical Жыл бұрын
Phenomenal
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
Thank you 🙂
@carthagely122
@carthagely122 Жыл бұрын
Thanks very much
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
You are welcome 🙂
@JosephWalsh-s7m
@JosephWalsh-s7m Жыл бұрын
Great tutorial. However my info and delete buttons are not functional. When I click on the buttons a faint box appears and I can not click on the buttons to edit or delete.
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
Have you tried to compare your code with the code in the project's GitHub repository? You can find the link in the description section below the video. If you can't see the difference by comparing the files (the error in your code might be something small and easily missed), then copying the code from the project's GitHub repository should fix the issue.
@ketankumar5689
@ketankumar5689 Жыл бұрын
I have a doubt regarding using request.method. Can't i use other HTTP method PUT/PATCH, DELETE ?
@deequi77
@deequi77 8 ай бұрын
Hi bob i hope you can see and answer my question, if i want my the student id or id to begin with a certain pattern or series say for example 1st record will start at "ABS2024" so the first record will be ABS20241, How can I accomplish this? Thanks
@judesewutaa8016
@judesewutaa8016 Жыл бұрын
powerful
@graciousobeagu4640
@graciousobeagu4640 2 жыл бұрын
Please which version of Django did you use?
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Hi Gracious, In this course, we use Django 4.0.4. For each of our Django projects, you can find Django's version number in the requirements.txt file in a project's GitHub repository.
@ranjithkumar1211
@ranjithkumar1211 Жыл бұрын
Sir ,how to write code to get alert- sucess message after deleting record. The message should be like {{student.first_neme}}{{student.last_name}} has been deleted
@sakthikumargurunathan6911
@sakthikumargurunathan6911 2 жыл бұрын
Hello bob, when i click on my action button, it doesnt showing the student details.. can you tell me where this problem coming from.I followed your steps
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Hi. It appears that you have an error somewhere in your code. It could be something tiny that can be easily missed, like, for example, wrong code indentation or misspelling. I recommend comparing the code you've written with the files in the project's GitHub repository. You can find the link in the video's description (the description section below the video). If you won't spot the difference by comparing the files, copying the code from the project's GitHub repository should fix the issue.
@reem3063
@reem3063 2 жыл бұрын
U r the bessssssst
@calecoin
@calecoin 2 жыл бұрын
Hey Bob, great video. I am stuck for some reason when trying to create a new student. I click Add on the form and it does nothing. Supposed to say student added successfully and then show the new student in the home page but it doesn't do that. Any idea? I've compared my code several times to yours and can't figure it out.
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Hi Cale, It's hard to guess where the problem is without seeing your code. What happens when you try to add a new student using a form in the browser? Any error messages? Can you add a student to the database via Django Admin? If you can do that, and then you can see that student displayed in the table on the home page, then I recommend checking the code of your Add template (the add.html file) again. If you can't add students from the Django Admin, check any error messages that might be displayed, both in the Django Admin and in the Terminal window where you're running Django commands.
@calecoin
@calecoin 2 жыл бұрын
@@BobsProgrammingAcademy No error messages or anything in the browser. It just deletes the form when I hit Add. I am able to create new students in the admin and it shows on the home page. I agree that it must be something in the add.html but as I mentioned, it looks identical. I’ve looked at it over and over again. I don’t receive any error messages in admin or terminal either. Is there anywhere I can show you my code?
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
@@calecoin Creating a new student from the application involves the following files: 1. forms.py (the StudentForm) 2. views.py (the add function) 3. urls.py (inside the students directory; the add URL route) 4. base.html 5. add.html (the Add template) Please check all these files and compare your code with the code in the project's GitHub repository (you can find the link in the video's description). You have an error somewhere in your code. It might be something tiny that can be easily missed. If you've checked all these five files and they all seem identical, you can try to copy the code from GitHub (the code in the project's GitHub repository works fine). You can start with the first file, replace your code with the code from GitHub and then try to add a student from the application. If it still doesn't work, proceed to the second file, replace your code with the code from GitHub and check the app again. If it still doesn't work, proceed to the third file, and so on. If you won't spot the difference by comparing the files, copying the code from the project's GitHub repository should fix the issue.
@calecoin
@calecoin 2 жыл бұрын
@@BobsProgrammingAcademy Thanks for the response again. I made some slight adjustments as I'm actually creating a project tracker site, not a student management system. So copy and pasting won't work. That being said, I'm confident the code should work. I've looked it over so many times haha. Wondering if it could be some other issue. I even tried to load it from a different web browser but it also didn't work.
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
@@calecoin Ah, I see, so you've modified the code shown in this video because you are building a different application (a project tracker), and now you're having issues with your code. I recommend looking into StackOverflow. It's a question-and-answer website for professional and enthusiast programmers, where people can get help from other developers when they have problems with their code. It's a fantastic resource, and I always use it when I get errors while developing an application. I highly recommend StackOverflow.
@مهندبدرة
@مهندبدرة Жыл бұрын
thx
@joshwzr1257
@joshwzr1257 2 жыл бұрын
I like how precise you were Thanks alot. Though I have some inquiry on some beginner project am creating. I would like to have a possibility of users that create accounts, each to chat with the admin user seperately and access the replies on their specific chat pages when they log in. How do you recommend me sir?
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Hi Josh. Django comes with a user authentication system that handles user accounts, groups, permissions, and cookie-based user sessions. There are plenty of great online tutorials (including many KZbin videos) on how the default user authentication works and how to extend and customize it to suit your project’s needs. We recommend you check some of those. These resources should help you get started: docs.djangoproject.com/en/4.1/topics/auth/ developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Authentication learndjango.com/tutorials/django-login-and-logout-tutorial You can also use Django REST Framework: www.django-rest-framework.org/api-guide/authentication/ www.django-rest-framework.org/tutorial/4-authentication-and-permissions/ Regarding your question about building the chat functionality, you can build a chat server using Django Channels. To create the chat server, you need to learn how to serve your Django project through Asynchronous Server Gateway Interface (ASGI) and how to implement asynchronous communication. Using Django Channels, you can easily implement real-time or asynchronous functionality into your project in addition to your standard HTTP synchronous views. These resources should be helpful: channels.readthedocs.io/en/stable/ channels.readthedocs.io/en/stable/tutorial/part_2.html We hope this helps.
@joshwzr1257
@joshwzr1257 2 жыл бұрын
@@BobsProgrammingAcademy I appreciate the time you offered to me as in replying me here, which is rare to me compared to other videos. Let me go through these documentations first. If I don't achieve my target, allow me turn back to you humbly.
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Good luck with your project 🙂
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
@@joshwzr1257 If you encounter problems while working on your project, I recommend looking into StackOverflow. It's a question-and-answer website for professional and enthusiast programmers where people can get help from other developers when they have problems with their code. It's a fantastic resource, and I always use it when I get errors while developing an application. I highly recommend StackOverflow.
@joshwzr1257
@joshwzr1257 2 жыл бұрын
@@BobsProgrammingAcademy I actually use it too. For that specific project, I even put a token but didn't get help. I watched your tutorial and it gave me hope. But still can't give up
@amilbaharsura6775
@amilbaharsura6775 2 жыл бұрын
Thank you so much!
@bartd80d
@bartd80d Жыл бұрын
'#myModal 1' is not a valid selector - when trying to click info icon, please help.
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
Hi Bartłomiej. You shouldn't have the space between myModal and the number (a student ID). Please check your code and make sure that the ID and data-bs-target attributes look like this: id="myModal{{student.id}}" data-bs-target="#myModal{{student.id}}" There should be no space between the word myModal and the double curly braces holding a student ID.
@gyampohenoch7529
@gyampohenoch7529 Жыл бұрын
Thanks for your time but I am facing a few problems. My vs code is signalling the color-adjust property and -webkit-appearance as errors in the bootstrap.min.css file. So server can't load css file. Please what must I do to solve this?
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
Are you using a Bootswatch theme? Which version? Please check the version of Bootstrap and Bootswatch in your bootstrap.min.css file (it should be at the top of the file). As a quick fix, you can use the same version of the bootstrap.min.css file (v5.1.3) as we do in this course. You can find it in the project's GitHub repository here: github.com/BobsProgrammingAcademy/student-management-system/tree/master/students/static/css
@gyampohenoch7529
@gyampohenoch7529 Жыл бұрын
@@BobsProgrammingAcademy my bootswatch version is 5.2.3 same as bootstrap
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
Has using the same bootstrap.min.css file as we do in this course fixed your problem?
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
I've run the code from the project's GitHub repository but replaced the bootstrap.min.css file with the latest Bootswatch Zephyr theme (v5.2.3), which should be the same file you're using. I can run the project without any errors, so unfortunately, I can't reproduce your problem. I recommend googling the error message you're getting to find a solution and checking StackOverflow - I am sure someone has already encountered the issue you're having. Alternatively, as mentioned previously, you can use the same bootstrap.min.css file as we do in this course. You can find it here: github.com/BobsProgrammingAcademy/student-management-system/tree/master/students/static/css
@rudyitiel6529
@rudyitiel6529 3 ай бұрын
Good video but next time zoo your editor please
@kafil56
@kafil56 2 жыл бұрын
Ily ❤️​
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Thanks
@sweeeett123
@sweeeett123 Жыл бұрын
Hey Bob! Bob , can you please help me, I already tried all the ways I know to fix it, but when I created the button actions and put some path to it by "{% url %}", in the website, I can't open the modal, I tried literally everything, just have lost the hope now .. and this tutorial was so good, explanation is so good ..
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
Which action button isn't working for you? Are you having issues with the code shown in the video? Or have you tried to modify the code, and that modified code isn't working?
@sweeeett123
@sweeeett123 Жыл бұрын
@@BobsProgrammingAcademy the first one button isn't working ( view_student ). I have pasted your template also, but none of what I did worked. And of project, I was doing everything right after you
@sweeeett123
@sweeeett123 Жыл бұрын
@@BobsProgrammingAcademy can it be because of M2 Mac? I am already getting crazy cuz of this button 😅
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
Have you tried to compare your code with the code in the project's GitHub repository (the link is in the video description)? An error in your code could be something tiny that can be easily missed. If you won't spot the difference by comparing the files, copying the code from the project's GitHub repository should fix the issue.
@davidchoy6220
@davidchoy6220 2 жыл бұрын
Does this work with python 3.8?
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Hi David. Yes, Python 3.8 should be fine. Django 4.0 supports Python 3.8, 3.9, and 3.10. The Django 3.2.x series is the last to support Python 3.6 and 3.7.
@منور-خ9ز
@منور-خ9ز 6 ай бұрын
i have question regarding your project " Python Django 4 Crash Course For Beginners | Build a Student Management System | Web Development " I have followed all the steps carefully until the step of running the server to get the http website the should show hello world but when i run the server it shows the page of Django the installation worked successfully , could u help me with it ?
@JoguRupa
@JoguRupa 3 ай бұрын
Is itt solved? Actually I also get same
@dvijhay78
@dvijhay78 2 жыл бұрын
Should I have a basic understanding of Python before looking into this video?
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Hi Vijhay. Yes, you should know the basics of Python. Django is a Python web framework, and you'll write code in Python. For Django templates, you'll also need to know the basics of HTML and CSS.
@androidbox6876
@androidbox6876 2 жыл бұрын
Someone installed Django within directory venv. Is that correct?
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
This is because Django was installed and runs inside a virtual environment called venv. We discuss this in detail in the video (00:05:54 Virtual Environments). You can find more information about virtual environments here: docs.python.org/3/library/venv.html
@dineshdinnu6636
@dineshdinnu6636 Жыл бұрын
Reverse for 'viewstudent' with arguments '('',)' not found. 1 pattern(s) tried: ['student/(?P[0-9]+)\\Z'] can you please help me to solve this issue.
@dineshdinnu6636
@dineshdinnu6636 Жыл бұрын
I'm getting NoReverseMatch Exception type. And this is occurred when i try to add info in actions.
@dineshdinnu6636
@dineshdinnu6636 Жыл бұрын
@@BobsProgrammingAcademy I have followed everything which you were written
@dineshdinnu6636
@dineshdinnu6636 Жыл бұрын
@@BobsProgrammingAcademy I did not modify anything. I have followed entire your code. This error occured when i tried to add info(button) in actions.
@dineshdinnu6636
@dineshdinnu6636 Жыл бұрын
@@BobsProgrammingAcademy views.py from django.http import HttpResponseRedirect from django.shortcuts import render from django.urls import reverse from .models import Student def index(request): return render(request,'students/index.html', {'students':Student.objects.all()}) def view_student(request, id): student = Student.objects.get(pk=id) return HttpResponseRedirect(reverse('index')) urls.py from django.urls import path from . import views urlpatterns=[ path('', views.index, name='index'), path('',views.view_student, name='view_student'), ] index.html All Students {% if students %} Student Records Student NUmber First Name Last Name Email Field of Study GPA Actions {% for student in students %} {{student.student_number}} {{student.first_name}} {{student.last_name}} {{student.email}} {{student.field_of_study}} {{student.gpa}} Student: {{student.first_name}} {{student.last_name}} Student Number: {{student.student_number}} First Name: {{student.first_name}} Last Name: {{student.last_name}} Email: {{student.email}} Field of Study{{student.field_of_study}} GPA{{student.gpa}} Close {% endfor %}
@BobsProgrammingAcademy
@BobsProgrammingAcademy Жыл бұрын
One error I can see in the code you've added in the comment is in your index.html file. You have this part: If you look closely, you have there: id="myModal{{ *studentt.* id}}" - *letter t twice in the word student* - instead of id="myModal{{student.id}}" With this error, you can't view the details of a selected student. If you haven't modified the code shown in the video, then when you encounter an error, you can compare your code with the code in the project's GitHub repository, which works fine. Errors can sometimes be tiny and easily missed, like in the example above. If you won't spot the difference by comparing the files, copying the code from the project's GitHub repository should fix the issue.
@ashishkarki9090
@ashishkarki9090 2 жыл бұрын
SNice tutorialt, it's the nice tuto
@BobsProgrammingAcademy
@BobsProgrammingAcademy 2 жыл бұрын
Thank you
@jbailey130
@jbailey130 8 ай бұрын
I like you
@СМЕШНЯШ
@СМЕШНЯШ 2 жыл бұрын
👆nice!👆👆
@brianndlovu5334
@brianndlovu5334 Жыл бұрын
Hi guys, please assist me here. I'm getting this error "The view students.views.add didn't return an HttpResponse object. It returned None instead. This happens when I try to add students. Please help
@brianndlovu5334
@brianndlovu5334 Жыл бұрын
Hello guys, my form is now showing, the error has been fixed. The struggle continues.
@SecondChanceThreads
@SecondChanceThreads 5 ай бұрын
@@brianndlovu5334 how did you fix this?
Build Admin Dashboard From Scratch | HTML, CSS and JavaScript Tutorial for Beginners
44:57
Django Tutorial for Beginners - Build Powerful Backends
1:02:36
Programming with Mosh
Рет қаралды 2,8 МЛН
Who is More Stupid? #tiktok #sigmagirl #funny
0:27
CRAZY GREAPA
Рет қаралды 10 МЛН
Automate with Python - Full Course for Beginners
2:42:55
freeCodeCamp.org
Рет қаралды 1,6 МЛН
Python Django Web Framework - Full Course for Beginners
3:45:41
freeCodeCamp.org
Рет қаралды 4,8 МЛН
'OXYGEN LEAK!'' Elon Musk Revealed WHY Starship Flight 7 Exploded...
11:01
Best of CES 2025
14:50
The Verge
Рет қаралды 633 М.
Learn Django in 20 Minutes!!
21:25
Tech With Tim
Рет қаралды 458 М.
CRUD mastery with Django | Build a CRM application | Django projects | #1
4:22:07
Learn Django by Building an Online Marketplace - Python Tutorial for Beginners
2:23:45
Who is More Stupid? #tiktok #sigmagirl #funny
0:27
CRAZY GREAPA
Рет қаралды 10 МЛН