Welcome to the Nurse Scheduler Django project! This README will guide you through setting up and running the project.
-
Install Python: Ensure Python is installed on your system. You can download it from python.org.
-
Install Django: If Django is not installed, install it using pip:
pip install django -
Clone the Repository: Clone this repository to your local machine.
-
Install Dependencies: Navigate to the project directory and install any required dependencies:
pip install -r requirements.txt
-
Navigate to Project Directory: Open a terminal and navigate to the project's root directory.
-
Run the Server: Start the Django development server by running:
python manage.py runserver -
Access the App: Open your web browser and go to
http://localhost:8000to view the app.
-
Create Superuser: To create an admin user, run:
python manage.py createsuperuserFollow the prompts to set the username, email, and password.
-
Access Admin Panel: Once the server is running, access the admin panel at
http://localhost:8000/admin. Log in with the superuser credentials.
-
Initial Migration: To set up your database, run:
python manage.py makemigrations python manage.py migrate -
Applying New Migrations: Whenever you make changes to your database models, apply the migrations using the same commands.
- Familiarize yourself with the Django project structure and the MVC (Model-View-Controller) architecture.
- Regularly check the Django documentation for guidance: Django Documentation.