To activate the environment
python manage.py startapp base
python manage.py runserver
npx tailwindcss build static/css/styles.css -o static/css/styles.css
- Remember to edit in 'tailwind.config.js'
module.exports = {
purge: ['./**/*.html'],
// ...
};
- Connecting to Postgresql?
pip install psycopg2-binary
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'yourdbname',
'USER': 'yourdbuser',
'PASSWORD': 'yourdbpassword',
'HOST': 'localhost', # Or your PostgreSQL server's hostname
'PORT': '', # Leave empty to use the default PostgreSQL port (5432)
}
}