olasitarska on master
Making post_detail.html more co… Merge pull request #362 from ve… (compare)
bmispelon on master
Provide alternative runserver c… Merge pull request #359 from Al… (compare)
bmispelon on master
fixing broken github link Merge pull request #358 from gs… (compare)
Here is a sample project using Django’s native auth methods and postgresql
vancha112it's an introductory tutorial, and in it they made a couple of models for an application that stores books
vancha112but they made Genre(a book can have a genre, and a genre can have multple books?) extend the model class, but they made author a field of a book model? Not sure why they didn't just make genre a field instead of a model then?
nikzjonAre you talking about this?
nikzjonFrom tutorial: The connecting line between the boxes shows that Book and a Genre are related. The numbers close to the Genre model show that a book must have one or more Genres (as many as you like), while the numbers on the other end of the line next to the Book model show that a Genre can have zero or many associated books.
@TurinngT_twitter what do you mean by send data to another template??
You need to understand that template is not controlling data. Views.py control everything you see in browser. So try to implement a generic function/class inside view and use it inside view definitions to share dynamic data.
Since its windows, I recommend Github Desktop app instead. So no worry about nano or anything. Its great for beginners. https://desktop.github.com/
That way you dont need to use command line to work with git. Github Desktop is great tool in windows and macos, but not in linux.
Hi there, I am doing the tutorial from home and am at Starting the web server. I appear to have successfully executed python manage.py migrate but when I query the browser (Chrome) with http://127.0.0.1:8000/ I get the message This site can’t be reached127.0.0.1 refused to connect.
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED. Any suggestions? Thank you.