all AI news
Using Django ORM only without web server
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
- Copy manage.py and settings.py to the directory and create directory db. Your project …
blog copy create directory django environment framework function orm python scripts server setup sqlite venv virtual web will
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
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