Skip to content

chandra122/dentistDjango

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dentist Website - Django Project

A modern dental practice website built with Django, featuring appointment scheduling, contact forms, and service information.

Features

  • 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

Technology Stack

  • Django 3.2
  • Python
  • SQLite Database
  • HTML/CSS
  • Bootstrap (for frontend)
  • Email functionality using Gmail SMTP

Project Structure

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

Installation

  1. Clone the repository:
git clone [repository-url]
  1. Create and activate a virtual environment:
python -m venv demo1env
source demo1env/bin/activate  # On Windows: demo1env\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Run migrations:
python manage.py migrate
  1. Start the development server:
python manage.py runserver

Configuration

The 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

Email Configuration

The project uses Gmail SMTP for sending emails. To configure:

  1. Update EMAIL_HOST_USER and EMAIL_HOST_PASSWORD in settings.py
  2. Enable "Less secure app access" in your Google Account settings

Security Notes

  • 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

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Modern dental practice website built with Django featuring appointment scheduling, contact forms, service information, and responsive design using Python, HTML/CSS, Bootstrap, and Gmail SMTP integration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors