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
devscript for development.
Requirements
Make sure you have the following installed on your computer:
-
Python (>=3.7): Download Python
-
Django (>=3.2): Install via pip:
pip install Django
-
Node.js (>=14.x): Download Node.js
-
npm: Comes with Node.js.
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
devscript to yourpackage.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.jsfile.
License
This project is licensed under the MIT License.
Metadata
Release files for django-tailwindcss-automated 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_tailwindcss_automated-1.0.tar.gz | 5.4 kB | Without provenance | Details for django_tailwindcss_automated-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_tailwindcss_automated-1.0-py3-none-any.whl | Python 3 | none | any | Details for django_tailwindcss_automated-1.0-py3-none-any.whl |
Total release size: 11.8 kB
Release files / django_tailwindcss_automated-1.0.tar.gz
| Download URL | django_tailwindcss_automated-1.0.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
671fdc2399804f730cf122a00881ddcda3f6f8b17bc11c8403a8534728b5d17b
|
|
BLAKE2b-256 checksum How to use checksums |
7c17f484312f0cbe147e5dea66d4b8c6beb6ecf87ce4793e47c712b25eae8a0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Release files / django_tailwindcss_automated-1.0-py3-none-any.whl
| Download URL | django_tailwindcss_automated-1.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
824d7f62c82e1a1f3c837fd7935f92b67b99def345cc926e13e3ef967949dba2
|
|
BLAKE2b-256 checksum How to use checksums |
3f2d0289cf604670314cbb4e96d529bfaef969f909974ffdd3f2a787bf6d6297
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Security for django-tailwindcss-automated 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.