Showing posts with label django. Show all posts
Showing posts with label django. Show all posts

Using Amazon S3 to Store Django Static and Media Files

Great article about using Amazon S3 to store Django static and media files.

Here's how: Using Amazon S3 to store your Django sites static and media files.

./M6

Debug Email in Web Applications

Email debugging may be painless.

This simple technique shows how one can do it in a very simple way.
It aims at Django applications, but the first technique is actually a generic one that anyone can use if Python is installed in the development machine: Debugging email on Django application development

./M6

EHCP VirtualHost Django Applications Configuration

While deploying a Django application on an Easy Hosting Control Panel environment following the guide about how to configure virtual hosts totally failed because the configuration was not written in the correspondent Apache file.

So, I had to hack the system in order to make it work. It's as simple as edit the
/var/www/new/ehcp/apachehcp.conf
file where all virtual hosts are defined.

./M6

Stripe, Payments for Developers

While developing in Django, sometimes one needs to access a payment system.
Django is a development framework and it does not have payment plugins like VirtueMart or Magento.

One possible and fast solution is to use Stripe.
It's focused to help developers to overcome the payment solution implementation, it has wrappers for Ruby, PHP, Python and more.

./M6

Setting Up Django Applicatications in Production

Setting up a Django application in a production environment is not as straight forward as one usually is used to. Currently, there are two ways to deploy a Django application:
  1. Deploying on our own server, using WSGI.
  2. Deploying on a shared hosting environment, using FastCGI, SCGI, or AJP.
Django’s primary deployment platform is WSGI, the Python standard for web servers and applications, which requires Apache and mod_wsgi.

But when it comes to deploy, Django official documentation seems superseded by the Linode Library Deploy Python/Django Applications with Apache and mod_wsgi tutorials, an easy to follow step-by-step tutorial, available for several distros.

./M6

jQuery Calendar Date Picker in Django Forms

A common problem that developers face in Django is to have a calendar picker.
Here's a simple solution how to set up jQuery Calendar Date Picker in Django.

./M6

PDF generation in Django

Working with Django is very easy. And when it comes to output an PDF instead of an HTML page, simplicity still applies. Check this post: PDF generation with PISA in Django ./M6

Painless Django Kickoff

I'm learning Django and, so far, I'm enjoying it.
But putting it to work, as a simple development environment on my laptop, was harder than I expected. Specially when it came to install the MySQL-Python connector.

If you'r looking for a great step-by-step tutorial, I recommend Starting a Django 1.6 Project the Right Way.

If you're starting with Django, or are having trouble setting Python with MySQL, maybe this will help: Painless Django with MySQL Install.

./M6