Django community: RSS
This page, updated regularly, aggregates Django links from the Django community.
-
How to Move a Django Model to Another App – Real Python
Guidelines: Choose the Best Approach In this tutorial, you’ve learned how to move a Django model from one app to another in three different ways. Here’s a comparison of the approaches described in this tutorial: MetricCopy DataChange TableRename Table Fast✗✔️✔️ No downtime✗✔️✔️ Sync related objects✗✔️✔️ Preserve naming convention✔️✗✔️ Built-in ORM support✔️✔️✔️ Reversible✔️✔️✔️ Note: The table above suggests that renaming the table preserves Django’s naming convention. While this is not strictly true, you learned earlier that Django can use introspection to overcome the naming issues associated with this approach. Each of the approaches above has its own advantages and disadvantages. So, which approach should you use? As a general rule of thumb, you should copy the data when you’re working with a small table and you can afford some downtime. Otherwise, your best bet is to rename the table and reference the new model to it. That said, every project has its own unique requirements. You should choose whichever approach makes the most sense for you and your team. -
Django + Stripe Made Easy — dj-stripe 2.3.0 documentation
-
Django Stripe Tutorial | TestDriven.io
-
WhiteNoise — WhiteNoise 5.0.1 documentation
-
django-webtest/django-webtest: django-webtest provides integration of Ian Bicking's WebTest (http://docs.pylonsproject.org/projects/webtest/) with django's testing framework.
-
Changing / Rotating Django Secret Key without logging users out!
-
Second-guessing the modern web - macwright.org
The emerging norm for web development is to build a React single-page application, with server rendering. The two key elements of this architecture are something like: The main UI is built & updated in JavaScript using React or something similar. The backend is an API that that application makes requests against. This idea has really swept the internet. It started with a few major popular websites and has crept into corners like marketing sites and blogs. I’m increasingly skeptical of it. There is a sweet spot of React: in moderately interactive interfaces. Complex forms that require immediate feedback, UIs that need to move around and react instantly. That’s where it excels. I helped build the editors in Mapbox Studio and Observable and for the most part, React was a great choice. But there’s a lot on either side of that sweet spot. The high performance parts aren’t React. Mapbox GL, for example, is vanilla JavaScript and probably should be forever. The level of abstraction that React works on is too high, and the cost of using React - in payload, parse time, and so on - is too much for any company to include it as part of an SDK. … -
GitHub - paul-wolf/djaq: Django queries
-
JustDjango
2.3K/month subscription business model. not a fan of the design but content might be nice. -
Full Stack React & Django [5] - Django Token Authentication - YouTube
-
Building Multi Tenant Applications with Django — Building Multi Tenant Applications with Django 2.0 documentation
-
Dockerizing a Python Django Web Application - Semaphore Tutorial
I thought I was going to start on this project during my week off but lol I am definitely not going to -
agusmakmun/django-markdown-editor: Markdown Editor plugin for Django (great to use outside default django admin)
markdown + Django. -
Using Webpack with Django: no plugins required!
"How to setup Django with Webpack, without plugins to glue them together, using both Django static _and_ Webpack." -
django-recurrence — django-recurrence 1.10.2 documentation
Docs » django-recurrence Edit on GitHub django-recurrence django-recurrence is a utility for working with recurring dates in Django. It provides: Recurrence/Rule objects using a subset of rfc2445 (wraps dateutil.rrule) for specifying recurring date/times; RecurrenceField for storing recurring datetimes in the database; a JavaScript widget. Contents -
Caching in Django | TestDriven.io
Caching is typically the most effective way to boost an application's performance. For dynamic websites, when rendering a template, you'll often have to gather data from various sources (like a database, the file system, and third-party APIs, to name a few), process the data, and apply business logic to it before serving it up to a client. Any delay due to network latency will be noticed by the end user. -
lorinkoz/django-unmigrate: Smart reversion of Django migrations based on Git diff
If you are in a complex Django project, sometimes you will find yourself switching between multiple branches, some of which can add a number of database migrations. Before switching back to master you will have to unapply all migrations that are specific to the current branch. In order to unapply these, you will have to enter the migration that comes right before the first migration of the current branch. If two or more apps are involved, you will have to do that for each one of them. If you leave your migration names unchanged, inferring the name of the right migration to target is not too difficult, because they are prefixed by default with a sequential number. Django also helps, being smart enough to let you use an unambiguous prefix of any migration name. Add a merge migration and the numbers will no longer be so obvious. Or if you have renamed your migration files as this article recommends, you will have to do the search manually. With django-unmigrate you can speed up the process. -
How do I generate 1,000 objects in Django and DRF to test? | Jeff Triplett
I am using Django Rest Framework and I need to test an endpoint with at least 1,000 objects. But putting that in a cycle doesn’t seem very optimal to me. Do you know of any way to create objects in bulk within the tests? -
Django Testing Cheat Sheet
-
Pythonic News
https://news.ycombinator.com/item?id=21818220 -
(1) Best task queue and message broker to use? : django
-
Django Commands' Arguments
While developing django applications many times it is necessary to perform one time operation. For example while building recurring payments with Paypal, because later does not provide a way to do that in developer dashboard, we needed to develop one time solution to add plans and products. In this screencast you will learn the basics of designing beautiful command line interface. -
User Interaction With Forms · Matt Layman
-
Subscription Based Payments with Django : django
In only 4 lessons you will learn how to add subscription based payments to your django projects! Lesson 1 - is a general overview of how payment gateways relate to django application Lesson 1 and 2 - adds Stripe payments into the picture. We apply here theory learned in lesson 1 Lesson 4 - is all about PayPal integration Last lesson one is PRO. All PRO lessons are free until June 2020, you will need only to sign up to access them. Enjoy learning! -
GitHub - eudicots/Cactus: Static site generator for designers. Uses Python and Django templates.
Static site generator for designers. Uses Python and Django templates. - eudicots/Cactus