Everything is very fast with Dangasa
Project description
Dangasa is an automated library that helps you quickly create CRUD (Create, Read, Update, Delete) operations in Django REST Framework. It only serves ready-made models.
Usage
To use the Dangasa library, the user needs to follow these steps:
Installation
First, install the following libraries:
pip install dangasa
Creating a Project
To create a project, follow these steps: (the project being created must be named ‘core’)
django-admin startproject core .
python manage.py startapp home
Modifying settings.py
Modify project settings as follows:
INSTALLED_APPS = [
...
'home',
]
Creating Models in the home App
Now let’s create models in the home app:
from django.db import models
class Contact(models.Model):
name = models.CharField(max_length=100)
email = models.EmailField()
phone = models.CharField(max_length=15)
message = models.TextField()
created_at = models.DateTimeField(auto_now_add=True)
def __str__(self):
return self.name
Migrating Created Models
Migrate the created models:
python manage.py makemigrations
python manage.py migrate
Modifying urls.py
Modify project urls as follows:
from django.urls import path, include
urlpatterns = [
...
path('', include('home.urls')),
]
Using Dangasa
To use Dangasa, run:
Dangasa <app_name> <model_name>
Current Status
Dangasa home Contact
python manage.py runserver
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Dangasa-1.0.1.tar.gz.
File metadata
- Download URL: Dangasa-1.0.1.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7f2cb274c5a60a0ca83f0ba199677490947c5dca10e58467ed7b822e2e49a29
|
|
| MD5 |
20005a5fabbb11268099f8173633d1a4
|
|
| BLAKE2b-256 |
1f626c113b67a3196f40f2bf5dda7abc1f6329eca5f180433daaee64c985b6a4
|
File details
Details for the file Dangasa-1.0.1-py3-none-any.whl.
File metadata
- Download URL: Dangasa-1.0.1-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb3a1ca2382b6455b158553290ae38790fbe85a69a222f47e09b79a422048f32
|
|
| MD5 |
3b054a3d9a36150a95cf594261d42d32
|
|
| BLAKE2b-256 |
a9221e0361f9ef704211c857b4600c734a22149205b3d826957389212e8cd14a
|