Category: Python

  1. Updated

    Send Email Attachments with Unicode Filenames in Django

    Category: Python, Web Development

    Use MIMEApplication and set the attachment header yourself. Otherwise Gmail shows a Chinese filename as noname.

  2. Updated

    Debug your Django project

    Category: Python, Web Development

    How to debug in Django, the good way

  3. Updated

    coverage.py: Python code coverage

    Category: Python

    coverage.py is what coveralls.io and nose use under the hood. Basically the whole Python community does. Install, .coveragerc, and running it.

  4. Updated

    Travis-CI for Python: a .travis.yml example

    Category: Python, Web Development

    A working .travis.yml for a Python project: multiple envs, Python 2.7 and 3.3, apt packages, and coveralls after success.

  5. Updated

    How to Set a Variable in Django Templates?

    Category: Python, Web Development

    Creating a custom template tag for assigning variables in Django template.

  6. Updated

    lxml: Parse HTML or XML with XPath in Python

    Category: Python, Web Development

    It might look old school, but `lxml` is the most feature-rich and easy-to-use library for processing XML and HTML in Python.

  7. Updated

    Submit your Python Library to PyPI (Python Package Index)

    Category: Python

    Sharing your Python Packages on PyPI!

  8. Updated

    pyenv: Python Version Manager

    Category: Python

    A simple Python version management. It is recommended to use pyenv and pipenv together.