This project is a Django-based web application that implements custom user authentication, handling different types of users: Patients and Doctors. Each user type has its own dashboard, which they are redirected to upon login. The project utilizes Django's authentication system, custom user models, and Bootstrap.
- Custom User Model supporting two types of users: Patient and Doctor.
- User signup and login system with profile picture upload.
- Separate dashboards ("view details" for now for this task's purpose only) for Patients and Doctors
- Password and Confirm Password match validation.
Before you begin, ensure you have met the following requirements:
- Python 3.6 or higher installed on your machine.
- Django 3.1 or higher installed in your Python environment.
- Basic understanding of Django project structure and operations.
To install the project, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/sachnaror/hospital.git
-
Navigate to the project directory:
cd hospital
- Install the required dependencies:
pip install -r requirements.txt
- Apply the migrations to create the database schema:
python manage.py makemigrations
python manage.py migrate
- Run the Django development server:
python manage.py runserver
- Visit https://hospital-tzoco.ondigitalocean.app/ in your web browser to view the application.
The application supports the following operations:
-
User Signup: New users can sign up as either a Patient or a Doctor by filling out the signup form, which includes uploading a profile picture.
-
User Login: Users can log in using their credentials. Upon successful login, users are redirected to their respective dashboards based on their user type.
-
Dashboards: Users can view their profile information on their dashboard.
- Django - The web framework used
- Bootstrap CDN - Used for responsive frontend design
- Create a new branch: git checkout -b master
- Make your changes and commit them: git commit -m '<commit_message>'.
- Push to the original branch: git push origin hospital/master
- Create the pull request.
- Alternatively, see the GitHub documentation on creating a pull request.
- Check this table for the data poured when signup form is submitted. For the tasks purpose, i have one table for all save and retrieve data :
- If you have any questions or feedback, please contact me at:
Email: <schnaror@gmail.com>
Phone: 95603-30483
Address: Sector 108, Noida