Use the Google Analytics API with Django

Google Analytics is a powerful tool that gives you useful insight about the traffic that arrives in your website. But together with Django, you will be able to retrieve data of your Analytics account and display it to the user, on demand.

In this post you’ll learn how to put together Django, the oauth2 protocol and the Google Analytics API.

Read More!

Google+TwitterLinkedInFacebookReddit

Django best practices IV: Models, forms, managers, urls, admin, views and signals.

This is the fourth post about I write about how to build a Django project from scratch, focusing on the project structure, internationalization and localization configuration, models, managers, views, forms and templates. Take a look at Part IPart II and Part III.

In this post, I’ll show you how to create your fist app, with its models, forms, managers, urls, adminviews and signals.

Read More!

Google+TwitterLinkedInFacebookReddit

Django testing: Doctests and Unittests

In this post, I introduce testing in Django and discuss the two common ways of performing tests: using Doctests and using the library unittest.

You’ll learn how to start writing your first test as well as the main differences between these two ways of testing.

Note: this post uses the old Test Suit, used in Django < 1.6. This is because I prefer how it discovers my test files. If you don’t like it… wait for a post on Nose, which will come soon 🙂
Read More!

Google+TwitterLinkedInFacebookReddit

Django best practices III: Install South, Localization, Internationalization and Django-registration

This is the third post about I write about how to build a Django project from scratch, focusing on the project structure, internationalization and localization configuration, models, managers, views, forms and templates. Take a look at Part I and Part II here.

In this post, I write about how to install South, how to prepare your project for internationalization and localization, and how to install and use the package django-registration to manage the registration and login of users.

Read More!

Google+TwitterLinkedInFacebookReddit