Run Django Server
This project contains the necessary files to set up and run a Django server.
Prerequisites
- Python 3.x
- Django
- pip (Python package installer)
Installation
Clone the repository:
git clone <repository_url>
cd run-django-server
Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
Install the required packages:
pip install -r requirements.txt
Running the Server
Apply migrations:
python manage.py migrate
Create a superuser (optional):
python manage.py createsuperuser
Run the development server:
python manage.py runserver
Open your browser and navigate to http://127.0.0.1:8000/ to see the application running.
Project Structure
run-django-server/
├── manage.py
├── myapp/
│ ├── __init__.py
│ ├── admin.py
│ ├── apps.py
│ ├── migrations/
│ ├── models.py
│ ├── tests.py
│ ├── views.py
│ └── ...
├── requirements.txt
└── ...
License
This project is licensed under the MIT License. See the LICENSE file for details.
| |