Skip to main content

Handles all setup and configuration automatically.

Project description

Automated Django Setup with TailwindCSS

This project automates the process of setting up a Django project integrated with TailwindCSS and Django Compressor.

Features

  • TailwindCSS for styling and responsive design.
  • Django Compressor to optimize and minify CSS for better performance.
  • Pre-configured static files and a dev script for development.

Requirements

Make sure you have the following installed on your computer:

Installation via PyPI

You can install the Django TailwindCSS Automated Setup package via PyPI using pip:

pip install django-tailwindcss-automated

Usage

After installing the package, you can set up your Django project with TailwindCSS by running the following command:

automate

This will prompt you to enter the name of your Django project.

Example:

$ automate
Enter your project name: my_project

The script will automatically:

  • Set up static folders and create a base template.
  • Configure TailwindCSS and generate tailwind.config.js.
  • Add a dev script to your package.json.

Steps

1. Start the TailwindCSS Watcher

Once the setup is complete, navigate to your project directory and run:

npm run dev

This will watch for changes to the input.css file and compile TailwindCSS.

2. Start the Development Server

In a separate terminal window, run:

python manage.py runserver

This will start the Django development server.

Customizing Your Project

  • Static Files: Add your custom styles and scripts inside the static/src/ folder.
  • Tailwind Config: Adjust TailwindCSS settings by modifying the tailwind.config.js file.

License

This project is licensed under the MIT License.

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

django_tailwindcss_automated-1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file django_tailwindcss_automated-1.0.tar.gz.

File metadata

File hashes

Hashes for django_tailwindcss_automated-1.0.tar.gz
Algorithm Hash digest
SHA256 671fdc2399804f730cf122a00881ddcda3f6f8b17bc11c8403a8534728b5d17b
MD5 37c66eff14678850c46d77b86ba6f461
BLAKE2b-256 7c17f484312f0cbe147e5dea66d4b8c6beb6ecf87ce4793e47c712b25eae8a0c

See more details on using hashes here.

File details

Details for the file django_tailwindcss_automated-1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_tailwindcss_automated-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 824d7f62c82e1a1f3c837fd7935f92b67b99def345cc926e13e3ef967949dba2
MD5 e9a248e900c4f05afcb201675492b511
BLAKE2b-256 3f2d0289cf604670314cbb4e96d529bfaef969f909974ffdd3f2a787bf6d6297

See more details on using hashes here.

Supported by

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