Skip to main content

A CLI tool to set up Django projects for you

Project description

Django Setup

A cli tool to setup django for you

Features

  • install django if not already installed
  • creates django project
  • creates django app
  • creates settings folder
  • creates settings files: base.py, developmemt.py, production.py
  • creates .gitignore, .env.dev, .env,prod, and requirements.txt
  • updates INSTALLED_APPS, DEBUG, ALLOWED_HOST and BASE_DIR
  • creates app_name/urls.py
  • add app_name/urls.py to project_name/urls.py urlpatterns uisng include()
  • update prod settings in prod file
  • update django to use either env.dev or env.prod based on env var

Usage

  1. Set up a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. install the package
pip install djang-setup
  1. run it and follow the prompt
djan_setup

domo

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

djang_setup-0.0.5.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

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

djang_setup-0.0.5-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file djang_setup-0.0.5.tar.gz.

File metadata

  • Download URL: djang_setup-0.0.5.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.4

File hashes

Hashes for djang_setup-0.0.5.tar.gz
Algorithm Hash digest
SHA256 7b24f8e5ed84f45ae2cd1cbfd8e6c04ac615fcdb86c69b27f64a7e3c41135933
MD5 844186cb01904062d75cca07962ee808
BLAKE2b-256 5c347550a12fce7b1e5969a17c7abe805544750d4a9acdcc9d33fd592666c542

See more details on using hashes here.

File details

Details for the file djang_setup-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: djang_setup-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.4

File hashes

Hashes for djang_setup-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0d71546a80af9fcd2569727aefa9657ce3600bab71b73e9c5b18a5f5085c5f8c
MD5 1e5df8daea85ba0a91f412c471c83b54
BLAKE2b-256 75b16dc5b8ab062876367a0cef9397a2c1315de4db4ffb248b9b7162849df15c

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