Welcome to SASCOP BME SubTec
SASCOP BME SubTec is a comprehensive Django-based project management system designed for underwater subsea operations. This guide will help you set up and start using the system quickly.What is SASCOP BME SubTec? A specialized platform for managing PTEs (Technical Project Proposals), OTEs (Work Orders), production tracking, and financial estimations in subsea engineering projects.
Quick Setup
Install Dependencies
Install all required Python packages using pip:
View Core Dependencies
View Core Dependencies
The system requires the following key packages:See the full
requirements.txt at ~/workspace/source/requirements.txtRun Migrations
Apply database migrations to create all necessary tables:This will create tables for:
- User authentication
- PTEs (Technical Project Proposals)
- OTEs (Work Orders)
- Production tracking
- Catalogs (Sites, Statuses, Types, etc.)
- Estimations and billing
Create Superuser
Create an admin account to access the Django admin panel:Follow the prompts to set username, email, and password.
First Login
After starting the server, navigate to the login page:Login with Username
Use the superuser credentials you created
Login with Email
The system also supports email-based authentication
Authentication Features
The custom login system (operaciones/views/login.py:11) supports:
- Username or Email: Login with either your username or email address
- Session Management: 2-hour session timeout (configurable)
- Session Expiry Handling: Automatic redirect with clear messaging
- Security: CSRF protection enabled
Verify Installation
Once logged in, you should see the main dashboard at:Access Main Modules
From the dashboard, you can access:
- PTEs: Technical Project Proposals management
- OTEs: Work Orders and operations
- Production: Daily and monthly production tracking
- Catalogs: Master data configuration
- Centro de Consulta: Business intelligence and reporting
Production Deployment
Using Gunicorn
For production, use Gunicorn as the WSGI server:Production Settings Checklist
Security Settings
Security Settings
bme_subtec/settings.py
Static Files Configuration
Static Files Configuration
bme_subtec/settings.py
Next Steps
Architecture
Learn about the system architecture and components
User Roles
Understand user roles and permissions
Workflow
Explore the PTE to OTE workflow
Installation
Detailed installation and configuration guide
Common Issues
Database Connection Error
Database Connection Error
If you encounter database connection errors:
-
Verify PostgreSQL is running:
-
Check your database credentials in
.env -
For local development, disable SSL:
-
Create the database if it doesn’t exist:
Static Files Not Loading
Static Files Not Loading
If static files (CSS, JS) aren’t loading:
-
Run collectstatic again:
- Verify STATIC_ROOT path exists
- Check WhiteNoise is in MIDDLEWARE
- In development, Django serves static files automatically with DEBUG=True
Session Timeout Issues
Session Timeout Issues
If users are logged out too quickly:Adjust session timeout in The
settings.py:141:SessionTimeoutMiddleware at operaciones/middleware.py:5 manages automatic logout.Email Configuration
Email Configuration
If emails aren’t sending:
- Verify SMTP settings in
.env - For Gmail, use an App Password (not your regular password)
- Test with Django shell:
Getting Help
Documentation
Browse the complete documentation for detailed guides
Source Code
Review the source code at
~/workspace/source/This quickstart covers the basics. For production deployments, review the Installation Guide for comprehensive configuration options.