A Django template pre-configured with Django Ninja, Ninja JWT, and Django Unfold for rapid API development with JWT authentication and a modern admin interface.
- Django Integration: Pre-configured with essential Django settings and utilities.
- Django Ninja: Ready for building APIs with Django Ninja.
- Ninja JWT Authentication: Implements JWT authentication using Ninja JWT.
- Django Unfold: Includes Django Unfold for a visually appealing and functional admin panel.
- Python 3.12 or higher
- Django 5.1 or higher
- Django Ninja
- Django Ninja JWT
- django-unfold
- Tailwind CSS
project/
├── core/ # Django project config
│ ├── settings.py
│ ├── urls.py
│ └── ...
├── users/ # Authentication and users
│ └── ...
├── common/ # Shared logic and resources
│ └── ...
├── logs/ # Application logs
├── .env.example
├── .gitignore
├── manage.py
├── pyproject.toml
├── poetry.lock
├── README.md
└── requirements.txt
-
Install Poetry: If you haven't already, install Poetry by following the instructions on the Poetry website.
-
Clone the Repository:
git clone https://github.com/hrmasss/django-ninja-unfold.git project-name cd project-name
-
Install Dependencies:
poetry install
-
Activate the Virtual Environment:
poetry shell
-
Configure Environment Variables: Copy
.env.example
to.env
:cp .env.example .env
Then, populate the
.env
file with the necessary environment variables (e.g., database URL, secret keys, API keys). -
Run Migrations:
python manage.py migrate
-
Create a Superuser:
python manage.py createsuperuser
-
Start the Development Server:
python manage.py runserver
-
Clone the Repository:
git clone https://github.com/hrmasss/django-ninja-unfold.git project-name cd project-name
-
Create a Virtual Environment:
python -m venv .venv
-
Activate the Virtual Environment:
-
On Windows:
.venv\Scripts\activate
-
On macOS and Linux:
source .venv/bin/activate
-
-
Install Dependencies:
pip install -r requirements.txt
-
Configure Environment Variables: Copy
.env.example
to.env
:cp .env.example .env
Then, populate the
.env
file with the necessary environment variables (e.g., database URL, secret keys, API keys). -
Run Migrations:
python manage.py migrate
-
Create a Superuser:
python manage.py createsuperuser
-
Start the Development Server:
python manage.py runserver