Harvard CS50W - Web Programming with Python and JavaScript
Cards in this deck
(22 cards)Preview terms and definitions before starting your study session.
Book?Book.objects.all(). This returns a QuerySet containing all Book instances in the database.filter() and get() in Django ORM.filter(): Returns a QuerySet containing objects that match the given lookup parameters. It can return zero, one, or multiple objects.</li><li>get(): Returns a single object matching the given lookup parameters. If no object or more than one object is found, it raises an exception (DoesNotExist or MultipleObjectsReturned, respectively).</li></ul>Author with name='Jane Doe'?Author.objects.create(name='Jane Doe'). Alternatively, you can instantiate the model and then save it:author = Author(name='Jane Doe')
author.save()python manage.py makemigrations</li><li>To apply migrations to the database: python manage.py migrate</li></ul>Related Flashcard Sets
Explore similar study materials created by the community
Harvard CS50 Web Programming with Python and JavaScript
Master full-stack web development with this high-yield flashcard deck covering Harvard CS50W's core concepts. Dive into HTML5, CSS3, JavaScript, Python/Django, SQL, and React to build dynamic, data-driven web applications.
Harvard CS50W - Web Programming with Python & JavaScript
Master full-stack web development with this high-yield CS50W flashcard deck covering Django, JavaScript, HTML5/CSS, RESTful APIs, and web security.
Series 7 Exam - Options Strategies & Municipal Securities
Master key Series 7 Exam concepts with high-yield flashcards covering options calculations, straddles, spreads, tax-equivalent yield, and FINRA/MSRB regulations. Designed for maximum retention and exam-day success.
Neuroscience - Action Potentials & Synaptic Transmission
Master the biophysical foundations of neurophysiology with high-yield flashcards covering the Nernst and GHK equations, action potential kinetics, ion channel mechanics, and synaptic transmission.