A Django starter template for projects. Note: This is a work in progress.
-
Clone the repository
-
Create a virtual python environment
-
Install the requirements from the "requirements.txt" file. Example using pip
pip install -r requirements.txt
-
Install the node modules from package.json. Navigate to \libs\npm\ which is where the package.json
npm install
-
Run
python manage.py migrate
to setup the local sqlite database. Run command from root folder of the project where themanage.py
file is located. -
Run
python manage.py runserver
to start the django server. -
In a separate terminal, navigate to \libs\npm\ run
npm run build-watch
to start the webpack server that will compile Tailwind CSS in realtime.
- Add the x-data of
x-data={ isProcessing: false }
to the form element. - Also on the form, @submit="isProcessing = validateForm('supportForm')"
<form id="myForm"
action="#"
method="POST"
x-data="{ isProcessing: false}"
@submit="isProcessing = validateForm('supportForm')">
...
</form>