Skip to content

Minimal Django template set-up with tailwindCSS, daisyUI and a Custom User Model

Notifications You must be signed in to change notification settings

kenshuri/django_tailwind_daisyui_customusermodel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal template to set-up a Django project with TailwindCSS and daisyUI and a custom user model

Source code relative to my blog post about adding a custom user model in Django.

Set-up the project

To set-up the project from scratch, run the following commands in your terminal.

python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser

Create a superuser as prompted. Note that it is asking you an email address and not a username like in the base model.

git clone https://github.com/kenshuri/setup_django_tailwind_daisyui.git
cd setup_django_tailwind_daisyui
python -m virtualenv venv
pip install -r requirements.txt
cd jstoolchains
npm install

You're good to go my friend!

Start your project

To see your project in action, open 2 terminals.

In the first terminal run:

cd setup_django_tailwind_daisyui
cd jstoolchains
npm run tailwind-watch

In the second terminal run:

cd setup_django_tailwind_daisyui
python manage.py runserver

As prompted, open the page http://127.0.0.1:8000/ and enjoy 🚀

Note that changes in your html template blogApp\templates\blogApp\index.html automatically updates what you see in your browser.

About

Minimal Django template set-up with tailwindCSS, daisyUI and a Custom User Model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published