Backend with Django .

Related tags

Django_backend
Overview

BackendCode - Cookies

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):
		return self.name

class Premium(models.Model):
	name = models.CharField(max_length=255)
	price = models.IntegerField(default=0)
	Packitems = models.ManyToManyField(Pack)

	class Meta:
		"""Meta definition for Premium."""

		verbose_name = "Premium"
		verbose_name_plural = "Premium"

	def __str__(self):
		return self.name

Service

class Competences(models.Model):
	name = models.CharField(max_length=255)

	class Meta:
		"""Meta definition for Competences."""

		verbose_name = "Competences"
		verbose_name_plural = "Competences"

	def __str__(self):
		return self.name

class Stacks(models.Model):
	name = models.CharField(max_length=255)
	competences = models.ManyToManyField(Competences)

	class Meta:
		"""Meta definition for Stacks."""

		verbose_name = "Stacks"
		verbose_name_plural = "Stacks"

	def __str__(self):
		return self.name

class Experts(models.Model):
	name = models.CharField(max_length=255)
	surname = models.CharField(max_length=255)
	email = models.EmailField(unique=True)
	description = models.TextField()
	phone = models.CharField(max_length=25)
	whatsapp = models.CharField(max_length=25)
	telegram = models.CharField(max_length=25)
	# image = models.ImageField(upload_to="images/experts/", height_field=None, width_field=None)
	satcks = models.ManyToManyField(Stacks)

	class Meta:
		"""Meta definition for Experts."""

		verbose_name = "Experts"
		verbose_name_plural = "Experts"

	def __str__(self):
		return self.name

class Tarifs(models.Model):
	name = models.CharField(max_length=25)
	items = models.IntegerField(default=1)
	price = models.CharField(max_length=10)

	class Meta:
		"""Meta definition for Tarifs."""

		verbose_name = "Tarifs"
		verbose_name_plural = "Tarifs"

	def __str__(self):
		return self.name

class Services(models.Model):
	name = models.CharField(max_length=255)
	description = models.TextField()
	tarifs = models.ManyToManyField(Tarifs)
	favoris = models.BooleanField(default=False)
	experts = models.ManyToManyField(Experts)

	class Meta:
		"""Meta definition for Services."""

		verbose_name = "Services"
		verbose_name_plural = "Services"

	def __str__(self):
		return self.name	

Store

class Images(models.Model):
    name = models.CharField(max_length=255)
    # image = models.ImageField(upload_to="images/", height_field=None, width_field=None)
 
    class Meta:
        """Meta definition for Images."""

        verbose_name = "Images"
        verbose_name_plural = "Images"

    def __str__(self):
        return self.name

class Produit(models.Model):
    name = models.CharField(max_length=255, unique=True)
    slug = models.SlugField(max_length=255)
    image = models.ManyToManyField(Images)
    number = models.IntegerField(default=1)
    price = models.CharField(max_length=10)
    description = models.TextField(blank=True)

    class Meta:
        """Meta definition Produit."""

        verbose_name = "Produit"
        verbose_name_plural = "Produit"

    def get_absolute_url(self):
        return reverse('produit:detail', args=[self.slug])

    def __str__(self):
Owner
just to do it
a startup of @jupiters. upcookie is a website of smaller publish.
just to do it
Dashboad Full Stack utilizando o Django.

Dashboard FullStack completa Projeto finalizado | Informações Cadastro de cliente Menu interatico mostrando quantidade de pessoas bloqueadas, liberada

Lucas Silva 1 Dec 15, 2021
Django Course Project - TextCorrector

Django-TextUtils Django Course Project A tool for analyzing text data in Django backend. It is a project where you can do some of the things with you

1 Oct 29, 2021
Analytics services for Django projects

django-analytical The django-analytical application integrates analytics services into a Django project. Using an analytics service with a Django proj

Jazzband 1.1k Dec 31, 2022
Djangoblog - A blogging platform built on Django and Python.

djangoblog 👨‍💻 A blogging platform built on Django and Python

Lewis Gentle 1 Jan 10, 2022
Automatically upgrade your Django projects.

django-upgrade Automatically upgrade your Django projects. Installation Use pip: python -m pip install django-upgrade Python 3.8 to 3.10 supported. Or

Adam Johnson 525 Dec 29, 2022
An opinionated Django CMS setup bundled as an Aldryn Addon

Aldryn CMS |PyPI Version| An opinionated django CMS setup bundled as an Aldryn Addon. This package will auto configure django CMS including some extra

Vladimir Bezrukov 1 Nov 12, 2021
A Django application that provides country choices for use with forms, flag icons static files, and a country field for models.

Django Countries A Django application that provides country choices for use with forms, flag icons static files, and a country field for models. Insta

Chris Beaven 1.2k Jan 07, 2023
A django integration for huey task queue that supports multi queue management

django-huey This package is an extension of huey contrib djhuey package that allows users to manage multiple queues. Installation Using pip package ma

GAIA Software 32 Nov 26, 2022
The Django Leaflet Admin List package provides an admin list view featured by the map and bounding box filter for the geo-based data of the GeoDjango.

The Django Leaflet Admin List package provides an admin list view featured by the map and bounding box filter for the geo-based data of the GeoDjango. It requires a django-leaflet package.

Vsevolod Novikov 33 Nov 11, 2022
Backend with Django .

BackendCode - Cookies Documentation: https://docs.djangoproject.com/fr/3.2/intro/ By @tcotidiane33 & @yaya Models Premium class Pack(models.Model): n

just to do it 1 Jan 28, 2022
Probably the best abstract model / admin for your tree based stuff.

django-treenode Probably the best abstract model / admin for your tree based stuff. Features Fast - get ancestors, children, descendants, parent, root

Fabio Caccamo 360 Jan 05, 2023
GeoDjango provides geospatial extensions to the Django web dev framework

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. All documentation is in the "docs" directo

Paul Smith 20 Sep 20, 2022
Django-environ allows you to utilize 12factor inspired environment variables to configure your Django application.

Django-environ django-environ allows you to use Twelve-factor methodology to configure your Django application with environment variables. import envi

Daniele Faraglia 2.7k Jan 07, 2023
Django-static-site - A simple content site framework that harnesses the power of Django without the hassle

coltrane A simple content site framework that harnesses the power of Django with

Adam Hill 57 Dec 06, 2022
PostgreSQL with Docker + Portainer + pgAdmin + Django local

django-postgresql-docker Running PostgreSQL with Docker + Portainer + pgAdmin + Django local for development. This project was done with: Python 3.9.8

Regis Santos 4 Jun 12, 2022
A simple trivia quizzz web app made using django

Trivia Quizzz A simple trivia quizzz web app made using django Demo http://triviaquizzz.herokuapp.com/ & https://triviaquiz.redcrypt.xyz Features Goog

Rachit Khurana 2 Feb 10, 2022
Chatbot for ordering and tracking a Pizza.

Pizza Chatbot To start the app, follow the below steps: Clone the repo using the below command: git clone Shreya Shah 1 Jul 15, 2021

Add Chart.js visualizations to your Django admin using a mixin class

django-admincharts Add Chart.js visualizations to your Django admin using a mixin class. Example from django.contrib import admin from .models import

Dropseed 22 Nov 22, 2022
This is a repository for collecting global custom management extensions for the Django Framework.

Django Extensions Django Extensions is a collection of custom extensions for the Django Framework. Getting Started The easiest way to figure out what

Django Extensions 6k Dec 26, 2022
English dictionary using Django based on freecodecamp

English Dictionary Hi there, i made this english dictionary using Django based on freecodecamp.org tutorial :) Table of Contents Preview Technologies

Aline Alencar 3 May 09, 2022