Build a Backend REST API with Python & Django

Build a Backend REST API with Python & Django Skills Python Django djangorestframework Aws Git Use the below Git commands in the Windows Command Prompt or macOS Terminal. Configure default email and name git config –global user.email “[email protected]” git config –global user.name “Your Name” Initialise a new Git repository Commit changes to Git git add . git commit -am “Commit message” Set Git remote

Read more

Example project demonstrating using Django’s test runner with Coverage.py

Example project demonstrating using Django’s test runner with Coverage.py Set up with: python -m venv –prompt . venv source venv/bin/activate python -m pip install -r requirements.txt Run tests in parallel mode with coverage with this combination of commands: coverage erase && coverage run manage.py test –parallel 2 && coverage combine && coverage report You can also omit the number 2 to use as many test processes as there are CPU cores.But on Django < 4.0 this will trigger a warning: [...]

Read more

BloodDonors: Built using Django REST Framework for the API backend and React for the frontend

By Daniel Yuan, Alex Tian, Aaron Pan, Jennifer Yuan As the pandemic raged, one of the side effects was an urgent shortage of blood donations throughout the world. As only 38% of the population is eligible to donate, it is imperative that we find a way to incentivize donors to continue to donate consistently and frequently to save the most lives. We decided to gamify the process and create a full stack web application to serve the needs of both […]

Read more

A full stack e-learning application, the backend using django restframework and docker

API Service backing client interfaces Technologies Description Getting Started Getting started with this project is very simple, all you need is to have Git and Docker Engine installed on your machine. Then open up your terminal and run this command git clone https://github.com/decadevs/devsprime-api.git to clone the project repository. Change directory into the project folder cd devsprime-api and build the base python image used for the project that was specified in dockerfile by running docker build . Note the dot (.) […]

Read more

A Django Online Library Management Project

I started learning📖Django few months back, and this is a practice project from MDN Web Docs that touches the aspects of Django relatively broadly. This project is about an effort to take a small library online, hence the name locallibrary. Designing the LocalLibrary Models Before we jump in and start coding the models, it’s worth taking a few minutes to think about what data we need to store and the relationships between the different objects. We know that we need […]

Read more

Drop-in replacement of Django admin comes with lots of goodies, fully extensible with plugin support

GitHub – sshwsfc/xadmin: Drop-in replacement of Django admin comes with lots of goodies, fully extensible with plugin support, pretty UI based on Twitter Bootstrap. Drop-in replacement of Django admin comes with lots of goodies, fully extensible with plugin support, pretty UI based on Twitter Bootstrap. – GitHub – sshwsfc/xadmin: Drop-in replacement of Django …    

Read more

Django StatusPage : App to display statuspage for your services

Its page what will check your services is online or not Setup python -m venv .venv ..venvScriptsactivate pip install -r requirements.txt python manage.py makemigrations python manage.py migrate python manage.py runserver After that start python manage.py check_status There are executed all checks of services. It should run if you want check services status. Testing flake8 pytest –cov –cov-report html python manage.py test

Read more

Django sample app with users including social auth via Django-AllAuth

Simple, out-of-the-box Django all-auth demo app A “brochure” or visitor (no login required) area A members-only (login required) area. Supports local email/password as well as easy oauth with Google, Facebook and others. This is a simple, old-style HTML request/response website.No webpack, node, JavaScript framework.Objective is to get you a basic, visitor-and-member website operational quickly. tl;dr Get your Facebook and/or Google app creds (see sections below for more info); Clone or download the repo; then Follow instructions below: $ cd demo-allauth-bootstrap […]

Read more

Django blog – complete customization and ready to use with one click installer

django-blog-it Simple blog package developed with Django. Features: Dynamic blog articles Blog pages Contact us page (configurable) google analytics SEO compliant Installation Install django-blog-it using the following command: pip install django-blog-it (or) git clone git://github.com/micropyramid/django-blog-it.git cd django-blog-it python setup.py install Add app name in settings.py: INSTALLED_APPS = [ ‘………………’, ‘simple_pagination’, ‘django_blog_it.django_blog_it’, ‘………………’ ] Include the django_blog_it urls in your urls.py: from django.conf.urls import    

Read more

A reusable Django model field for storing ad-hoc JSON data

jsonfield is a reusable model field that allows you to store validated JSON, automatically handling serialization to and from the database. To use, add jsonfield.JSONField to one of your models. Note: django.contrib.postgres now supports PostgreSQL’s jsonb type, which includes extended querying capabilities. If you’re an end user of PostgreSQL and want full-featured JSON support, then it is recommended that you use the built-in JSONField. However, jsonfield is still useful when your app needs to be database-agnostic, or when the built-in […]

Read more
1 3 4 5 6 7 9