tag: tutorial

Creating the official Django Polls app Part 8
Maria D. Campbell
In this section, we install the Django Debug Toolbar, configure the toolbar so it appears in the browser when we run our development server, learn that we can customize the toolbar, run our Django Polls project in the browser to view the toolbar, are introduced to resources where we can access other third party packages to use in our applications, and are provided with next steps.
#fullstack development, #macOS, #django, #python3, #django commons, #django debug toolbar, #django settings, #pip, #series, #third party packages, #tutorial

Creating the official Django Polls app Part 7
Maria D. Campbell
In this section, we customize the Question admin form, add Choice related objects to the admin form, customize the admin change list, add search capability to the admin interface, customize the admin look and feel, and customize our project's templates.
#fullstack development, #macOS, #django, #python3, #admin change list customization, #admin form, #admin interface, #admin interface search capability, #series, #template customization, #tutorial

Creating the official Django Polls app Part 6
Maria D. Campbell
In this section, we add static files to our Django Polls application configured for local development.
#fullstack development, #macOS, #django, #python3, #local development, #series, #staticfiles, #static template tag, #tutorial

Creating the official Django Polls app Part 5
Maria D. Campbell
In this section, we are introduced to automated testing. We discuss what automated testing is, why it's important to create tests, basic testing strategies, write our first test to identify a bug, fix the bug, create more comprehensive tests for Question.recently_published(), test a view, analyze the tools available to us in testing, are introduced to the Django test client, improve our PollsIndexView, test our new PollsIndexView, test the PollsDetailView, and break down the refactored PollsDetailView (which originally contained a bug which I fixed).
#fullstack development, #macOS, #fixing bugs, #identifying bugs, #series, #test client, #testing strategies, #tutorial, #unittest

Creating the official Django Polls app Part 3
Maria D. campbell
In this section, we write our first Django app, discuss URL patterns, write more views in polls/views.py, write views that actually work, re-write the index view, create a templates directory in the polls directory, implement template namespacing, add Django code to index.html, update the index view to use the new index.html template, implement the render() shortcut, implement raising a 404 error in the detail view, use get_object_or_404() in the detail view, discuss Model's manager in Django, discuss Manager names, use template tags in the template engining system, remove the hardcoded URL in the template in polls/index.html, and namespace our URL names.
#fullstack development, #macOS, #django, #python3, #404, #model manager, #render shortcut, #series, #templates, #template namespacing, #tutorial, #urlpatterns, #views

Creating the official Django Polls app Part 4
Maria D. Campbell
In this section, we add a minimal form to our polls.detail.html template, update the function based vote view, create a polls/results.html template, refactor our polls/urls.py to match the new generic views, and install DJLint to format our Django templates.
#fullstack development, #macOS, #djlint, #forms, #function based views, #generic class based views, #series, #tutorial

Creating the official Django Polls app Part 2
Maria D. Campbell
In this section, I set up the Django Polls database, explained/set LANGUAGE_CODE, USE_I18N, USE_THOUSAND_SEPARATOR, NUMBER_GROUPING, USE_TZ, and INSTALLED_APPS, create the polls models, activate the models, play with the API in the interactive Python shell, discuss the Django admin interface, create a superuser, start the development server, register polls app in polls/admin.py, and discuss the Question form in the admin interface.
#fullstack development, #macOS, #django, #admin forms, #installed_apps, #language_code, #number_grouping, #series, #time zone, #tutorial, #use_i18n, #use_thousand_separator, #use_tz

Creating the official Django Polls app table of contents
Maria D. Campbell
Creating the official Django Polls app table of contents.
#fullstack development, #macOS, #django, #python 3, #series, #tutorial

Creating the official Django Polls app Part 1
Maria D. Campbell
In this section, I create a directory to house my Django Polls application, check if I have Django installed, select my Python interpreter, install virtualenv with pip, create a virtual environment for Django Polls, activate and deactivate the virtual environment, install Django, upgrade Django, create a project in Django Polls, initialize git, start up the Django development server, create an app called polls, write a first view, create a URLconf for the index view, and configure the global URL configuration.
#fullstack development, #macOS, #django, #django app, #django project, #development server, #git, #pip, #python 3, #python interpreter, #runserver, #series, #tutorial, #urlconf, #views, #virtualenv, #virtual environment