Mobil Mewah

Salah satu sumber Inspirasi.

Sunday, 26 June 2016

Restrict user command using SUDO in Linux

Linux Security Police : Sudo In Linux world we can restrict a user to run a specific command that need to be root privileges. Just use sudo and give sudo permission to user. But wait, that will give a super user privileges to the given user. They can do any Root user do, reboot, shutdown, rm -Rf /*  . Oh my, so what can we do. In sudo still we can permit a user to run a specific command as a root level user, without giving all the root access...

Thursday, 9 June 2016

Rest API with Django REST framework

When working with REST Api in your own application, you want to create a REST api which is follow the web standard of REST. In python , especially Django Worl, you can use Django REST framework. It support the REST Method , GET, POST, PUT, DELETE and handle it for you in the back ground. So with this blog post, i want to have a post about my experience on working with Django REST framework. I never use it until my requirement for application goes...

Tuesday, 7 June 2016

updgrade Django-1.7.11 to 1.8.13

After upgrade my django to 1.7.11 , now the next version is 1.8.13. So as usual i create a new virtualenv, with django-1.8.13 as the requirement, install the env with pip install. The application affected which i use some are documented here. Error on django-compressor-1.6 library.I try upgrade to django-compressor-2.0 and it fixed. Django complain about south database module 'south.db.postgresql_psycopg2'. The warning tell to just remove south or using other supported database in south on SOUTH_DATABASE_ADAPTER settings.As Django have the build in migration, i will remove south package from my installation settings, and also remove the...

Page 1 of 2512345Next
Twitter Delicious Facebook Digg Stumbleupon Favorites More