A starter Django project with Tailwind CSS
Create a Python virtual environment,
$ python3 -m venv .venvActivate the virtual environment,
$ source .venv/bin/activateInstall Python packages,
$ pip install -r requirements.txtMake sure you have node and npm installed on your machine.
Enter
$ cd `django-tailwind`Install tailwindcss
$ npm install tailwindcssInit and configure Tailwind CSS,
$ npx tailwindcss initThis would create tailwind.config.js.
Run the following command to distribute Tailwind CSS,
$ npx tailwindcss -i ./static/css/styles.css -o ./static/dist/styles.css --watchRun the following command to start the development server,
$ python manage.py runserverThen visit http://127.0.0.1:8000