Sane and flexible OpenAPI 3 schema generation for Django REST framework

Sane and flexible OpenAPI 3.0 schema generation for Django REST framework. This project has 3 goals: Extract as much schema information from DRF as possible. Provide flexibility to make the schema usable in the real world (not only toy examples). Generate a schema that works well with the most popular client generators. The code is a heavily modified fork of the DRF OpenAPI generator, which is/was lacking all of the below listed features. Features Serializers modelled as components. (arbitrary nesting […]

Read more

Country-specific Django helpers, to use in Django Rest Framework

Country-specific serializers fields, to Django Rest Framework Documentation (soon) The full documentation is at https://django-rest-localflavor.readthedocs.org. Quickstart Install django-rest-localflavor: pip install django-rest-localflavor Then use it in a project: INSTALLED_APPS = ( # … ‘rest_framework’, ‘rest_localflavor’, ) GitHub https://github.com/gilsondev/django-rest-localflavor    

Read more

Django module to easily send templated emails using django templates

Overview django-templated-email is oriented towards sending templated emails. The library supports template inheritance, adding cc’d and bcc’d recipients, configurable template naming and location. The send_templated_email method can be thought of as the render_to_response shortcut for email. Make sure you are reading the correct documentation: develop branch: https://github.com/vintasoftware/django-templated-email/blob/develop/README.rst stable pypi/master: https://github.com/vintasoftware/django-templated-email/blob/master/README.rst Requirements Python (3.6, 3.7, 3.8, 3.9) Django (2.2, 3.1, 3.2) We highly recommend and only officially support the latest patch release of each Python and Django series. Getting going – […]

Read more

Middleware that Prints the number of DB queries to the runserver console

Inspired by this post by David Szotten, this project gives you a middleware that prints DB query counts in Django’s runserver console output. Installation pip install django-querycount Just add querycount.middleware.QueryCountMiddleware to your MIDDLEWARE. Notice that django-querycount is hard coded to work only in DEBUG mode set to true Settings There are two possible settings for this app: The first defines threshold values used to color output, while the second allows you customize requests that will be ignored by the middleware. […]

Read more

Help to create computed or custom fields more friendly and easy way in django

Collection of admin fields, decorators and mixin to help to create computed or custom fields more friendly and easy way Installation Requirements: Django > 1.8 and Python > 3.5 pip install django-admin-easy==0.6.1 For Django < 1.8 or Python 2.x pip install django-admin-easy==0.4.1 How it Works When you want to display a field on Django Admin, and this field doesn’t exist in your Model or you need to compute some information, like a Image or Link, you will need to create [...]

Read more

Django-admin fixture generator command

django-admin commands which generate fixture data for your given apps’s models using Mimesis data generator. requirementspip install django pip install mimesis pip install pyyaml pip install colorama installationpip intall mockangoINSTALLED_APPS = [ … ‘mockango’, ] usage app_labels(positional): labels of app you need fixture data for them –num(optional)(default=10): number of object generate for each model –foramt(optional)(default=yaml): format of fixture file –locale(optional)(default=en): supported mimesis localespython manage.py generatedata posts –num 5 –format yaml –locale fa examples models.pyclass Post(models.Model): title = models.Charfield(max_length=200) text = […]

Read more

Django project starter on steroids: quickly create a Django app AND generate source code for data models + REST/GraphQL APIs

We’re a Django project starter on steroids! One-line command to create a Django app with all the dependencies auto-installed AND Easy config (alpha release) to generate Django code for: setting up package managers (pipenv, poetry, virtualenv) setting web servers (dev, gunicorn, uwsgi) connecting to different databases (MySQL, PostgreSQL, SQLite3) data models CRUD API (REST, GraphQL) unit tests and test coverage reporting autogenerated test factories (FactoryBoy) linting and code formatting (autopep8, isort) API documentation (Swagger, ReDoc) Quick start Run the following […]

Read more

A live profiling and inspection tool for the Django framework

Silk is a live profiling and inspection tool for the Django framework. Silk intercepts and stores HTTP requests and database queries before presenting them in a user interface for further inspection: SECURITY NOTE: Because Silk stores all HTTP requests into the database in plain text, it will store the request’s sensitive information into the database in plain text (e.g. users’ passwords!). This is a massive security concern. An issue has been created for this here. Contents Requirements Silk    

Read more

An open source platform that facilitates the creation, sharing, and collaborative use of geospatial data

GeoNode GeoNode is a geospatial content management system, a platform for the management and publication of geospatial data. It brings together mature and stable open-source software projects under a consistent and easy-to-use interface allowing non-specialized users to share data and create interactive maps. Data management tools built into GeoNode allow for integrated creation of data, metadata, and map visualization. Each dataset in the system can be shared publicly or restricted to allow access to only specific users. Social features like […]

Read more

An attempt at open-source reimplementation of DraciDoupe.cz (referred to as DDCZ in this text)

Graveyard is an attempt at open-source reimplementation of DraciDoupe.cz (referred to as DDCZ in this text). Developer’s documentation is at Read the Docs. Production will be running at http://nove.dracidoupe.cz/ Contributions Contributions are welcome provided you agree your work will be shared under the same license as Graveyard (MIT). Please use black for code formatting. If you don’t know where to start, take a look at the roadmap or ask Almad on development Slack or in Pošta on DraciDoupe.cz. Please install […]

Read more
1 5 6 7 8 9