Quantcast
Channel: Latest posts from timonweb.com
Browsing latest articles
Browse All 93 View Live

How To Remove Snippets Menu Item From Wagtail CMS Admin Menu

Put this hook into wagtail_hooks.py file of your Wagtail CMS...

View Article


How To Export Django Model Data Along With Its Parent Model Data via dumpdata...

Django dumpdata command lets us export model objects as fixtures and to store them in json / xml formats.All is good and works fine until you need to export a model that is a child of a concrete model...

View Article


New in Django 1.11: Template-based widget rendering

There's a very interesting change coming with Django 1.11 - Template-based widget rendering.To make customizing widgets easier, form widget rendering is now done using the template system. In older...

View Article

Make Your Developer's Life Easier By Reducing Number Of Opened Tabs in Pycharm

When coding, I often find myself overwhelmed by a number of opened tabs in my editor. I just seem to have opened every single .py file of a Django project. And it's kinda hard to find a way in this...

View Article

Getting path and accessing persistent volumes in Docker for Mac

If you use persistent data volumes in Docker, you might want to access them via command-line. If your docker host is Linux, that's not a problem; you can find Docker volumes by /var/lib/docker/volumes...

View Article


How To Get a List Of All User Permissions Available in Django Based Project

Django comes with a simple permissions system. It provides a way to assign permissions to specific users and groups of users. The system adds "change, remove and add" permissions automatically to every...

View Article

How To Show Correct List Item Indexes When Using Pagination in Django

In your Django template put something like this:<ul>{% for object in object_list %} <li>{{ forloop.counter0|add:page_obj.start_index }}. {{ object }}</li>{% endfor %}...

View Article

How To Exclude node_modules Directory When Running collectstatic Command in...

If you use npm or yarn to install frontend packages inside your Django project, you may notice, that when you run python manage.py collectstatic command, it ends up collecting huge amounts of...

View Article


Generate Random Password Using Command-Line

This approach doesn't need any additional libraries to be installed (at least on Mac or Linux), you just open your terminal and type:openssl rand -base64 16| colrm 17 And you'll get a 16 chars long...

View Article


Make Django Rest Framework and Axios Work Together Nicely

This is a solution to the problem I encountered while marrying Django Rest Framework powered API and Axios JS HTTP client: Axios issues GET requests with multi-value parameters in a bit different way...

View Article
Browsing latest articles
Browse All 93 View Live