This guide will walk you through setting up and running a Django web application.
-
Clone the repository:
git clone <repository_url>
-
Navigate to the project directory:
cd <project_directory>
-
Create a virtual environment (optional but recommended):
python -m venv venv
-
Activate the virtual environment:
-
On Windows:
venv\Scripts\activate
-
On macOS and Linux:
source venv/bin/activate
-
-
Install dependencies:
pip install -r requirements.txt
-
Run migrations to create database schema:
python manage.py makemigrations python manage.py migrate
-
(Optional) Create a superuser for accessing the Django admin interface:
python manage.py createsuperuser
To start the development server, run:
python manage.py runserver <port-number>
The application should now be accessible at http://localhost:8000.
- Access the Django admin interface at http://localhost:8000/admin (if you created a superuser).
For deploying the application to a production environment, refer to the Django Deployment Documentation.
https://github.com/gzukowski/asm/tree/main/simulators/stack-sim-online