Web development using Django with Tailwind css, using for Deep Learning project purposes.
v5.1.3
v3.4.14
v3.12.7
v22.11.0
git clone https://github.com/hibatillah/django-tailwindcss
cd django-tailwindcss
python --version
python -m venv venv
# on windows
venv/Scripts/activate
# on mac
source venv/bin/activate
[!IMPORTANT] Make sure to always
activate venv before run project
pip install -r requirements.txt
npm install
invoke start
[!NOTE] All command
run concurrently
using invoke scripts.
Modify command in tasks.py.All the required depedencies store in
requirements.txt
andpakcage.json
.
[!WARNING] Django hot reload is not working because it runs different commands manager at the same time.
Haven't looked into it yet.
cd deep_learning
python manage.py runserver
npm run watch
Install your depedencies with actived venv
, then add depedencies to requirements.txt with next command
cd deep_learning
pip freeze > requirements.txt
Run this command everytime you add python depedencies into your project
Read Django documentation
[!WARNING] Change
deep_learning
directory name will break the project structure.
If you want to change it, make sure to change all the reference in the project.