Skip to main content

This tool is created to ease the Django Development. Developers can use this to create and manage their Django Projects.

Project description

DjangoConjuror

DjangoConjuror is a command-line tool designed to simplify the setup and management of Django projects. It provides straightforward commands to create new projects, add applications, configure databases, and much more.

Features

  • Create Django Projects: Initialize new projects with a custom name at a specified location.
  • Add Django Apps: Add one or more applications to your Django project with ease.
  • Database Configuration: Customize database settings with options for PostgreSQL, MySQL, or SQLite.
  • Setup Static and Templates: Set up directories for static files and templates automatically.
  • CRUD Operations: Incorporate CRUD functionalities for create, read, update, and delete operations.
  • Authentication and Account Management: Includes full authentication workflows like login, signup, and logout, along with account recovery.
  • Email Functionality: Set up SMTP for email operations related to account management such as password reset.
  • Custom User Models and Templates: Use custom user models and templates for streamlined account management.

Installation

Install DjangoConjuror via pip:

pip install DjangoConjuror

Usage

Create a New Project

conjuror --create --path /path/to/project --name myproject
  • --create or -c: Start the creation of a new Django project.
  • --path or -p: Specify the project's directory.
  • --name or -n: Name the new project (defaults to "myproject" if not specified).

Add Applications

conjuror --apps app1 app2 app3

OR

conjuror -a app1 app2 app3

This command adds the specified apps to your Django project.

Setup Authentication , Account Management, Static and Template Directories

conjuror --setup-static-templates

OR

conjuror -s

This command is same as setup initializes login, signup, logout, and password recovery functionalities using Custom templates and models.

Configure Database

conjuror --database --dbtype postgres --username user --password pass --dbname dbname --host localhost --port 5432

OR

conjuror -d --dbtype postgres --username user --password pass --dbname dbname --host localhost --port 5432

At Default sqlite will be integrated As the db.

CRUD Operations

from conjuror.Crud import crud

# Example usage
crud.StoreData(model, dict)
crud.FetchData(model, dict)
crud.UpdateData(model, filters, dict)
crud.DeleteData(model, dict)
crud.GetData(model, dict)

Model is your django model on which you want to perform crud operations , and dict is a dictionary containg keys as your models fields and value as the data .

from models import student
from conjuror.Crud import crud
# Example 
crud.StoreData(student, {"name":"student","rollno":1})

Use As a Single Click Project Setup

# If you want to create a django project in the current Directory

conjuror -c -n myproject -a app1,app2 -s -d --dbtype postgres --username user --password pass --dbname dbname --host localhost --port 5432

# if you want to create a django project in a specific directory 

conjuror -c -n myproject -a app1,app2 -s -p /path/to/my/directory -d --dbtype postgres --username user --password pass --dbname dbname --host localhost --port 5432

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

DjangoConjuror-1.0.1.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

DjangoConjuror-1.0.1-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

Details for the file DjangoConjuror-1.0.1.tar.gz.

File metadata

  • Download URL: DjangoConjuror-1.0.1.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for DjangoConjuror-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fc004927a8def52f4339db24bc4c8b40c99e54908309abd60c48231cd751b449
MD5 204784c27f24bb8c983639d8fbda1ee7
BLAKE2b-256 65e61b7bc7be2db38f39c560ef34e652aa9b1a24841c1a07a4b8ccd3552c5266

See more details on using hashes here.

File details

Details for the file DjangoConjuror-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: DjangoConjuror-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for DjangoConjuror-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 185ca4b855a861bd6abf2fd0aeccd4cfe7236ec88470cc8154d1a96b800b31cc
MD5 c26853f2dfdc53c9fad6a3c94bacd818
BLAKE2b-256 2cd4f9a29278af996dca82e315efed6789bbefd77258607b710a8f70a4160cc0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page