A modern dental practice website built with Django, featuring appointment scheduling, contact forms, and service information.
- Home page with main information
- About page with practice information
- Services page showcasing dental services
- Pricing page with service costs
- Contact form with email functionality
- Appointment scheduling system
- Responsive design
- Django 3.2
- Python
- SQLite Database
- HTML/CSS
- Bootstrap (for frontend)
- Email functionality using Gmail SMTP
DentistSite/
├── DentistSite/ # Main project configuration
├── website/ # Main application
│ ├── templates/ # HTML templates
│ ├── static/ # Static files (CSS, JS, images)
│ ├── views.py # View functions
│ ├── models.py # Database models
│ ├── urls.py # URL routing
│ └── admin.py # Admin configuration
├── static/ # Global static files
└── manage.py # Django management script
- Clone the repository:
git clone [repository-url]- Create and activate a virtual environment:
python -m venv demo1env
source demo1env/bin/activate # On Windows: demo1env\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Run migrations:
python manage.py migrate- Start the development server:
python manage.py runserverThe project uses the following settings in settings.py:
- Debug mode is enabled for development
- SQLite database
- Gmail SMTP for email functionality
- Static files configuration
- CSRF protection
The project uses Gmail SMTP for sending emails. To configure:
- Update
EMAIL_HOST_USERandEMAIL_HOST_PASSWORDin settings.py - Enable "Less secure app access" in your Google Account settings
- The project is currently in development mode (DEBUG = True)
- For production, ensure to:
- Set DEBUG = False
- Use a proper secret key
- Configure proper ALLOWED_HOSTS
- Use a production-grade database
- Set up proper email configuration
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.