Friday, April 19, 2013

Introducing django-annoying



Let's face it. There are lots of problems that we encounter when developing using Django framework. The main problems are listed below. This is where django-annoying comes in. It alleviates some of the issues in Django and provides some useful solutions.
Main Problems:
- A wise man said, "Try and except is much slower in python".
- Static files serving
Solution:
- Use django-annoying
        django-annoying eliminates certain annoyance in Django framework.
Example usage:
from annoying.functions import get_object_or_None

def get_user(request, user_id):
    user = get_object_or_None(User, id=user_id)
    if not user:
        ...

Normal installation:
1. pip install django-annoying
2. go into site-packages and copy annoying directory
3. paste it into your project directory
Shortcut installation:
I took the liberty of attaching the annoying folder along with this post so you don't have to install django-annoying to get a copy of the annoying folder. So all you have to do is download the attachment, unzip it, and copy the annoying folder into your project directory.
For more information, please have a look at their wiki page:

7 comments:

  1. Let's face it. There are lots of problems that we encounter when developing using Django framework. The main problems are listed below. This is where django-annoying comes in. It alleviates some of the issues in Django and provides some useful solutions.essay checker

    ReplyDelete
  2. Outdoor Advertising Association Of The Philippines. essay checker

    ReplyDelete
  3. I read this article. I think You put a lot of effort to create this article. I appreciate your work. Pokemon Go Philippines

    ReplyDelete
  4. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!. Iron Man Car

    ReplyDelete
  5. Thanks for sharing this information. I really like your blog post very much. You have really shared a informative and interesting blog post with people..
    Real Estate

    ReplyDelete
  6. Thanks for sharing. Django is the powerful framework of Python. Kanhasoft is the leading Django web development company in India and USA. With the team of 45 experienced Web developers, we are outsourcing mobile and web application services to Canada, USA, Denmark, Australia, South Africa and more.

    ReplyDelete
  7. Great job!!! I recently saw your blog and your blog content is very comprehensive with depth explanation. Thank you much more for sharing with us...! Software Testing Services in Sweden

    ReplyDelete