Index
A
- access
- restricting, to connected members / Restricting access to the connected members
- restricting, in views / Restricting access to views
- restricting, to URLs / Restricting access to URLs
- accommodations, physical server
- simple hosting / Selecting the physical server
- dedicated server / Selecting the physical server
- virtual server / Selecting the physical server
- addslashes, template filters / The template filters
- admin module
- about / The admin module
- advantages / The admin module
- installing / Installing the module
- using / Using the module
- aggregation methods
- Count() method / The queryset methods
- Sum() method / The queryset methods
- Max() method / The queryset methods
- Min() method / The queryset methods
- Avg() method / The queryset methods
- AJAX
- using, in task manager / Working with AJAX in the task manager
- all() method / The queryset methods
- any character regular expression
- Apache HTTP Server / Selecting the server software
- application
- creating / Creating an application
- configuring / Configuring the application
- testing / Testing our application
- Asynchronous JavaScript and XML (AJAX) / Web 2.0
- as_p method / Template of a Django form
- as_table method / Template of a Django form
- as_ul method / Template of a Django form
- authentication module
- using / How to use the authentication module
- Django application, configuring / Configuring the Django application
- UserProfile model, editing / Editing the UserProfile model
- auto_now option / The temporal field type
- auto_now_add option / The temporal field type
- Avg() method / The queryset methods
B
- BigIntegerField() / The numerical field type
- blank option / Options common to all fields of models
- BSON (binary JSON) format / Selecting the server database
C
- capfirst, template filters / The template filters
- capfirst filter
- about / The capfirst filter
- CBV
- creating / Using a custom class CBV update
- character classes
- using / Character classes
- characters
- validating, with regular expressions / Validating the number of characters
- CharField / The UserProfile model
- choices option / Options common to all fields of models
- conditional statement
- executing / Conditional statements
- connection.py view
- creating / Login and logout pages
- Count() method / The queryset methods
- CreateView.as_view
- about / An example of minimalist usage
- CreateView CBV
- using / The CreateView CBV
- minimalist usage example / An example of minimalist usage
- Cross-Site Request Forgery (CSRF)
- about / CSRF protection
- CSRF attack
- execution steps / CSRF protection
- CSRF protection / CSRF protection
- CSS selectors / CSS selectors in jQuery
- cut, template filters / The template filters
D
- data
- obtaining, from database / Getting data from the database
- database
- data, obtaining from / Getting data from the database
- records, updating / Updating records in the database
- date, template filters / The template filters
- DateField / The UserProfile model
- DateTimeField / The UserProfile model
- db_column option / Options common to all fields of models
- db_tables attribute / The model meta attributes
- DEBUG parameter / Configuring the application
- DecimalField / The UserProfile model
- decimal_places option / The numerical field type
- dedicated server / Selecting the physical server
- default, template filters / The template filters
- default option / Options common to all fields of models
- DEFAULT_CHARSET parameter / Configuring the application
- DeleteView CBV
- using / The DeleteView CBV
- DetailView CBV
- using / The DetailView CBV
- minimalist usage example / An example of minimalist usage
- extending / Extending DetailView
- developer
- adding, without Django forms / Adding a developer without using Django forms
- adding, with Django forms / Adding a developer with Django forms
- dictsort, template filters / The template filters
- dictsortreversed, template filters / The template filters
- dinstinct(field_name) method / The queryset methods
- Django
- about / What is Django?, Databases and Django
- using / Why use Django?
- installing, for Windows / Installing Django for Windows
- installing, for Linux / Installing Django for Linux
- installing, for Mac OS / Installing Django for Mac OS
- project, starting with / Starting your project with Django
- routing / Routing in Django
- dynamic templates, creating / Creating dynamic templates
- host list / Selecting the physical server
- Django application
- configuring / Configuring the Django application
- Django form
- view, writing with / The view with a Django form
- template, writing with / Template of a Django form
- Django forms
- developer, adding without / Adding a developer without using Django forms
- template, creating with HTML form / Template of an HTML form
- view, creating / The view using the POST data reception
- developer, adding with / Adding a developer with Django forms
- CSRF protection / CSRF protection
- using / Advanced usage of Django forms
- validation form, extending / Extending the validation form
- error messages, displaying / Customizing the display of errors
- widgets, using / Using widgets
- initial data, setting / Setting initial data in a form
- Django website deployment
- PIP, installing / Installing PIP and Python 3
- Python3, installing / Installing PIP and Python 3
- PostgreSQL, installing / Installing PostgreSQL
- virtualenv, installing / Installing virtualenv and creating a virtual environment
- virtual environment, creating / Installing virtualenv and creating a virtual environment
- DOM (Document Object Model) / Working with jQuery
- Don't Repeat Yourself (DRY) / Why use Django?
- DRY URLs
- creating / Creating DRY URLs
- dynamic templates
- creating / Creating dynamic templates
E
- ENGINE property / Databases and Django
- error messages
- displaying / Customizing the display of errors
- required message / Error messages (forms and models)
- min_length message / Error messages (forms and models)
- max_length message / Error messages (forms and models)
- min_value message / Error messages (forms and models)
- max_value message / Error messages (forms and models)
- error_messages option / Options common to all fields of models, Common options for the form fields
- escape, template filters / The template filters
- escapejs, template filters / The template filters
- exclude(condition) method / The queryset methods
- exclude property / The supervisor creation form
- exclude query
- using / Performing an exclude query
F
- field lookups
- __gte lookup / Using the lower and greater than lookups
- __gt lookup / Using the lower and greater than lookups
- __lt lookup / Using the lower and greater than lookups
- __lte lookup / Using the lower and greater than lookups
- fields property / The supervisor creation form
- field types
- CharField / The UserProfile model
- TextField / The UserProfile model
- IntegerField / The UserProfile model
- DateField / The UserProfile model
- DateTimeField / The UserProfile model
- DecimalField / The UserProfile model
- field types, models
- numerical field type / The numerical field type
- string field type / The string field type
- temporal field type / The temporal field type
- relationships, between models / Relationship between models
- model meta attributes / The model meta attributes
- filter(condition) method / The queryset methods
- filters
- lower filter / The upper and lower filters
- upper filter / The upper filter
- capfirst filter / The capfirst filter
- pluralize filter / The pluralize filter
- XSS filter / The escape and safe to avoid XSS filters
- linebreaks filter / The linebreaks filter
- truncatechars filter / The truncatechars filter
- first, template filters / The template filters
- floatformat, template filters / The template filters
- foreign key
- saving / Saving the foreign key
- form-based model
- about / The form based on a model
- supervisor creation form / The supervisor creation form
- form fields
- error_messages option / Common options for the form fields
- help_text option / Common options for the form fields
- required option / Common options for the form fields
- initial option / Common options for the form fields
- validators option / Common options for the form fields
- widget option / Common options for the form fields
- framework
- about / Django – a web framework
G
- generic template
- creating / Using a custom class CBV update
- get(condition) method / The queryset methods
- get parameter
- using / Using the get parameter
- Gunicorn
- installing / Installing Django, South, Gunicorn, and psycopg2
- using / Using Gunicorn
H
- height_field option / Other types of fields
- Hello world!
- displaying, in template / Displaying Hello world! in a template
- help_text option / Options common to all fields of models, Common options for the form fields
- HTML content
- obtaining / Getting back the HTML content
- setting, in element / Setting HTML content in an element
- HTML form
- template, creating / Template of an HTML form
- HttpResponse() function
- about / Creating our first view
I
- initial data
- setting, during form instantiation / When instantiating the form
- setting, during field definition / When defining fields
- initial option / Common options for the form fields
- installations
- PIP / Installing PIP and Python 3
- Python3 / Installing PIP and Python 3
- PostgreSQL / Installing PostgreSQL
- virtualenv / Installing virtualenv and creating a virtual environment
- Gunicorn / Installing Django, South, Gunicorn, and psycopg2
- psycopg2 / Installing Django, South, Gunicorn, and psycopg2
- IntegerField / The UserProfile model
- IntegerField() / The numerical field type
J
- Java Server Page (JSP) / Web 2.0
- jQuery
- working with / Working with jQuery
- advantages / Working with jQuery
- CSS selectors / CSS selectors in jQuery
- HTML content, obtaining / Getting back the HTML content
- HTML content, setting in element / Setting HTML content in an element
- elements, looping / Looping elements
- library, importing / Importing the jQuery library
- jQuery library
- importing / Importing the jQuery library
L
- LAMP (Linux Apache MySQL PHP) platform / Selecting the server database
- LANGUAGE_CODE parameter / Configuring the application
- last, template filters / The template filters
- limit_choices_to option / Relationship between models
- linebreaks, template filters / The template filters
- linebreaks filter
- about / The linebreaks filter
- linenumbers, template filters / The template filters
- Linux
- Python 3, installing for / Installing Python 3 for Linux
- setuptools, installing for / Installing setuptools for Linux
- PIP, installing for / Installing PIP for Linux
- Django, installing for / Installing Django for Linux
- ListView
- working with / Working with ListView
- minimalist usage example / An example of minimalist usage
- extending / Extending ListView
- login page
- creating / Login and logout pages
- login_required / Restricting access to views
- logout() function / Login and logout pages
- logout page
- creating / Login and logout pages
- lower, template filters / The template filters
- lower filter
- about / The lower filter
M
- Mac OS
- Python 3, installing for / Installing Python 3 for Mac OS
- setuptools, installing for / Installing setuptools for Mac OS
- PIP, installing for / Installing PIP for Mac OS
- Django, installing for / Installing Django for Mac OS
- manage.py runserver command file
- about / Creating our first URL
- many-to-many relationship / The relationship between the models
- Max() method / The queryset methods
- max_digits option / The numerical field type
- max_length message / Error messages (forms and models)
- max_length option / Other types of fields
- max_value message / Error messages (forms and models)
- MIDDLEWARE_CLASSES parameter / Configuring the application
- migration systems
- URL / Migrations with South
- Min() method / The queryset methods
- minimalist usage example, CreateView CBV
- about / An example of minimalist usage
- minimalist usage example, DetailView CBV / An example of minimalist usage
- minimalist usage example, ListView / An example of minimalist usage
- minimalist usage example, UpdateView CBV / An example of minimalist usage
- min_length message / Error messages (forms and models)
- min_value message / Error messages (forms and models)
- model
- two relationships, using / Using two relationships for the same model
- saving / Filling a model and saving it in the database
- multiple records, obtaining from / Getting multiple records
- about / An example of minimalist usage
- model instance
- obtaining, from queryset instance / Getting a model instance from the queryset instance
- updating / Updating a model instance
- model meta attributes / The model meta attributes
- model option / Relationship between models
- models
- creating / Creating simple models
- UserProfile model / The UserProfile model
- Project model / The Project model
- relationship between / The relationship between the models
- extending / Extending models
- default option / Options common to all fields of models
- null option / Options common to all fields of models
- blank option / Options common to all fields of models
- error_messages option / Options common to all fields of models
- help_text option / Options common to all fields of models
- unique option / Options common to all fields of models
- verbose_name option / Options common to all fields of models
- choices option / Options common to all fields of models
- db_column option / Options common to all fields of models
- MongoDB / Selecting the server database
- multiple records
- obtaining, from model / Getting multiple records
- updating / Updating multiple records
- MVC framework
- about / The MVC framework
- MySQL / Selecting the server database
N
- name property / Using a custom class CBV update
- NAME property / Databases and Django
- Nginx / Selecting the server software
- running / Starting Nginx
- none() method / The queryset methods
- null option / Options common to all fields of models
- numerical field type / The numerical field type
O
- one-to-one relationship / The relationship between the models
- OneToOneField relationship / Editing the UserProfile model
- on_delete option / Relationship between models
- Oracle / Selecting the server database
- ordering attribute / The model meta attributes
- OR operator
- used, in queryset / Using an OR operator in a queryset
P
- page() method
- about / Creating our first view
- physical server
- about / Selecting the physical server
- accommodations / Selecting the physical server
- PIP
- about / Installing PIP
- installing, for Windows / Installing PIP for Windows
- installing, for Linux / Installing PIP for Linux
- installing, for Mac OS / Installing PIP for Mac OS
- installing / Installing PIP and Python 3
- pluralize, template filters / The template filters
- pluralize filter
- about / The pluralize filter
- POST data reception
- used, for creating view / The view using the POST data reception
- PostgreSQL
- about / Selecting the server database
- installing / Installing PostgreSQL
- configuring / Configuring PostgreSQL
- project
- starting, with Django / Starting your project with Django
- Project model
- creating / The Project model
- psycopg2
- PyPI website
- Python 3
- installing, for Windows / Installing Python 3 for Windows
- installing, for Linux / Installing Python 3 for Linux
- installing, for Mac OS / Installing Python 3 for Mac OS
- Python3
- installing / Installing PIP and Python 3
- Python executable
Q
- queryset
- OR operator, using / Using an OR operator in a queryset
- lower lookup, using / Using the lower and greater than lookups
- greater lookup, using / Using the lower and greater than lookups
- queryset instance
- model instance, obtaining from / Getting a model instance from the queryset instance
- queryset methods
- all() method / The queryset methods
- filter(condition) method / The queryset methods
- none() method / The queryset methods
- dinstinct(field_name) method / The queryset methods
- values_list(field_name) method / The queryset methods
- get(condition) method / The queryset methods
- exclude(condition) method / The queryset methods
R
- random, template filters / The template filters
- record
- deleting / Deleting a record
- records
- updating, in database / Updating records in the database
- Regexper
- about / Regular expressions
- regular expressions
- about / Regular expressions
- uninterpreted characters / The uninterpreted characters
- used, for validating strings / The beginning and the end of the line
- any character regular expression / The any character regular expression, Character classes
- character classes / Character classes
- characters, validating / Validating the number of characters
- related objects
- recovering / Getting linked records
- related_name option / Relationship between models
- relationships
- task model, creating with / Creating the task model with relationships
- relationship types
- one-to-one relationship / The relationship between the models
- many-to-many relationship / The relationship between the models
- required message / Error messages (forms and models)
- required option / Common options for the form fields
- routing
- about / Routing in Django
- runserver command
- about / Testing our application
S
- safe, template filters / The template filters
- server database
- characteristics / Selecting the server database
- selecting, criteria / Selecting the server database
- server software
- selecting / Selecting the server software
- Apache HTTP Server / Selecting the server software
- Nginx / Selecting the server software
- session fixation
- about / About session security
- session security
- about / About session security
- session variables
- creating / Creating and getting session variables
- obtaining / Creating and getting session variables
- example / An example – showing the last task consulted
- settings.py file
- setuptools
- installing, for Windows / Installing setuptools for Windows
- installing, for Linux / Installing setuptools for Linux
- installing, for Mac OS / Installing setuptools for Mac OS
- simple hosting / Selecting the physical server
- single record
- retrieving / Getting only one record
- SmallIntegerField() / The numerical field type
- South
- about / Migrations with South
- installing / Installing South
- resetting / Editing the UserProfile model
- South extension
- using / Using the South extension
- South migration
- performing / Initial South migration
- SQLite / Selecting the server database
- startproject command / Creating an application
- static files
- using, in templates / Using static files in templates
- string field type / The string field type
- strings
- validating, regular expressions used / The beginning and the end of the line
- str method
- defining / Defining the str method
- success_url
- about / An example of minimalist usage
- Sum() method / The queryset methods
- supervisor
- creating / Saving the foreign key
- supervisor creation form / The supervisor creation form
T
- <table> tag / Web 1.0
- task manager
- AJAX, using / Working with AJAX in the task manager
- task model
- creating, with relationships / Creating the task model with relationships
- task_delete() function / Working with AJAX in the task manager
- template
- Hello world! / Displaying Hello world! in a template
- data, injecting from view / Injecting the data from the view to the template
- variables, integrating / Integrating variables in templates
- conditional statements / Conditional statements
- looping / Looping in a template
- filters, using / Using filters
- extending / Extending the templates
- static files, using / Using static files in templates
- creating, with HTML form / Template of an HTML form
- writing, with Django form / Template of a Django form
- template filters
- addslashes / The template filters
- capfirst / The template filters
- lower / The template filters
- upper / The template filters
- title / The template filters
- cut / The template filters
- linebreaks / The template filters
- date / The template filters
- pluralize / The template filters
- random / The template filters
- linenumbers / The template filters
- first / The template filters
- last / The template filters
- safe / The template filters
- escape / The template filters
- escapejs / The template filters
- default / The template filters
- dictsort / The template filters
- dictsortreversed / The template filters
- floatformat / The template filters
- template language
- key elements / Template tags
- templates language
- template tags / Template tags
- template filters / The template filters
- queryset methods / The queryset methods
- template tags
- dictionary, looping through / Loops in dictionaries
- conditional statement, executing / Conditional statements
- template_name
- about / An example of minimalist usage
- temporal field type / The temporal field type
- TextField / The UserProfile model
- TIME_ZONE parameter / Configuring the application
- title, template filters / The template filters
- to_field option / Relationship between models
- truncatechars filter
- about / The truncatechars filter
U
- Uniform Resource Locator (URL) / Web 1.0
- uninterpreted characters
- about / The uninterpreted characters
- unique option / Options common to all fields of models
- update() method / Updating multiple records
- UpdateView CBV
- using / The UpdateView CBV
- minimalist usage example / An example of minimalist usage
- extending / Extending the UpdateView CBV
- Upload_to option / Other types of fields
- upper, template filters / The template filters
- upper filter
- about / The upper filter
- URL
- creating / Creating our first URL
- URLs
- access, restricting to / Restricting access to URLs
- urls.py file
- user
- adding / Adding a user
- user.is_authenticated attribute / Login and logout pages
- UserProfile model
- creating / The UserProfile model
- editing / Editing the UserProfile model
V
- validation form
- extending / Extending the validation form
- validators option / Common options for the form fields
- values_list(field_name) method / The queryset methods
- verbose_name attribute / The model meta attributes
- verbose_name option / Options common to all fields of models
- verbose_name_plural attribute / The model meta attributes
- view
- creating / Creating our first view
- creating, POST data reception used / The view using the POST data reception
- writing, with Django form / The view with a Django form
- views
- access, restricting to / Restricting access to views
- virtualenv
- virtual environment
- virtual server / Selecting the physical server
W
- Web 1.0
- about / Web 1.0
- Web 2.0
- about / Web 2.0
- widget form
- about / The widget form
- widget option / Common options for the form fields
- widgets
- using / Using widgets
- width_field option / Other types of fields
- Windows
- Python 3, installing for / Installing Python 3 for Windows
- setuptools, installing for / Installing setuptools for Windows
- PIP, installing for / Installing PIP for Windows
- Django, installing for / Installing Django for Windows
- WorkManager folder
- copying / Adaptation of Work_manager to production
X
- XSS attack
- XSS filter