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
Sistema administrador de contranas desarrollador en Django

Sistema Contrasenas Desarrolado en Django Proyecto sistema de administracion de contraseñas, de la experiencia educativa Programacion Segura Descripci

Ibrain Rodriguez Espinoza 1 Sep 24, 2022
Django Phyton Web Apps template themes

Django Phyton Web Apps template themes Free download source code project for build a modern website using django phyton web apps. Documentation instal

Mesin Kasir 4 Dec 15, 2022
💨 Fast, Async-ready, Openapi, type hints based framework for building APIs

Fast to learn, fast to code, fast to run Django Ninja - Fast Django REST Framework Django Ninja is a web framework for building APIs with Django and P

Vitaliy Kucheryaviy 3.8k Jan 01, 2023
Django/Jinja template indenter

DjHTML A pure-Python Django/Jinja template indenter without dependencies. DjHTML is a fully automatic template indenter that works with mixed HTML/CSS

Return to the Source 378 Jan 01, 2023
Tweak the form field rendering in templates, not in python-level form definitions. CSS classes and HTML attributes can be altered.

django-widget-tweaks Tweak the form field rendering in templates, not in python-level form definitions. Altering CSS classes and HTML attributes is su

Jazzband 1.8k Jan 02, 2023
A slick ORM cache with automatic granular event-driven invalidation.

Cacheops A slick app that supports automatic or manual queryset caching and automatic granular event-driven invalidation. It uses redis as backend for

Alexander Schepanovski 1.7k Jan 03, 2023
A Django web application that shortens long URLs. This is a demo project to show off my tech abilities.

Django URL Shortener This project is just a complete and production-ready URL shortener web application to show off my tech and coding abilities. Impo

Seyyed Ali Ayati 5 Jan 26, 2022
Django model mixins and utilities.

django-model-utils Django model mixins and utilities. django-model-utils supports Django 2.2+. This app is available on PyPI. Getting Help Documentati

Jazzband 2.4k Jan 04, 2023
Forgot password functionality build in Python / Django Rest Framework

Password Recover Recover password functionality with e-mail sender usign Django Email Backend How to start project. Create a folder in your machine Cr

alexandre Lopes 1 Nov 03, 2021
Django GUID attaches a unique correlation ID/request ID to all your log outputs for every request.

Django GUID Now with ASGI support! Django GUID attaches a unique correlation ID/request ID to all your log outputs for every request. In other words,

snok 300 Dec 29, 2022
Django web apps for managing schedules.

skdue Description Skdue is a web application that makes your life easier by helping you manage your schedule. With the ability which allows you to cre

Patkamon_Awai 1 Jun 30, 2022
Twitter-clone using Django (DRF) + VueJS

Twitter Clone work in progress 🚧 A Twitter clone project Table Of Contents About the Project Built With Getting Started Running project License Autho

Ahmad Alwi 8 Sep 08, 2022
With Django Hijack, admins can log in and work on behalf of other users without having to know their credentials.

Django Hijack With Django Hijack, admins can log in and work on behalf of other users without having to know their credentials. Docs 3.x docs are avai

1.2k Jan 05, 2023
Blog focused on skills enhancement and knowledge sharing. Tech Stack's: Vue.js, Django and Django-Ninja

Blog focused on skills enhancement and knowledge sharing. Tech Stack's: Vue.js, Django and Django-Ninja

Wanderson Fontes 2 Sep 21, 2022
The little ASGI framework that shines. 🌟

✨ The little ASGI framework that shines. ✨ Documentation: https://www.starlette.io/ Community: https://discuss.encode.io/c/starlette Starlette Starlet

Encode 7.7k Dec 31, 2022
Displaying objects on maps in the Django views and administration site.

DjangoAdminGeomap library The free, open-source DjangoAdminGeomap library is designed to display objects on the map in the Django views and admin site

Vitaly Bogomolov 31 Dec 28, 2022
A ToDO Rest API using Django, PostgreSQL and Docker

This Rest API uses PostgreSQL, Docker and Django to implements a ToDo application.

Brenno Lima dos Santos 2 Jan 05, 2022
Django Login Api With Python

How to run this project Download and extract this project Create an environment and install all the libraries from requiements.txt pip freeze -r requi

Vikash Kisku 1 Dec 10, 2021
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
Django server-side adapter for Inertia.js

django-inertia Django server-side new adapter for Inertia.js. Getting Started Install the package pip install django-inertia Configure your project A

Samuel Girardin 14 Sep 16, 2022