Django 1.0 Website Development.
Build powerful web applications, quickly and cleanly, with the Django application framework.
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Pub.,
2009.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Django 1.0 Web Site Development; Django 1.0 Web Site Development; Credits; About the author; About the reviewer; Preface; What this book covers; Who this book is for; Conventions; Reader feedback; Customer support; Downloading the example code for the book; Errata; Piracy; Questions; 1. Introduction to Django; MVC pattern in web development; Why Python?; Why Django?; Tight integration between components; Object-Relational Mapper; Clean URL design; Automatic administration interface; Advanced development environment; Multilingual support; History of Django; Summary; 2. Getting Started.
- Installing the required softwareInstalling Python; Installing Python on Windows; Installing Python on UNIX/Linux; Installing Python on Mac OS X; Installing Django; Installing Django on Windows; Installing Django on UNIX/Linux and Mac OS X; Installing a database system; Creating your first project; Creating an empty project; Setting up the database; Launching the development server; Summary; 3. Building a Social Bookmarking Application; A word about Django terminology; URLs and views: creating the main page; Creating the main page view; Creating the main page URL.
- Models: designing an initial database schemaThe link data model; The user data model; The bookmark data model; Templates: creating a template for the main page; Putting it all together: generating user pages; Creating the URL; Writing the view; Designing the template; Populating the model with data; Summary; 4. User Registration and Management; Session authentication; Creating the login page; Enabling logout functionality; Improving template structure; User registration; Django forms; Designing the user registration form; Account management; Summary; 5. Introducing Tags; The tag data model.
- Creating the bookmark submission formRestricting access to logged-in users; Methods for browsing bookmarks; Improving the user page; Creating a tag page; Building a tag cloud; A word on security; SQL injection; Cross-Site Scripting (XSS); Summary; 6. Enhancing the User Interface with AJAX; AJAX and its advantages; Using an AJAX framework in Django; Downloading and installing jQuery; The jQuery JavaScript framework; Element selectors; jQuery methods; Hiding and showing elements; Accessing CSS properties and HTML attributes; Manipulating HTML documents; Traversing the document tree.
- Handling eventsSending AJAX requests; What next?; Implementing live searching of bookmarks; Implementing basic searching; Implementing live searching; Editing bookmarks in place; Implementing basic bookmark editing; Implementing in-place editing of bookmarks; Auto-completion of tags; Summary; 7. Voting and Commenting; Sharing bookmarks on the main page; The SharedBookmark data model; Modifying the bookmark submission form; Browsing and voting for shared bookmarks; The popular bookmarks page; Commenting on bookmarks; Enabling the comments application; Creating a view for comments.