# DjangoAPI **Repository Path**: jcuedu/django-api ## Basic Information - **Project Name**: DjangoAPI - **Description**: No description available - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2025-04-15 - **Last Updated**: 2025-04-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 初始化 ```shell # 创建虚拟环境 python -m venv .venv ``` ```shell # 激活虚拟环境 # linux source .venv/bin/activate # windows .venv/Script/activate.bat ``` # 安装依赖 ```shell # 安装依赖 python -m pip install -r requirements.txt ``` ```shell # 导出依赖 python -m pip freeze > requirements.txt ``` # 运行 ```bash python manage.py runserver ``` # 执行迁移 ```bash python manage.py migrate ``` # 创建迁移 ```bash python manage.py makemigrations ``` # 创建管理员 ```bash python manage.py createsuperuser --email admin@example.com --user admin ```