Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Django Bootcamp

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4
At a glance
Powered by AI
This class covers modern Django development using technologies like CoffeeScript, Less CSS, HAMLpy and more.

This class will teach Django development alongside technologies like CoffeeScript, Less CSS, HAMLpy, Underscore.js to learn modern web development.

Attendees should have an intermediate understanding of Python and common web technologies like HTML and CSS. Basic JavaScript knowledge is helpful but not required.

Django Bootcamp Syllabus

PyOhio 2012 presented by Agile Hog What is this all about? This is about you learning to do Modern Django development. What do I mean by modern? Django by itself is a fantastic framework for web development but there are many more technologies that we use in modern web development rather than just Django. This class will teach you Django sure, but it will also teach you CoffeeScript, Less CSS, HAMLpy, Underscore.js, and more. What you need to participate Attendees are expected to have at least an intermediate understanding of the Python Programming langauge and of common web technologies like HTML, and CSS. It is also helpful to have at least a basic understand technologies like JavaScript but this isn't required. Who am I? I run a Columbus based Agile development shop specializing in Django and Ruby on Rails development. I have been programming for close to 12 years, 8 of which I've done professionally, 4 of which has been in web design and development. I hold a B.S. In Game Design and Development from Full Sail University in Winter Park, Florida. I started programming in middle and high school with VB6 and C++ went to college to learn game development, then spent a few years doing modeling and simulation for the Air Force under a contract for Northrop Grumman. I left that position to pursue a career in web development, spent 2 years doing Java EE before saying Fuck this shit and starting doing Django and Rails. My Blog: www.codearchaeologist.org Agile Hog: www.agilehog.com Twitter: @raymondchandler Github: kitanata Reddit: kitanata

Agenda Introduction and Audience Profile Install Python 2.7 Virtual Environment Install Virtual Environment Install PIP Activate the Virtual Environment Installing Django Setting Up Django Project django-admin.py startproject command settings.py file Introduction to model-view-template (MVC) the manage.py file Creating an App the manage.py startapp command the models.py file the views.py file creating the static and template directories INSTALLED_APPS in settings.py Introduction To Git Creating an initial repository Signing up for a Github account git add, git status, git log git commit, git push, git pull Creating Models Creating the Chirp model. An introduction to model fields Syncing the database for the first time Introduction to South What is South? What is a migration? Auto generating basic migrations The schemamigration and migrate commands Creating the Admin Creating the ChirpAdmin admin An introduction to ModelAdmin

Creating a view (Django's Controller) Creating the ChirpList view Request objects The URL dispatcher Capturered paramaters Creating the Template (Django's View) Creating the ChirpList template Tying a Chirp model to a user Pimping Out the Admin list_display list_filter Introduction to grappelli (Let's install that sucker) Pimping out the Template Introduction to blocks and the base template pattern Introduction to HAML Using django_haml and HAMLPy Rewriting the ChirpList template in HAML Introduction To Django Compressor installing django compressor installing node.js, coffeescript, and less configuring the compressor pre-compilers Introduction to Twitter Bootstrap Putting Twitter Bootstrap in an App Configuring Twitter Bootstrap Stealing an Example Introduction to Less CSS A better way to do css. Hierarchical in nature Variables, includes and Mixins, Oh My! Introduction to CoffeeScript A better way to write JavaScript. Functions, classes, variables etc. Introduction to Underscore.js Functional programming and lambdas for JavaScript Were going to use it in CoffeeScript. Back to the View Writing the ChirpDetail view and template Writing the ChirpCreate view and template

Making the Shit Pretty Let's write a ton of HAML and Less Back to the Models Writing the User Profile model. Implementing a profile template and view. Implementing Cultists Back to the View On the detail and list pages for chirps show the user who posted it and links back to their profile. On the profile page show a button to Cult the user. If you are already one of their Cultists then show that clearly. Writing the Auto-Updater An introduction to AJAX Installing JQuery (because it makes everything easy) Timing an update request every 30 seconds. Writing the update handler in django. Responding to the request. Updating the page automatically based on other people tweets.

You might also like