Django REST framework Quickstart
Project setup # Create the project directory $ mkdir tutorial $ cd tutorial # Create a virtualenv to isolate our
Continue readingEverything should be made as simple as possible, but not simpler – Einstein
Project setup # Create the project directory $ mkdir tutorial $ cd tutorial # Create a virtualenv to isolate our
Continue readingInstall 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 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 reading
Recent Comments