httpie for Django REST app test
Install or upgrade the httpie with pip to test RESTful Django application apis. $ pip install –upgrade httpie Then, with
Continue readingEverything should be made as simple as possible, but not simpler – Einstein
A journal of code, dev info, personal memo and photo by ja.chong
Install or upgrade the httpie with pip to test RESTful Django application apis. $ pip install –upgrade httpie Then, with
Continue readingTo add ‘django_filters’ in INSTALLED_APPS, django-filter should be installed. Notice that there is no s at the end of the
Continue readingWith python 2.x use virtualenv $ virtualenv env This will make a virtual environment with current python version. If current
Continue readingfrom: http://django-debug-toolbar.readthedocs.io/en/stable/installation.html To install and activate debug_toolbar, $ pip install django-debug-toolbar add ‘debug_toolbar’ to INSTALLED_APPS settings. Make sure the ‘django.contrib.staticfiles’ is
Continue readingfrom: https://stackoverflow.com/questions/31275574/reverse-for-success-url-on-django-class-based-view-complain-about-circular-impor for the classes inherited from generic.edit.CreateView, success_url = url.name does not work because: Using reverse in your method works
Continue readingIf login_required decorator is used, and the django project is under sub-site, settings.LOGIN_URL and settings.LOGIN_REDIRECTED_URL can be set with url
Continue readingfrom: https://stackoverflow.com/questions/6964297/untrack-files-from-git-temporarily When I cloned my project in a different machine, I realized some symbolic links are broken with different paths.
Continue readingfrom: http://stackoverflow.com/questions/21405457/autoincrement-versioncode-with-gradle-extra-properties To auto-increment the build number of an android app, following gradle code can be used: proj.android-studio/app/build.gradle apply plugin: ‘com.android.application’
Continue readingThe Xcode project file is under build directory as following: cocos2d-x-3.13.1/build/cocos2d_tests.xcodeproj
Continue readingfrom: cocos2d-x 3.13 tests/cpp-tests/Classes/SpineTest/SpineTest.cpp To add Spine animation into cocos2d-x 3.10: #include <spine/spine-cocos2dx.h> using namespace spine; … bool SpineTestPerformanceLayer::init() {
Continue reading
Recent Comments