Skip to content
Proyek

Tentang

Framework untuk memulai proyek Django Rest Framework baru dengan cepat.

Pengembangan web dan aplikasi

Cara angka ini diukur

Yang dapat Anda lakukan

  • Django 6.1, Django REST Framework 3.18, and Python 3.12+
  • Custom user model
  • Token-based auth via dj-rest-auth
  • Signup/login/logout

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
-1
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

DRFx

A framework for launching new Django Rest Framework projects quickly. Comes with a custom user model, login/logout/signup, social authentication via django-allauth and dj-rest-auth, and more.

Features

  • Django 6.1, Django REST Framework 3.18, and Python 3.12+
  • Custom user model
  • Token-based auth via dj-rest-auth
  • Signup/login/logout
  • django-allauth for social auth
  • uv for dependency management (plain pip works too)

First-time setup

  1. Make sure Python 3.12+ is installed. See here for help.
  2. Clone the repo and install dependencies, using either uv (recommended) or pip.

With uv:

$ git clone https://github.com/wsvincent/drfx.git
$ cd drfx
$ uv sync
$ source .venv/bin/activate

Or with pip:

$ git clone https://github.com/wsvincent/drfx.git
$ cd drfx
$ python3 -m venv .venv
$ source .venv/bin/activate
(drfx) $ python -m pip install -r requirements.txt

On Windows, activate with .venv\Scripts\activate instead.

  1. Set up the initial migration for our custom user models in users and build the database.
(drfx) $ python manage.py makemigrations users
(drfx) $ python manage.py migrate
(drfx) $ python manage.py createsuperuser
(drfx) $ python manage.py runserver
  1. Endpoints

Login with your superuser account. Then navigate to all users. Logout. Sign up for a new account and repeat the login, users, logout flow.

Jelajahi proyek terkait

Memuat…