Cargando…

Web development with Django cookbook : over 90 practical recipes to help you create scalable websites using the Django 1.8 framework /

Annotation

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Bendoraitis, Aidas (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, 2016.
Edición:Second edition.
Colección:Quick answers to common problems.
Temas:
Acceso en línea:Texto completo
Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with Django 1.8; Chapter 2: Database Structure; Chapter 3: Forms and Views; Chapter 4: Templates and JavaScript; Chapter 5: Custom Template Filters and Tags; Chapter 6: Model Administration; Chapter 7: Django CMS; Chapter 8: Hierarchical Structures; Chapter 9: Data Import and Export; Chapter 10: Bells and Whistles; Chapter 11: Testing and Deployment; Index; Introduction; Working with a virtual environment; Creating a project file structure
  • Handling project dependencies with pipMaking your code compatible with both Python 2.7 and Python 3; Including external dependencies in your project; Configuring settings for development, testing, staging, and production ; environments; Defining relative paths in the settings; Creating and including local settings; Setting up STATIC_URL dynamically for Subversion users; Setting up STATIC_URL dynamically for Git users; Setting UTF-8 as the default encoding for MySQL configuration; Setting the Subversion ignore property; Creating the Git ignore file; Deleting Python-compiled files
  • Respecting the import order in Python filesCreating app configuration; Defining overwritable app settings; Introduction; Using model mixins; Creating a model mixin with URL-related methods; Creating a model mixin to handle creation and modification dates; Creating a model mixin to take care of meta tags; Creating a model mixin to handle generic relations; Handling multilingual fields; Using migrations; Switching from South migrations to Django migrations; Changing a foreign key to the many-to-many field; Introduction; Passing HttpRequest to the form; Utilizing the save method of the form
  • Uploading imagesCreating a form layout with django-crispy-forms; Downloading authorized files; Filtering object lists; Managing paginated lists; Composing class-based views; Generating PDF documents; Implementing a multilingual search with Haystack; Introduction; Arranging the base.html template; Including JavaScript settings; Using HTML5 data attributes; Opening object details in a modal dialog; Implementing a continuous scroll; Implementing the Like widget; Uploading images by Ajax; Introduction; Following conventions for your own template filters and tags
  • Creating a template filter to show how many days have passed since a post was published; Creating a template filter to extract the first media object; Creating a template filter to humanize URLs; Creating a template tag to include a template if it exists; Creating a template tag to load a QuerySet in a template; Creating a template tag to parse content as a template; Creating a template tag to modify request query parameters; Introduction; Customizing columns on the change list page; Creating admin actions; Developing change list filters; Customizing default admin settings