Skip to main content

This tool is created to ease the Django Development. Developers can use this to setup their projects easily with just simple commands.

Project description

DjangoConjuror

DjangoConjuror is a command-line tool designed to simplify Django project setup and management. It allows developers to quickly create new projects, add applications, configure databases, and more, using straightforward commands.

Features

  • Create Django Projects: Initialize a new Django project at a specified location with a custom project name.
  • Add Django Apps: Easily add one or more applications to your Django project.
  • Database Configuration: Change the default database settings to use PostgreSQL, MySQL, or SQLite.
  • Setup Static and Templates: Automatically set up directories for static files and templates.
  • CRUD Operations: Import CRUD functionalities to perform create, read, update, and delete operations easily within your Django apps.

Installation

You can install DjangoConjuror using pip:

pip install DjangoConjuror

Usage

Here is how you can use DjangoConjuror to manage your Django projects:

Create a New Project

To create a new Django project:

conjuror --create --path /path/to/project --name myproject
  • --create: Initiates the creation of a new Django project.
  • --path: Specifies the directory where the project will be created.
  • --name: Sets the name of the new Django project (defaults to "myproject" if not specified).

Add Applications

To add applications to your Django project:

conjuror --apps app1 app2 app3

This command adds the specified apps to your Django project.

Setup Static and Template Directories

To set up directories for static files and templates:

conjuror --setup-static-templates

Configure Database

To configure the database settings for your Django project:

conjuror --database --dbtype postgres --username user --password pass --dbname dbname --host localhost --port 5432
  • --database: Enables database configuration.
  • --dbtype: Specifies the type of database (postgres, mysql, sqlite).
  • --username: Database username.
  • --password: Database password.
  • --dbname: Database name.
  • --host: Database host (defaults to "localhost").
  • --port: Database port.

CRUD Operations

To use CRUD operations in your Django app, import the CRUD functionality provided by DjangoConjuror:

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)

Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues to improve the functionality of DjangoConjuror.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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.0.tar.gz (6.8 kB 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.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file djangoconjuror-1.0.0.tar.gz.

File metadata

  • Download URL: djangoconjuror-1.0.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for djangoconjuror-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f11f8508ca7c67b9b58d4283a0f78f1e38dc4c3ccb8b97c34a21503f35954503
MD5 a70cca377d5d4125dbcd72d939144d20
BLAKE2b-256 e1e9c10e0f12674635534170fac3e21a93e5d19d20b69d0a2ec080c7003bc513

See more details on using hashes here.

File details

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

File metadata

  • Download URL: DjangoConjuror-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for DjangoConjuror-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b476a5ef596da7bb3c275c9de989634c37aa95c91d30eedc0187aafa484e629
MD5 739b2952b179070086e53e3bcfc9edaa
BLAKE2b-256 fd08fe7dbcd54b66ac9b9a9b7bbd7ada4eae6c42a61af7b612ea1d3e870dc7e2

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