A modern, feature-rich community platform designed specifically for college students, alumni, and professors. Built with Django and featuring a beautiful dark-themed UI with real-time messaging and notification systems.
CollabSphere.-.compressed.mp4
- Custom User Model with email-based login
- Role-based System: Students, Alumni, Professors
- Profile Management with profile pictures and batch information
- Password Reset functionality with email integration
- Multiple Post Types: Jobs, Projects, Internships, General
- Rich Text Content with modern formatting
- Comment System with real-time updates
- User Role Badges and profile information display
- Private Conversations between users
- Real-time Message Updates with auto-refresh
- Read Receipts and delivery status
- Message Inbox with unread message counts
- Easy Access via "Send Message" buttons on posts
- Real-time Notification Bell in navigation
- Automatic Notifications for:
- New comments on your posts
- Direct messages received
- Replies to your comments
- Mark as Read functionality (individual or bulk)
- Notification Center with full history
- Dark Theme with glassmorphism effects
- Responsive Design for all devices
- Animated Elements with smooth transitions
- Gradient Backgrounds and modern typography
- Bootstrap 5 with custom styling
- Python 3.8 or higher
- PostgreSQL (recommended) or SQLite
- pip (Python package installer)
-
Clone the repository
git clone https://github.com/SouravUpadhyay7/Collab_Sphere cd collabsphere
-
Create and activate virtual environment
python -m venv venv # On Windows venv\Scripts\activate # On macOS/Linux source venv/bin/activate
-
Install dependencies
pip install -r requirements.txt
-
Configure database
# For PostgreSQL (recommended) # Update settings.py with your database credentials # For SQLite (default) # No additional configuration needed
-
Run migrations
python manage.py makemigrations python manage.py migrate
-
Create superuser
python manage.py createsuperuser
-
Run the development server
python manage.py runserver
-
Access the application
- Open your browser and go to
http://127.0.0.1:8000/
- Admin panel:
http://127.0.0.1:8000/admin/
- Open your browser and go to
CollabSphere/
βββ accounts/ # User authentication & profiles
β βββ models.py # Custom user model
β βββ views.py # Authentication views
β βββ forms.py # User forms
β βββ templates/ # User templates
βββ community/ # Posts & messaging
β βββ models.py # Post, Comment, DirectMessage models
β βββ views.py # Community views
β βββ forms.py # Post & message forms
β βββ templates/ # Community templates
βββ collabsphere/ # Main project settings
β βββ settings.py # Django settings
β βββ urls.py # Main URL configuration
β βββ wsgi.py # WSGI configuration
βββ templates/ # Base templates
βββ static/ # Static files (CSS, JS, images)
βββ media/ # User uploaded files
βββ manage.py # Django management script
- Sign up with your college email
- Complete your profile with batch information
- Browse posts for jobs, internships, and projects
- Comment on posts to engage with the community
- Send direct messages to connect with other users
- Stay updated with notifications for new activity
- Create posts to share job opportunities
- Mentor students through comments and messages
- Network with other alumni and current students
- Share experiences and career advice
- Post project opportunities for students
- Share academic resources and announcements
- Connect with students and alumni
- Build research collaborations
Create a .env
file in the project root:
SECRET_KEY=your-secret-key-here
DEBUG=True
DATABASE_URL=postgresql://user:password@localhost/collabsphere
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_HOST_USER=your-email@gmail.com
EMAIL_HOST_PASSWORD=your-app-password
For password reset functionality, configure your email settings in settings.py
:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = 'your-email@gmail.com'
EMAIL_HOST_PASSWORD = 'your-app-password'
- Update
POST_TYPE_CHOICES
incommunity/models.py
- Add corresponding templates if needed
- Update forms and views as necessary
- Modify CSS variables in
templates/base.html
- Update color schemes and gradients
- Customize animations and transitions
- Create new Django apps for major features
- Follow the existing code structure
- Update URL configurations
- Add appropriate templates
Database Connection Error
- Ensure PostgreSQL is running
- Check database credentials in settings.py
- Verify database exists
Static Files Not Loading
- Run
python manage.py collectstatic
- Check STATIC_URL and STATIC_ROOT settings
Email Not Working
- Verify SMTP settings
- Check firewall settings
- Use Gmail App Passwords for 2FA accounts
Migration Errors
- Delete migration files and recreate them
- Ensure database is in sync with models
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Django - The web framework for perfectionists with deadlines
- Bootstrap - The most popular CSS framework
- Font Awesome - The iconic font and CSS toolkit
- XYZ College - For inspiring this community platform
For support and questions:
- Create an issue on GitHub
Made with β€οΈ for the XYZ College Community
Building connections, fostering collaboration, and empowering the next generation of innovators.