🌐 Public

Django Development

By Tijs Teulings

Introduction

Getting started with web application development using Django

Tijs Teulings — Technologist at Disrupted

Added by Tijs Teulings: “if you were not already using cripsy forms this is a nice intro

1 Ana Balica - The tale of DRY with django-crispy-forms

So you have this Django app. If you are like me and don't have quite the skills for a good UI design, you probably stick to bootstrap. You know you will have a bunch of forms and you don't want to style them yourself. Let's say, you came to the idea that django-crispy-forms fits your needs perfectly (it definitely fits

Added by Tijs Teulings: “Another excellent tutorial from Thinkster. This time we're building an example AngularJS app with a Django backend.

2

In this tutorial you will build a simplified Google+ clone called "Not Google Plus" with Django and AngularJS. Before we hit the proverbial books and learn to build a rich, modern web application with Django and Angular, let's take a moment to explore the motivations behind this tutorial and how you can get the most out of it. What is

Added by Tijs Teulings: “One of the many ways to setup static file management for your Django app. This one uses neat new tools like gulp. Seems like it could work quite well.

3 Ultimate Front End Development Setup

A quick howto guide on setting up modern front-end development tools to improve your day to day work flow. You'll learn how to: Setup gulp to orchestrate everything Install gulp plugins to combine, minify and otherwise transform your files Use bower a package manager for "web things". It helps you install, track and manage CSS frameworks, JS libraries and other

Added by Tijs Teulings: “A nice and complete writeup on how to move both static and user uploaded files to S3 for a django project.

5 How to serve your media files via Amazon S3

Yesterday I migrated the media files of Publishizer.com to Amazon's Simple Storage Service. This relatively simple task took me almost five hours and was quite a frustrating experience, so I thought I better write this down for later reference. 1. Create a Group Go to https://console.aws.amazon.com/ and login From the list of services select IAM Click at Groups and then

Added by Tijs Teulings: “i forget about else all the time...

6 The Possibly Forgotten Optional `else` in Python’s `try` Statement

This post discusses the else clause in Python's try statement. Although this particular use of else may not be as forgotten and controversial as its use in Python loops, a gentle reminder of how it works and when it's useful may still be beneficial. Please note that this post only focuses on the else clause of the try statement and

Added by Tijs Teulings: “easy to do in 'old' views. easy to do in CBVs, once you've seen someone do it, too.

7 Adding Django form instance attributes

Sometimes in the clean(), clean_FOO or save() methods of a Django form, you need to have additional form instance attributes available. A sample case for this is having user_id available. This is a simple example of how to do it in Class-Based Views.

Added by Tijs Teulings: “Intro to the new Migrations in Django 1.7

9 Django Migrations - A Primer - Real Python

What's new in Django 1.7? Basically migrations. While there are some other nice features, the new migrations system is the big one. In the past you probably used South to handle database changes. However, in Django 1.7, migrations are now integrated into the Django Core thanks to Andrew Godwin, who ran this Kickstarter. He is also the original creator of

Added by Tijs Teulings: “Nice intro for Django beginners or just to get a feel for Django 1.7 if your used to older releases.

10 ArunRocks - Recreating the "Building a Blog in Django" Screencast

Few days back, Django 1.7 release candidate 1 was announced. I have never been so excited about a release in recent memory. It has a new app loading framework and schema migrations baked right in! It is also the significant release that I had been waiting for to update my original Django screencast. With more than 77 thousand views, it

Added by Tijs Teulings: “For most projects your probably better off using RQ or Huey but if you must use Celery these tips will come in handy.

11 Celery best practices

If you've worked with Django at some point you probably had the need for some background processing of long running tasks. Chances are you've used some sort of task queue, and Celery is currently the most popular project for this sort of thing in the Python (and Django) world (but there are others). While working on some projects that used

Added by Tijs Teulings: “Angular being the coolest kid on the block right now what better way to try it out then with the best Django API framework; django-rest-framework

12 Getting Started with Django Rest Framework and AngularJS

A ReSTful API is becoming a standard component of any modern web application. The Django Rest Framework is powerful framework for developing ReST endpoints for your Django based project. AngularJS is modern javascript framework for creating complex web applications within the browser. It focuses on strong separation of concerns (MVC) and dependency injection to encourage creating maintainable (and testable) modules

Added by Tijs Teulings: “Still not a big fan of CBV's but these seem like some handy tips to read if you wish to use them (or inherit a project using them).

13 Django Class-Based Generic Views: tips for beginners (or things I wish I'd known when I was starting out)

Django is renowned for being a powerful web framework with a relatively shallow learning curve, making it easy to get into as a beginner and hard to put down as an expert. However, when class-based generic views arrived on the scene, they were met with a lukewarm reception from the community: some said they were too difficult, while others bemoaned

Added by Tijs Teulings: “Not strictly Django but chances are big your running your site on Postgres and these tips will come in handy once you put your site in production.

16 Costs of a PostgreSQL connection

This blog post explains the costs of a PostgreSQL connection. TLDR; Keep the number of PostgreSQL connections low, preferably around 2*cores + hdd spindles[9]. More connections will only cause you more trouble. BackgroundPaying attention to the number of connections to PostgreSQL helped us a lot at 6Wunderkinder. We've had trouble with PostgreSQL, manifesting itself in two ways: We were running

Added by Tijs Teulings: “A reminder to not blindly add celery to your project. Don't use this code in production though but have a look at RQ for instance which is also mentioned.

17 A Celery-like Python Task Queue in 55 Lines of Code

Celery is probably the best known task queuing Python package around. It makes asynchronous execution of Python code both possible and reasonably straightforward. It does, however, come with a good deal of complexity, and it's not as simple to use as I would like (i.e. for many use cases it's overkill).

Added by Tijs Teulings: “when you actually want to deploy your project it's hard to do it without some basic operations skills. This guide seems like a good start for basic server stuff you should know.

18 Full Stack Python

Added by Tijs Teulings: “More proof of concept than anything but some neat ideas nonetheless.

19 The easiest way to add WebSockets to Django

TL;DR - I came up with a very simple solution to handle WebSockets in Django apps. You just install django-websocket-request, run a script and you have WebSockets for your Django app. The cool thing is that this solution makes Django believe its getting a (somewhat) normal HTTP request so you can reuse almost all of you application's code. Plays nicely

Added by Tijs Teulings: “Interesting use of Docker for testing, which is of course the hot shit right now.

20 Testing Django Apps with Docker

When building a Django app with many dependencies it can be easy to loose track of what is needed in order to install the application on a new system. Developer machines can have a lot of non-isolated dependencies installed from other projects. New developers trying to install an application can find it won't run properly due to undocumented dependencies. Deployments

Added by Tijs Teulings: “Very extensive tutorial/book on Django development

21 Effective Django - Effective Django

Django is a popular, powerful web framework for Python. It has lots of[ "batteries" included, and makes it easy to get up and going. But all of the power means you can write low quality code that still seems to work.

Added by Tijs Teulings: “start to finish tutorial on setting up a Django project and debugging the SQL code with django-debug-toolbar

23 Debugging SQL with the django-debug-toolbar

In this tutorial, we'll be going over how to debug SQL queries using the django-debug-toolbar. Let's get started. Please Note: This is a companion post to Learn Indexing, dammit!. IntroductionHow often have you written queries using the Django ORM, just to forget about them a second later as soon as you get the results you're looking for? Even if you

Added by Tijs Teulings: “wrap your head around a timezone

25 Managing Events with Explicit Time Zones

January 9, 2014 Recently we wanted a way to let users create real-life events which could occur in any time zone that the user desired. By default, Django interprets any date/time that the user enters as being in the user's time zone, but it never displays that time zone, and it converts the time zone to UTC before storing it,

27 Monte Carlo Simulation

Basic Income is a popular policy floating around the internet lately. The idea consists of declaring that the government will pay each living adult a fixed amount of money every month - an amount comparable to a minimum wage job. This policy would then replace all current welfare programs - welfare, unemployment, SNAP, WIC, housing vouchers, etc, would all be

Added by Tijs Teulings: “vim (or emacs for that matter) might look cool but it does not actually help you code better in my experience. feel free to disagree, we can skip the #flamewar

30 One Year Later: An Epic Review of PyCharm 2.7 from a Vim User's Perspective

This review is for the Professional Edition of PyCharm 3. It includes screenshots and sound-free video demos of PyCharm features. I will try to cut straight to the point while offering some tips from my experience. My perspective is that of a professional software developer who has used Vim, Emacs, Sublime Text, PyDev and others. For the past year and

Added by Tijs Teulings: “Even if your not going to use Angular this seems like a nice primer on creating and using a RESTful interface

31 Kevin Stone

A ReSTful API is becoming a standard component of any modern web application. The Django Rest Framework is powerful framework for developing ReST endpoints for your Django based project. AngularJS is modern javascript framework for creating complex web applications within the browser. It focuses on strong separation of concerns (MVC) and dependency injection to encourage creating maintainable (and testable) modules

32 An Architecture for Django Templates | Webteam Blog

I'm going to share the structure I use for templates when building a Django application - either from the ground up or when restructuring an existing application. The process is geared towards reusable apps, but the concepts involved are flexible. This is a framework, of sorts, and a style guide.

33 Scaling Django to 8 Billion Page Views

Posted on September 24, 2013 by mattrobenolt As we're approaching 8 billion page views per month and 45k requests per second, we've learned a couple things about delivering comments to a lot of different people. Disqus is very well known for using Django for almost all of our web traffic, and that continues to be a thing today. As with

34 Writing your first Django app, part 1

Let's learn by example. Throughout this tutorial, we'll walk you through the creation of a basic poll application. It'll consist of two parts: A public site that lets people view polls and vote in them. An admin site that lets you add, change and delete polls.We'll assume you have Django installed already. You can tell Django is installed and which

Matthew Ashman

The views expressed through this account are entirely my own. Except retweets. Those are someone ...

  • 0 Playlists
  • 0 Followers

張維倫

Freshman

  • 0 Playlists
  • 0 Followers

Карл Вернер

Freshman

  • 0 Playlists
  • 0 Followers

srinu18

Freshman

  • 0 Playlists
  • 0 Followers

Michał Srokowski

Freshman

  • 0 Playlists
  • 0 Followers

Mostafa Mahmoud Hasseib

Freshman

  • 0 Playlists
  • 0 Followers

Kush Jain

Freshman

  • 0 Playlists
  • 0 Followers

Rohit Puntambekar

Data Science at Accenture

  • 3 Playlists
  • 0 Followers

Дамир Аралбаев

Freshman

  • 0 Playlists
  • 0 Followers

Marcos Mohar Fresan

Freshman

  • 0 Playlists
  • 0 Followers

Roman Bull Di Gaetano

Freshman

  • 0 Playlists
  • 0 Followers

stranger26

Freshman

  • 0 Playlists
  • 0 Followers

Leeward Bound

Freshman

  • 0 Playlists
  • 0 Followers

Keeks Prisk

Freshman

  • 0 Playlists
  • 0 Followers

hcaltiner

Freshman

  • 0 Playlists
  • 0 Followers

Patrik Dvorak

Web-development, internet-bussiness and copywriting enthusiast

  • 1 Playlists
  • 207 Followers

NAVIN KUMAR CHAHAR

I AM HUMAN ,SIMPLE AND STRAIGHT.

  • 0 Playlists
  • 0 Followers

mchernog

Freshman

  • 0 Playlists
  • 0 Followers

msBooM

Freshman

  • 0 Playlists
  • 0 Followers

edwina

Freshman

  • 11 Playlists
  • 1 Followers
Load more

Delete your comment

Are you sure you want to delete your comment?