Pilgrim Packages is a dynamic web application built with Flask for managing and showcasing pilgrim tour packages in India. It features an admin panel for content management, user authentication, package listings, event displays, and a contact form. The app is designed for tourism businesses focusing on spiritual journeys like Char Dham Yatra, Amarnath Yatra, and visits to the Golden Temple.
seed.py.git clone https://github.com/rajatdrinfosoft-web/Basic-website.git
cd pilgrim-packge
python -m venv venv
venv\Scripts\activate # On Windows
# source venv/bin/activate # On macOS/Linux
pip install -r requirements.txt
Note: Ensure you have Python 3.8+ installed.
config.py with your PostgreSQL connection string.SECRET_KEY for production.flask db init # If not already done
flask db migrate
flask db upgrade
python seed.py
This adds sample packages (e.g., Char Dham Yatra) and events.
python run.py
The app will run on http://localhost:5000 in debug mode.
/admin/login (default: username admin, password admin123)./: Home page with featured packages and events./packages: List all packages./package/<id>: Package details./about, /contact: Static pages./admin/dashboard: Admin panel.pilgrim-packge/
├── app/
│ ├── __init__.py # Flask app factory and extensions
│ ├── models.py # SQLAlchemy models (User, Package, Event, Contact)
│ ├── routes.py # Main routes (home, packages, contact)
│ ├── auth.py # Authentication routes
│ ├── admin_routes.py # Admin panel routes
│ ├── forms.py # WTForms for forms
│ ├── static/ # CSS, JS, images
│ │ ├── css/
│ │ ├── js/
│ │ └── img/
│ └── templates/ # Jinja2 templates
│ ├── base.html # Base template
│ ├── home.html # Homepage
│ ├── packages.html # Package listings
│ ├── package_detail.html # Package details
│ ├── about.html # About page
│ ├── contact.html # Contact page
│ └── admin/ # Admin templates
│ ├── dashboard.html
│ ├── login.html
│ ├── package_form.html
│ └── event_form.html
├── migrations/ # Alembic migrations
├── extra/ # Additional static files (e.g., index.html)
├── config.py # Configuration settings
├── run.py # Entry point to run the app
├── seed.py # Database seeding script
├── TODO.md # Feature roadmap and improvements
├── TODO_IMPROVEMENTS.md # Additional tasks
└── README.md # This file
git checkout -b feature-name.git commit -m 'Add feature'.git push origin feature-name.Refer to TODO.md for planned enhancements like security improvements, performance optimizations, and new features.
This project is licensed under the MIT License. See LICENSE file for details.
For questions or contributions, contact the project maintainer.