Yet another and easier way to daemonize Celery

Posted on Mon 21 November 2016 in Django • Tagged with django, python, celeryLeave a comment

I wrote a post about how to run celery as daemon and it has many steps to do, many files to copy to your server, configure permissions, and configure upstart, but after sometime I found another and easier way to daemonize Celery.

In this method we will use supervisor to ...

Continue reading

Add isort and flake8 test to your Django Project

Posted on Tue 27 September 2016 in Django • Tagged with django, python, unittest, howtoLeave a comment

Unit Test Works

In this post I'll tell you how to add isort and flake8 tests to your Django project test suite, this is simple script and you can start from this point and customize you own test suite.

As they said Django is a “batteries included” web application framework, and one ...

Continue reading

How to run Celery as daemon?

Posted on Tue 20 September 2016 in Django • Tagged with django, python, celeryLeave a comment

celery smoothy

Install upstart script

Permissions

We need to make the user which will be used to run celery an owner of log and run directories.

sudo chown -R root:root /var/log/celery/
sudo chown -R root:root /var/run/celery/

Celery upstart

1- Download celeryd file from Celery official github ...

Continue reading

DjangoCon Europe 2016, me, and Django Sprints

Posted on Wed 07 September 2016 in Community • Tagged with community, Django, DjangoConLeave a comment

djangocon logo

djangocon name tag

Late in 2014 I decided to shift my development stack from Microsoft .NET Framework to Django/Python stack. It's been almost 2 years now and I'm really enjoying and learning many things. I'm so happy that I've done this leap. In 2016 I had the change ...

Continue reading

PACKT publishing ebooks and videos 50% discount offer

Posted on Wed 17 February 2016 in Python • Tagged with django, python, ebooksLeave a comment

Generously PACKT publishing is offering 50% discount on Python and Django ebook and videos. PACKT has many Python ebooks and videos from novice to advanced level, it one of the most publishing company that releases books and videos for Python and Django, If you tried to Google a book for ...

Continue reading

Send Emails Asynchronously from Django

Posted on Sun 24 January 2016 in Django • Tagged with django, python, celery, emailsLeave a comment

In this article you will learn:

  1. How to send emails from Django.
  2. How to use Celery and Django-Celery-Email to send email asynchronously.

Last week I had the chance to get my hand dirty with Celery, I used it to send emails from Django project asynchronously using Django app call djnago-celery-email ...

Continue reading

My Experience with Fitbit Customer Service

Posted on Wed 06 January 2016 in Review • Tagged with reviewLeave a comment

fitbit-logo

The start

I received Fitbit Flex as my birthday gift from my wife and I joined Fitbit community since 2013, I love the device and I love the sleep tracking feature, and with this feature now I can know why I'm feeling sleepy by data.

First Issue

Less than ...

Continue reading

DotPen review

Posted on Mon 28 December 2015 in Review • Tagged with reviewLeave a comment

I bought an iPad Mini 2 to write paper-less/eletronic notes instead of having notebook and a pen always inside my pockets, I blogged about it before, but I upgraded my stylus from Moshi Stanza Duo to DotPen, and I want to share my experince with you.

My Experience

TL ...

Continue reading

Extend Django User Model and Generic Class Based View "GCBV"

Posted on Fri 18 December 2015 in Django • Tagged with Django, PythonLeave a comment

1450356512_full.png When I started to learn Django, I used to use the function based view aka FBV and in my current project I decided to learn class based view CBV, I watched one DjangoCon videos by Andrew Pinkham to make this easier on me, and if you tried or planning to ...

Continue reading

My journey from paper note to paperless note

Posted on Sun 13 December 2015 in Developer • Tagged with notes, paprelessLeave a comment

paperless note on iPad

I really love to take notes wherever and wheneve. I like to keep my notes with me, but after buying iPad mini I decide to change my note tool from paper notes to paperless notes (e-notes), but I like to hand writing my notes I want something that feels like ...

Continue reading