April 20, 2024, 11:04 a.m. | Ivan Yu

DEV Community dev.to

Django is a great framework, but sometimes you just want to use its ORM without web server function. This blog will introduce how to do it.





1. Step





1.1. Setup environment



  • Create a virtual environment named ormOnlyEnv and then activate it



python -m venv ormOnlyEnv
ormOnlyEnv\Scripts\activate



  • Copy the requirement.txt to the same directory as the folder ormOnlyEnv and install it using below command.



pip install -r requirements.txt


blog copy create directory django environment framework function orm python scripts server setup sqlite venv virtual web will

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US

Research Engineer

@ Allora Labs | Remote

Ecosystem Manager

@ Allora Labs | Remote

Founding AI Engineer, Agents

@ Occam AI | New York