I want to say you, 1000 thanks for this courses...the best or the best. Very well explained...you are the man, bravo! You know, for me learning Django and python is like finding water in the desert. Awsome language...you can't get bored, and is very large and flexible. I Hope when you get a free time, to make a commerce Django website with a real payment credit card. Thanks again for all your effort, for sharing ur knowlidge and lastly i want to ses u: you are the best. Good continuation.
For windows people finding this tutorial just now and using git bash to run the createsuperuser, you need to add 'winpty' at the start. More info here: stackoverflow.com/questions/32532900/not-able-to-create-super-user-with-django-manage-py
Even though I have last function you added to the models.py file in my models.py file, my code still shows this 👇 am using django version 2.1 on a windows PC , any help on how to fix this?
def __str__(self) is not working with me, titles still show like this : XXXX object. i did manage.py makemigrations, as well as manage.py migrate.. any idea why isn't working? thanks
for stose trying to do this on Linux, and getting 'Trying to write a readonly DB' error go to terminal navigate to your django project type sudo chown YOUR_USERNAME:YOUR_USERNAME db.sqlite3 type your password DONE this command shal give you permission to write to DB, happy hacking)))
This is the best tutorial even after 4 years. Net ninja is a genius!
Thanks for the kind words Mushraf :)
I want to say you, 1000 thanks for this courses...the best or the best. Very well explained...you are the man, bravo!
You know, for me learning Django and python is like finding water in the desert. Awsome language...you can't get bored, and is very large and flexible.
I Hope when you get a free time, to make a commerce Django website with a real payment credit card.
Thanks again for all your effort, for sharing ur knowlidge and lastly i want to ses u: you are the best.
Good continuation.
I have just started my web dev journey and django framework and your tutorials is the best for a beginner like me now #3
Thoroughly enjoying this series, thanks!!
thanks for your contribution! best django tutorial in the universe
For folks having issue in ...save(), try adding "from __future__ import unicode_literals" in 001_initial.py file. Might help!
Bro your video is point to point which is an amazing thing.
This guy is always on point every time thanks alot buddy
You are the best, after I'm done with this tutorial I'm going to comeback and like all the videos and share them on facebook!
Thank you for this amazing tutorial about Django.
4:43 that is Freakin' awesome
Love it! This has been super helpful
Great explanation :)
Thank you so much.
thank you
big big thanks
the best tutor ever!
Thanks a lot
For windows people finding this tutorial just now and using git bash to run the createsuperuser, you need to add 'winpty' at the start. More info here: stackoverflow.com/questions/32532900/not-able-to-create-super-user-with-django-manage-py
great thnx
For some reason my host does not allow to go to admin site no matter which browser i try. Anyone has an idea why?
Sir page not found
In admin section
Is the model already added to the database since it was previously saved already? If so then does registering it only save it to our admin?
Even though I have last function you added to the models.py file in my models.py file, my code still shows this 👇
am using django version 2.1 on a windows PC , any help on how to fix this?
add the __str__ function inside the class. Probably u have add the function outside the class
@@relaxgg3077 It's work. Thanks!
thx
I have the def __str__(self): return self.title in my models.py but the Django Admin articles is still showing "Article Object" for each item... ???
have you made sure that the function is indented so it is within the class
@@oliverromm5869 tnx ,i had the same problem
I do the same thing but articles does not appear after
admin.site.register(Article)
Nevermind it's there
MAGIC
@@dustbinsavesyou8283 how have you fixed it? i dont see it either
@@jdmandal8885 Probably he was writing "sites" instead of "site". I did this
Simply try to log out and log in, it should help
def __str__(self) is not working with me, titles still show like this : XXXX object.
i did manage.py makemigrations, as well as manage.py migrate..
any idea why isn't working? thanks
it is the function of the class Article. and has to be on the same indentation as the class. Try this and then it will work
@@OvaisDIYGarage i figured out the problem, it was an def should be inside the class, not outside it. thanks for reply :)
@@ladyking83 Worked for me. Thanks :)
How can you make your own Admin UI? without using Django Admin.
for stose trying to do this on Linux, and getting 'Trying to write a readonly DB' error
go to terminal
navigate to your django project
type
sudo chown YOUR_USERNAME:YOUR_USERNAME db.sqlite3
type your password
DONE
this command shal give you permission to write to DB, happy hacking)))
if you want to sort list in order follow this link :
eureka.ykyuen.info/2014/12/12/django-sort-the-djano-admin-list-table-by-specific-field/