A Powerful HTML white space remover for Django

HTML Whitespace remover for Django Introduction : A powerful tool to optimize Django rendered templates Why use “django_stip_whitespace” ? Adds line break to InlineJS. It can automagically minify inline CSS, JS. Removes from HTML. It speeds up website by reducing the HTML size. Drop in replacement for django.gzip.GzipMiddleware. It compiles regex at runtime. So it’s blazing fast. Its mostly based on C ( gzip ) and Rust ( minify-html ) libraries. Significantly    

Read more

Backend with Django

Documentation: https://docs.djangoproject.com/fr/3.2/intro/ By @tcotidiane33 & @yaya Models Premium class Pack(models.Model): name = models.CharField(max_length=255) items = models.IntegerField(default=1) class Meta: “””Meta definition for Pack.””” verbose_name = “Pack” verbose_name_plural = “Pack” def __str__(self):    

Read more

Twitter clone using Django (DRF) + VueJS

work in progress 🚧 A Twitter clone project Table Of Contents About The Project this is an experimental project that I choose to learning more about frontend and backend and how they work together. Built With Django Rest Framework Vue JS Docker Getting Started Assume you’ve installed python, node, docker (optional), redis (for email queue) to run the project. Running locally with docker 🐳 clone the git repository

Read more

A GitHub Action for checking Django migrations

Django migrations checker A GitHub Action for checking Django migrations About This repository contains a Github Action that checks Django migrations against known issues when running with Postgres in a high-load environment or using rolling deploys. It assumes that migrations are run before new versions of your code starts rolling out. The current checkers are based on our experience at Oda and looks for paterns we know can be problematic. Usage NOTE: This is currently unfinished, it will not post […]

Read more

Client data provider API

Client data provider API. You can check this application working at: https://drf-clients-api.herokuapp.com/ Documentation: https://drf-clients-api.herokuapp.com/doc Features Endpoints GET /clients -> Display all the clients data registered in the database. POST /clients -> Create a new client. GET /clients/cpf_filter/{cpf} -> Display the client with the specified cpf. –example: /clients/cpf_filter/94099913236 GET /clients/gender_filter/{gender} -> Display all the clients with the specified gender. –example: /clients/gender_filter/F GET /clients/state_filter/{state} -> Display all the clients that live in the specified state. –example: /clients/state_filter/Acre GET /clients/{id}/ -> Display the […]

Read more

A simple E-commerce shop made with Django and Bulma

A Simple E-Commerce app made with Django Instructions Make sure you have python installed Step 1. Open a terminal Step 2. Paste the given code in the terminal git clone https://github.com/foxy4096/Interiorshop Step 3. Now type this in the terminal Step 4. Now paste this in the terminal python -m venv env # and .envScriptsactivate or for *nix system source .envScriptsactivate #and then type pip install -r requirements.txt Step 5. Now type

Read more

Reusable, generic mixins for Django

Mixins for Django’s class-based views. Documentation Read The Docs Installation Install from PyPI with pip: pip install django-braces Building the Docs Install docs requirements: pip install -r requirements-docs.txt. cd docs. make html. Open _build/index.html in your browser. Contributing See our contribution guide Add yourself to CONTRIBUTORS.txt if you want. All development dependencies are available in requirements.txt file. To run the test suite, please install tox and as many Python interpreters as you’d like to test against. Currently we test against […]

Read more

Organize Django settings into multiple files and directories. Easily override and modify settings

Organize Django settings into multiple files and directories. Easily override and modify settings. Use wildcards in settings file paths and mark settings files as optional. Read this blog post for more information. Also, check this example project. Requirements While this package will most likely work with the most versions of django, we officially support: This package has no dependencies itself. In case you need older python / django versions support, then consider using older versions    

Read more

A personal django website for forum posts, it includes login, registration and forum posts with date time

This is a personal django website for forum postsIt includes login, registration and forum posts with date time. Tech / Framework used Usage To run the forum and interact with it on your local machine,navigate to the directory of the manage.py file and type: python manage.py runserver Demo & Functionalities Account login & registration Different views (About, Profile, Home) Admin panel to add posts / manage user permissions

Read more

Bootstrap 4 integration with Django

Bootstrap 4 integration for Django. Goal The goal of this project is to seamlessly blend Django and Bootstrap 4. Requirements Python 3.6 or newer with Django >= 2.2 or newer. Documentation The full documentation is at https://django-bootstrap4.readthedocs.io/ Installation Install using pip: pip install django-bootstrap4 Alternatively, you can install download or clone this repo and call pip install -e .. Add to INSTALLED_APPS in your settings.py:    

Read more
1 2 3 4 5 9