Skip to content

Instantly share code, notes, and snippets.

@pvanfas
pvanfas / Awesome Django.md
Last active May 27, 2025 15:56
An awesome package is one that is mature (not recently released), is well maintained, has a good amount of users, has good documentation, follows the best practices, and which latest release is less than 1 year old. Awesome Django packages and projects are the ones that inspire and serve as examples.

Awesome Django Awesome

The Best and awesome Django resource for packages.

A curated list of awesome Django apps, projects and resources.

Table of Contents

@revant
revant / nginx-files.conf
Last active August 27, 2024 13:00
Frappe CORS for nginx
location / {
rewrite ^(.+)/$ $1 permanent;
rewrite ^(.+)/index\.html$ $1 permanent;
rewrite ^(.+)\.html$ $1 permanent;
# Allow CORS for static files
add_header Access-Control-Allow-Origin $cors_origin;
add_header Access-Control-Allow-Methods "GET, OPTIONS";
location ~* ^/files/.*.(htm|html|svg|xml) {