Professional Multi-Level Marketing Platform with Advanced Analytics, Real-time Updates, and Modern UI
- β 11 Wallet Types: Income, Self Income, Booster, Star, Trading Level, Salary, Reward, Growth, Sponsor Growth, USDT, Topup
- β 9 Income Streams: Direct, Level 1-10, Binary, Matching, Reward, Rank Achievement
- β Genealogy System: Interactive tree view, direct team, level-wise team, whole tree visualization
- β Rank System: Silver, Gold, Diamond, Crown with auto-upgrade
- β Fund Management: Deposit, Withdrawal, Transfer with complete history
- β Referral System: Unique referral codes, tracking, and commission distribution
- β OTP Verification: Secure wallet transfers with OTP authentication
- β¨ Modern Landing Page: Animated hero section, gradient backgrounds, floating elements
- π Toast Notifications: Real-time feedback for all actions
- π Loading States: Professional loading overlays and skeleton screens
- π Data Visualization: Chart.js integration for income and team analytics
- π Animations: Smooth transitions, hover effects, entrance animations
- π± Fully Responsive: Mobile-first design, works on all devices
- π Dynamic Content: Admin-editable landing page content
- π Help Center: Searchable FAQ with categories
- π§ Contact Us: Working contact form with multiple subjects
- π« Support Tickets: Create and track support tickets
- π Privacy Policy: Comprehensive privacy information
- π Terms of Service: Complete terms and conditions
- π‘οΈ Security: CSRF protection, XSS prevention, secure sessions, password encryption
- β‘ Performance: Caching, lazy loading, optimized queries
- π§ Email System: Automated reports, notifications, welcome emails
- π Global Search: Real-time search across users, transactions, and pages
- π« Error Handling: Custom 404/500 pages, user-friendly error messages
- π Management Commands: Automated daily reports, data seeding
- π§ͺ Testing Ready: Structure prepared for unit and integration tests
- π Documentation: Comprehensive docs for all features
- π API Ready: RESTful structure for future mobile apps
- π΄ Real-time Ready: WebSocket infrastructure with Channels
| Technology | Version | Purpose |
|---|---|---|
| Django | 4.2.16 | Backend Framework |
| Python | 3.8+ | Programming Language |
| SQLite | 3.x | Database (Dev) |
| Bootstrap | 5.3 | CSS Framework |
| Chart.js | 4.4 | Data Visualization |
| Channels | 4.0 | WebSocket Support |
| Pillow | 11.1.0 | Image Processing |
| Crispy Forms | 2.3 | Form Rendering |
mlm_project/
βββ apps/ # Django Applications
β βββ users/ # User management & authentication
β β βββ management/ # Custom management commands
β β βββ templatetags/ # Custom template tags
β β βββ activity_helpers.py # Activity tracking helpers
β β βββ activity_models.py # Activity models
β β βββ api_views.py # API endpoints
β β βββ context_processors.py # Global context
β β βββ models_landing.py # Landing page models
β β βββ models.py # User models
β β βββ signals.py # Django signals
β β βββ views.py # User views
β β
β βββ wallets/ # 11 wallet types management
β β βββ otp_helpers.py # OTP generation & validation
β β βββ otp_models.py # OTP models
β β βββ models.py # Wallet models
β β βββ views.py # Wallet operations
β β
β βββ incomes/ # Income distribution logic
β β βββ tasks.py # Celery tasks for income
β β βββ models.py # Income models
β β βββ views.py # Income views
β β
β βββ genealogy/ # Team tree and hierarchy
β β βββ models.py # Genealogy models
β β βββ views.py # Tree views
β β
β βββ transactions/ # Fund deposits, withdrawals
β β βββ forms.py # Transaction forms
β β βββ models.py # Transaction models
β β βββ views.py # Transaction views
β β
β βββ ranks/ # Rank system and rewards
β β βββ models.py # Rank models
β β βββ views.py # Rank views
β β
β βββ support/ # Support ticket system
β β βββ forms.py # Support forms
β β βββ models.py # Support models
β β βββ views.py # Support views (tickets, help, contact)
β β
β βββ reports/ # PDF reports generation
β βββ models.py # Report models
β βββ views.py # Report generation
β
βββ core/ # Business Logic Layer
β βββ services/ # Service classes
β βββ wallet_service.py # Wallet operations
β βββ income_service.py # Income calculations
β βββ tree_service.py # Genealogy operations
β βββ rank_service.py # Rank management
β
βββ config/ # Django Configuration
β βββ settings.py # Project settings
β βββ urls.py # URL routing
β βββ wsgi.py # WSGI config
β βββ celery.py # Celery config
β
βββ templates/ # HTML Templates
β βββ users/ # User templates
β β βββ landing.html # Modern landing page
β β βββ dashboard.html # User dashboard
β β βββ login.html # Login page
β β βββ register.html # Registration page
β β βββ profile.html # User profile
β β βββ change_password.html # Password change
β β
β βββ wallets/ # Wallet templates
β β βββ overview.html # All wallets view
β β βββ transfer.html # Transfer funds
β β βββ history.html # Transaction history
β β
β βββ genealogy/ # Team templates
β β βββ direct.html # Direct team
β β βββ level.html # Level-wise team
β β βββ tree.html # Genealogy tree
β β βββ whole_tree.html # Complete tree
β β
β βββ transactions/ # Transaction templates
β β βββ deposit.html # Deposit request
β β βββ withdrawal.html # Withdrawal request
β β βββ history.html # Transaction history
β β
β βββ support/ # Support templates
β β βββ help_center.html # Help center with FAQ
β β βββ contact_us.html # Contact form
β β βββ privacy_policy.html # Privacy policy
β β βββ terms_of_service.html # Terms of service
β β βββ list.html # Support tickets list
β β βββ create.html # Create ticket
β β βββ detail.html # Ticket details
β β
β βββ incomes/ # Income templates
β β βββ summary.html # Income summary
β β
β βββ ranks/ # Rank templates
β β βββ rank.html # Rank & rewards
β β
β βββ reports/ # Report templates
β β βββ income_report.html # Income report
β β βββ report_preview.html # Report preview
β β
β βββ base.html # Base template
β βββ 404.html # Custom 404 page
β βββ 500.html # Custom 500 page
β
βββ static/ # Static Files (CSS, JS, Images)
βββ media/ # User Uploads
β βββ deposits/ # Deposit screenshots
βββ templatetags/ # Global Template Tags
βββ db.sqlite3 # SQLite Database
βββ manage.py # Django Management Script
βββ requirements.txt # Python Dependencies
βββ README.md # This file
βββ SETUP.md # Quick setup guide
- Python 3.8 or higher
- pip (Python package manager)
- Git (optional)
# Navigate to project directory
cd mlm_project
# Create virtual environment
python -m venv venv
# Activate virtual environment
# Windows:
venv\Scripts\activate
# Mac/Linux:
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Run migrations
python manage.py makemigrations
python manage.py migrate
# Create superuser (admin)
python manage.py createsuperuser
# Run development server
python manage.py runserver- Landing Page: http://localhost:8000/
- Dashboard: http://localhost:8000/dashboard/
- Admin Panel: http://localhost:8000/admin/
- Login Page: http://localhost:8000/auth/login/
- Register Page: http://localhost:8000/auth/register/
| URL | Page | Description |
|---|---|---|
/ |
Landing Page | Modern animated landing page |
/auth/login/ |
Login | User login |
/auth/register/ |
Register | User registration with referral |
/support/help/ |
Help Center | FAQ and help articles |
/support/contact/ |
Contact Us | Contact form |
/support/privacy/ |
Privacy Policy | Privacy information |
/support/terms/ |
Terms of Service | Terms and conditions |
| URL | Page | Description |
|---|---|---|
/dashboard/ |
Dashboard | Main user dashboard |
/profile/ |
Profile | User profile management |
/auth/change-password/ |
Change Password | Password update |
/auth/logout/ |
Logout | User logout |
| URL | Page | Description |
|---|---|---|
/wallets/ |
All Wallets | View all 11 wallets |
/wallets/transfer/ |
Transfer | Transfer between wallets |
/wallets/history/ |
History | Wallet transaction history |
| URL | Page | Description |
|---|---|---|
/team/direct/ |
Direct Team | View direct referrals |
/team/level/ |
Level Team | Level-wise team view |
/team/tree/ |
Genealogy Tree | Interactive tree view |
/team/whole/ |
Whole Tree | Complete downline |
| URL | Page | Description |
|---|---|---|
/fund/deposit/ |
Deposit | Request deposit |
/fund/withdrawal/ |
Withdrawal | Request withdrawal |
/fund/history/ |
History | Transaction history |
| URL | Page | Description |
|---|---|---|
/income/summary/ |
Income Summary | All income details |
/reports/pdf/ |
PDF Report | Generate income report |
| URL | Page | Description |
|---|---|---|
/rank/ |
Rank System | View rank & rewards |
| URL | Page | Description |
|---|---|---|
/support/ |
Support Tickets | View all tickets |
/support/create/ |
Create Ticket | Submit new ticket |
/support/<id>/ |
Ticket Detail | View ticket details |
| URL | Method | Description |
|---|---|---|
/api/search/ |
GET | Global search API |
| URL | Page | Description |
|---|---|---|
/admin/ |
Admin Dashboard | Django admin panel |
- Visit
/auth/register/ - Fill in your details:
- Username (unique)
- Email address
- Phone number
- Password (strong password required)
- Sponsor's referral code (optional)
- Click "Register Now"
- You'll be redirected to login page
After login, you'll see:
- Total Income: Sum of all wallet balances
- Team Statistics: Direct team, total team, active members
- Quick Actions: Add member, deposit, withdraw, transfer
- Activity Timeline: Recent activities
- Income Chart: Visual income trends
- Wallet Grid: All 11 wallets at a glance
- Click "Add New Member" on dashboard
- Share your unique referral link via:
- WhatsApp (one-click share)
- Email (one-click share)
- Copy link manually
- New members register using your link
- They automatically join your team
Deposit:
- Go to Fund Management > Deposit
- Enter amount
- Upload payment screenshot
- Submit request
- Wait for admin approval
- Funds credited to Topup Wallet
Withdraw:
- Go to Fund Management > Withdraw
- Enter amount (from Income Wallet)
- Select payment method
- Enter payment details
- Submit request
- Admin processes within 24-48 hours
Transfer:
- Go to Wallets > Transfer
- Select source wallet
- Select destination wallet
- Enter amount
- Enter OTP (sent to email/phone)
- Confirm transfer
Direct Team:
- View all direct referrals
- See their joining date, status, business
Level Team:
- View team by levels (1-10)
- See level-wise statistics
- Track team growth
Genealogy Tree:
- Interactive visual tree
- Click to expand/collapse
- See complete hierarchy
- View income summary
- See all income types
- Download PDF reports
- Track commission history
Help Center:
- Browse FAQ categories
- Search for answers
- View help articles
Contact Us:
- Fill contact form
- Select subject
- Get response via email
Support Tickets:
- Create support ticket
- Track ticket status
- View admin replies
- URL:
/admin/ - Login with superuser credentials
- Access all management features
- View all users
- Edit user details
- Activate/deactivate accounts
- View user statistics
- Go to Transactions > Deposits
- View pending deposits
- Check payment screenshot
- Actions:
- Approve: Auto-credits Topup Wallet
- Reject: Marks as rejected
- Go to Transactions > Withdrawals
- View pending withdrawals
- Verify user details
- Actions:
- Mark as Paid: Completes withdrawal
- Reject & Refund: Returns to Income Wallet
- View all support tickets
- Add admin reply
- Change ticket status
- Close resolved tickets
- View all user ranks
- See rank criteria
- Mark rewards as given
- Track rank achievements
- Edit hero section content
- Update statistics
- Manage testimonials
- Update contact information
- Animated Hero Section: Gradient backgrounds, floating elements
- Feature Cards: Hover effects, icon animations
- Wallet Showcase: 11 wallet types display
- Rank System: Visual rank cards
- Testimonials: User success stories
- FAQ Section: Expandable accordion
- Modern Footer: Social links, quick links
- Performance Metrics: Animated gradient cards
- Quick Actions: One-click access
- Activity Timeline: Real-time feed
- Income Chart: Line chart with Chart.js
- Wallet Grid: All wallets overview
- Desktop: Full sidebar navigation
- Tablet: Collapsible sidebar
- Mobile: Bottom navigation, optimized cards
| Level | Commission | Description |
|---|---|---|
| Direct | 10% | Direct referral commission |
| Level 1 | 5% | First level team |
| Level 2 | 3% | Second level team |
| Level 3 | 2% | Third level team |
| Level 4-7 | 1% each | Mid-level team |
| Level 8-10 | 0.5% each | Deep level team |
- Direct Income: From direct referrals
- Level Income: From team levels 1-10
- Binary Income: From binary tree
- Matching Income: Matching bonus
- Reward Income: Achievement rewards
- Rank Income: Rank achievement bonus
- Salary Income: Monthly salary
- Growth Income: Team growth bonus
- Sponsor Growth: Sponsor team growth
| Rank | Team Size | Team Business | Reward |
|---|---|---|---|
| π₯ Silver | 10+ members | βΉ50,000+ | βΉ5,000 |
| π₯ Gold | 25+ members | βΉ1,50,000+ | βΉ15,000 |
| π Diamond | 50+ members | βΉ5,00,000+ | βΉ50,000 |
| π Crown | 100+ members | βΉ10,00,000+ | βΉ1,00,000 |
- Silver: Basic benefits, 5K reward
- Gold: Enhanced benefits, 15K reward
- Diamond: Premium benefits, 50K reward
- Crown: Elite benefits, 1L reward
Edit config/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'
DEFAULT_FROM_EMAIL = 'MLM Network <noreply@mlmnetwork.com>'Switch to PostgreSQL:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'mlm_db',
'USER': 'postgres',
'PASSWORD': 'your-password',
'HOST': 'localhost',
'PORT': '5432',
}
}DEBUG = False
ALLOWED_HOSTS = ['yourdomain.com', 'www.yourdomain.com']
SECRET_KEY = 'your-secret-key-here' # Generate new key
SECURE_SSL_REDIRECT = True
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = TrueFor async income processing:
# Install Redis
pip install redis
# Start Redis server
redis-server
# Start Celery worker
celery -A config worker -l info
# Start Celery beat (for scheduled tasks)
celery -A config beat -l info1. Module not found error
pip install -r requirements.txt2. Database error
python manage.py makemigrations
python manage.py migrate3. Static files not loading
python manage.py collectstatic4. Port already in use
python manage.py runserver 80015. Permission denied (Linux/Mac)
chmod +x manage.py6. Migration conflicts
python manage.py migrate --fake
python manage.py migrate- β CSRF Protection on all forms
- β XSS Prevention with Django templates
- β SQL Injection Protection with ORM
- β Password Hashing with PBKDF2
- β Secure Session Management
- β OTP Verification for transfers
- β Admin-only access controls
- β Input Validation & Sanitization
- β Atomic Database Transactions
- β Rate Limiting (configurable)
- Mobile: < 768px
- Tablet: 768px - 1024px
- Desktop: > 1024px
- Touch-optimized buttons
- Swipe gestures
- Bottom navigation
- Optimized images
- Fast loading times
- User Management
- Wallet System
- Income Distribution
- Team Management
- Support System
- Landing Page
- Mobile App (React Native)
- Real-time Notifications (WebSocket)
- Dark Mode Toggle
- Multi-language Support
- Advanced Analytics Dashboard
- Blockchain Integration
- AI-powered Recommendations
- Video KYC Integration
- Payment Gateway Integration
- SMS Notifications
- Social Media Integration
- Fork the repository
- Create feature branch (
git checkout -b feature/AmazingFeature) - Commit changes (
git commit -m 'Add AmazingFeature') - Push to branch (
git push origin feature/AmazingFeature) - Open Pull Request
Project: MLM Network Marketing System
Version: 2.0
Status: Production Ready π
Last Updated: May 2026
Framework: Django 4.2.16
Python: 3.8+
- π§ Email: softbenderai@gmail.com
- π± Phone: +91-9454680972
- π Website: https://softbenderai.cloud
- π¬ Support: Create ticket in support section
- π Documentation: See
ENHANCEMENTS.mdandUSER_REGISTRATION_GUIDE.md
- Django Framework Team
- Bootstrap Team
- Chart.js Team
- All Contributors
- Total Apps: 8 Django apps
- Total Models: 20+ models
- Total Views: 50+ views
- Total Templates: 30+ templates
- Total URLs: 40+ endpoints
- Lines of Code: 10,000+ lines
- Development Time: 3+ months
Made with β€οΈ for MLM Network Community
π Ready for Production | π± Mobile Responsive | π Secure | β‘ Fast