Thanks for the great staff content Tim :-), but there is no tutorial on how to deploy the projects that we made.
@ayushganguli13595 жыл бұрын
I have been trying to figure out this thing since long. Many tutorial exclude this part and it really becomes difficult to develop web application after that. Most tutorial teach you login and register but they exclude this part. The concept has been explained really well.
@tertiusvanbiljon32112 жыл бұрын
Thanks Tim. This tutorial has helped me tremendously and looking forward to moving on to many of your other tutorials.
@PlaneToTheBrainES5 жыл бұрын
Please cover custom user models too, if you can. Great content! Greetings
@edwardnovais75 жыл бұрын
When I try to make migrations, I got this error: You are trying to add a non-nullable field 'user' to todolist without a default; we can't do that (the database needs something to populate existing rows). Please select a fix: 1) Provide a one-off default now (will be set on all existing rows with a null value for this column) 2) Quit, and let me add a default in models.py
@M4RCO254 жыл бұрын
have you found a solution yet?
@gustavvilaca4 жыл бұрын
@@M4RCO25 this worked for me stackoverflow.com/questions/31357346/error-you-are-trying-to-add-a-non-nullable-field
@yusufyildirim24383 жыл бұрын
i said 1 and again it worked tried taht
@ezchu5742 жыл бұрын
add default parameter to the user model will solve this issue. Eg: user = models.ForeignKey(User, on_delete=models.CASCADE, default='1', related_name='todolist', null=False)
@YOUJOJOJOJO4 Жыл бұрын
Thank you dude@@ezchu574
@romamyronenko6 ай бұрын
Thanks! This is the best django tutorial that I found!
@youngscientistacademy76893 жыл бұрын
Thanks Tim, this was an excellent series. Keep up the great work!
@hbk2015-r2g4 жыл бұрын
Hi Tim. Will you at some point be following up with a deployment tut?
@saarang75724 жыл бұрын
Deployment Tutorial please? Btw great course :)
@oscarwignall96334 жыл бұрын
Hi Tim, love the videos! Any chance you could find the time for a deployment video?
@gaganjandu1044 ай бұрын
Glad I am introduced to django by you. It did not freak me out instead I am confident with this app template we made along with you. I am soon gonna be levelling up.
@Miggy97 Жыл бұрын
Is there a way to fix this migration issue without having to delete your entire database?
@vikt0r_sha4 жыл бұрын
Thank you so much. I am lucky to bump into your video, cause todolist site on django is my university's work. Thank you for explaining and showing everything!
@jackneely94045 жыл бұрын
I followed along without issue until this episode. "table main_todolist has no column named user_id" I don't understand why I'm getting this error.
@jackneely94045 жыл бұрын
Solved: Missing indentation before: "return HttpResponseRedirect("/%i" %t.id)" ============== in views.py
@jackneely94045 жыл бұрын
Steps taken: Deleted all instances of __pycache in directory Deleted all components of "migrations" folders in directory that were not __init__.py Deleted db.sqlite3 Performed makemigrations and migrate in command line Performed new createsuperuser in command line Side-effect: All database information lost (Users, Items, To do lists)
@GeneralBlorp5 жыл бұрын
@@jackneely9404 Solved, yet missing all your data? That doesn't seem to be a great solution if you have to wipe your entire DB? A better solution is coding with an IDE so that you don't miss indentation issues!
@jackneely94045 жыл бұрын
@@GeneralBlorp I'm glad I coded this in Sublime, since it was my first time using Django and I'm learning, but I definitely plan on using an IDE for future projects. Which IDE would you use? Edit: I didn't realize there was an easier way to rollback migrations. "python manage.py migrate my_app ####_previous_migration" Etc.
@GeneralBlorp5 жыл бұрын
@@jackneely9404 Oh I'm surprised that sublime didn't show you the indentation thing. I use PyCharm :) Great on any OS. Good point on the rollback - I'm glad you are continuing on your path and learning lots! Cheers.
@GAFM015 жыл бұрын
When I clicked Create New... it doesn't show the added one
@rayganmudberry3755 жыл бұрын
please make complete series of django tim. thank you and god bless you.
@JoeyJooste Жыл бұрын
Thanks a lot for the intro to python. Super fun project even all 4 years later
@Eisenwächter4 жыл бұрын
Hey Tim.... I‘m Holger from Germany and I really like your vids. Thanks for sharing your experience. What I would really like to know more about is the deployment steps... I can‘t find good videos about how to deploy the whole package with python backend to a host/Webserver. Maybe you could make a video about it?
@tusharjain26594 жыл бұрын
i am getting an error saying main_todolist has no column named user_id. Can anyone help me solving the problem?
@AnnaIsHere2 жыл бұрын
OperationalError no such column: testapp_todolist.user_id Looks like now I have to delete the whole database
@markduffy32984 жыл бұрын
Great series thanks. Tim did you ever do a deployment vid as can’t seem to find one?
@deaglannolan84684 жыл бұрын
If you deleted the db.sqlite and pycaches and its not letting you register new users you need to do the following: I went into the terminal and typed "python manage.py shell" (after cd'ing to mysite) and then put >>> from django.contrib.auth.models import User user = User.objects.create_user('john', 'lennon@thebeatles.com', 'johnpassword') # At this point, user is a User object that has already been saved # to the database. You can continue to change its attributes # if you want to change other fields. >>> user.last_name = 'Lennon' >>> user.save()
@nilshbawiskar59984 жыл бұрын
Thanks Tim. You have detailed each part greatly. I was in need how to get user specific data. Thanks again.
@kylemacri78274 жыл бұрын
Hey Tim, When I go to the create page and try to create new I get a 'AnonymousUser' object has no attribute 'todolist' error which then traces back to response.user.todolist.add(t). I log out and when I try to create a new user it seems fine however, when I try to login with that new user it gives me the "Please enter a correct username and password. Note that both fields may be case-sensitive." Despite just creating that user (I am definitely typing the username and password in correctly). So it seems like I am unable to login with any user including admin. You probably are unable to tell me specifically how to fix this but any help would be very appreciated.
@valeriaromanciuc18514 жыл бұрын
I'm having this exact problem. Were you able to fix it? Thanks.
@valeriaromanciuc18514 жыл бұрын
@Diego Yeah, I reached the same conclusion at the time and creating a new user did fix the problem. Thanks for the reply, hopefully this will help others with the same issue.
@M4RCO254 жыл бұрын
@@valeriaromanciuc1851 it did help me thankyou!!!!!!!
@deaglannolan84684 жыл бұрын
Heres how to fix iit. If you have successfully deleted all the pycaches and the db.sqlite then do the following: open the terminal (command prompt) and type "python manage.py shell" and then >>>from django.contrib.auth.models import User. >>>user = User.objects.create_user('john', 'lennon@thebeatles.com', 'johnpassword') # At this point, user is a User object that has already been saved # to the database. You can continue to change its attributes # if you want to change other fields. >>> user.last_name = 'Lennon' >>> user.save() This should work if you now try and enter johns details, you should also be able to register new users using the website too . Hope this helped :)
@MenegaT13374 жыл бұрын
@@valeriaromanciuc1851 I'm having this same problem, can you explain what you did to solve it?
@999marigold5 жыл бұрын
This tutorial was really very informative and cool :) thanks a lot!
@vanshbhardwaj42144 жыл бұрын
Thanks , I was looking for this , how to get user specific objects in page.
@Alshafi Жыл бұрын
Thanks Tim. At the beginning of this playlist, you said you would cover the deployment of the django website. I watched the whole playlist and that did not happen. Is there a video missing? btw, the views functions take request as an argument, not response.
@Timo-mo6or5 жыл бұрын
Hey Tim, so I remember you saying in one of your previous videos you would show us how to host our website for free. Will you still get to that? If not, could you maybe point in a general direction with a link/company name? Thanks!
@ExploringThisWorld-1234 жыл бұрын
www.heroku.com/ this is the website he mentioned in previous videos I bet you could find tutorials online as well.
@tommy11494 жыл бұрын
Hey Tim, I loved this tutorials. Could you make some a video on CustomUserModels? I'd love that!
@tarekhammami23505 жыл бұрын
Thanks so much, Tim, for your efforts. Wish you the best :))))
@justinlee34533 жыл бұрын
Hi Tim, just finished the series, gott say, I learned a lot, so thank you! If you have time, could you give a deployment tutorial! Thanks!
@hoangquyla45164 жыл бұрын
Please cover custom user models too
@quidpanic70955 жыл бұрын
When do we get the deployment video?
@elikelik35744 жыл бұрын
Nice content. Thanks a lot for your efforts. I really appreciate it. By the way, did you do a deployment video? I could not find it.
@SoggyBagelz Жыл бұрын
should totally do a deployment tutorial ;)
@GeneralBlorp5 жыл бұрын
Hm, I wish you would have commented on WHY you had to change those parameters, NULL=True and "related_name"... Changing your model to work around an issue you don't fully understand is often not the best solution, so why not comment on that decision and show why it's right in this case?
@AnetaGray Жыл бұрын
Is there a link for that deployment tutorial somewhere?
@mohammedfahadts4 жыл бұрын
Can someone help me with this error: main_todolist has no table user_id I've tried everything but can't figure out why I keep getting this error
@nafiyad19504 жыл бұрын
response.user.todolist.add(THE VARIABLE U ADJUSTED THE ToDoList to )
@mohammedfahadts4 жыл бұрын
@@nafiyad1950 thanks
@adrianprofir954 жыл бұрын
Thank you for this amazing tutorial!!
@mandyghadigaokar21674 жыл бұрын
can you please create the tutorial for the how to share the private file to particular user. view wise codding
@moshikof77785 жыл бұрын
how did you learn how to code ? and how do you keep motivated with code ?
@victorlefeu4 жыл бұрын
thanks very much! do you have a video explaining how to deploy django in IIS for instance?
@parvinkalantar23584 жыл бұрын
Thank you so much. this video was so helpful for me.
@holimasandy29372 жыл бұрын
Thank you for the tutorial. Can you please help with ecommerce, api and deployment tutorial
@ankitdtrital8666 Жыл бұрын
can you create a small video on how to delete a to-do list or give me hint on how to do it. please!!!
@sarc0074 жыл бұрын
Thanks for all your videos and tutorials it really helped. May god give you health wealth happiness and success in this world and here after. Ameen
@vignesh65854 жыл бұрын
Awesome tutorial
@hiraawan34304 жыл бұрын
please upload more videos.. i want to know how to make upload files button and how to actually post and get on page?
@bikramshrestha43994 жыл бұрын
Thanks bro Please make video on add to cart items.
@invalidsb4 жыл бұрын
Deployment Tutorial.. Sir..
@samsepoil54084 жыл бұрын
Deployment tutorial
@vrl903711 ай бұрын
Good series, thanks
@cristhiancasierra82654 жыл бұрын
You're awesome men!
@jordanrob42404 жыл бұрын
thanks this is awesome though i wish you could show us the same concept but with class based views
@KrishnaManohar80214 жыл бұрын
Tim, please continue this series.
@cicadaislive99884 жыл бұрын
make more tutorials on this especially deployment and creating big E commerce websites and blog wiht Django
@dinokrivic54865 жыл бұрын
Should we delete all in those files or the whole file?
@dinokrivic54865 жыл бұрын
I think i had deleted something i shouldnt now nothing works.
@zhozhpeppa14495 жыл бұрын
@@dinokrivic5486 the same problem man
@dinokrivic54865 жыл бұрын
@@zhozhpeppa1449 have you solved that?
@jackneely94045 жыл бұрын
I shared my problem and solution in case it's relevant to yours.
@jackneely94045 жыл бұрын
@@zhozhpeppa1449 .
@azizallame3394 Жыл бұрын
thanks tim
@paulocarsten92165 жыл бұрын
this is what am getting - anyone 'name' is an invalid keyword argument for this function What is this 'name' parameter that he is giving in the
@ExploringThisWorld-1234 жыл бұрын
You have to have been following along with his videos. It is one of the columns in his database I believe. If you have something different in your database you will need to change accordingly
@ExploringThisWorld-1234 жыл бұрын
Hard to tell without seeing your code
@dillonbarnes2323 жыл бұрын
2 years and still no deployment....
@sainco30365 жыл бұрын
thanks.
@sayamrahmanrobin29694 жыл бұрын
good good very good
@MrElectrecity4 жыл бұрын
Hi Tim I really love your work but in this video it was disappointed (:
@urbainquentin16632 жыл бұрын
Hello Tim i am still having this error even after running migrations no such column: app_todolist.user_id