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

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Data Science Analyst

@ Mayo Clinic | AZ, United States

Sr. Data Scientist (Network Engineering)

@ SpaceX | Redmond, WA