Prerequisites
Before installing Proyecto, ensure you have the following installed on your system:Python 3.8+
Required for running Django and the application
PostgreSQL
Database system for data persistence
pip
Python package manager for installing dependencies
Git
Version control system for cloning the repository
Verify Prerequisites
Check that you have the correct versions installed:On some systems, you may need to use
python3 and pip3 instead of python and pip.Installation Steps
Create Virtual Environment
Create and activate a Python virtual environment to isolate dependencies:
Install Dependencies
Install all required Python packages from This will install:
requirements.txt:- Django 3.2.18: Web framework
- psycopg2 2.9.5: PostgreSQL database adapter
- asgiref 3.4.1: ASGI specification implementation
- pytz 2022.7.1: Timezone support
- sqlparse 0.4.3: SQL parsing library
- typing_extensions 4.1.1: Type hints support
Installation may take a few minutes depending on your internet connection.
Configure Database Settings
Update the database configuration in Replace
proyecto/settings.py:proyecto/settings.py
'your_password' with your PostgreSQL password.Update Secret Key (Production)
For production deployments, generate a new secret key:Update
SECRET_KEY in proyecto/settings.py with the generated value.Configure Allowed Hosts
Update
ALLOWED_HOSTS in proyecto/settings.py for your environment:proyecto/settings.py
Run Database Migrations
Apply all database migrations to create the necessary tables:You should see output confirming the migration of Django’s built-in apps and the CTP application:
Create Superuser Account
Create an admin account to access the Django admin interface:Follow the prompts to set:
- Username
- Email address
- Password
This account will have full administrative access to the system.
Collect Static Files (Production)
For production deployments, collect all static files:This gathers static files from all applications into a single directory for serving.
Directory Structure
After installation, your project directory should look like this:Configuration Options
Session Settings
Proyecto includes session timeout configuration insettings.py:
Static Files
Static files configuration:Media Files
Media files for uploads and generated PDFs:Troubleshooting
Common Issues
ImportError: No module named 'django'
ImportError: No module named 'django'
Make sure your virtual environment is activated and Django is installed:
psycopg2 installation fails
psycopg2 installation fails
On some systems, you may need to install PostgreSQL development headers:
Database connection refused
Database connection refused
Verify PostgreSQL is running and credentials are correct:Verify your
DATABASES settings in settings.py match your PostgreSQL configuration.Migrations fail to apply
Migrations fail to apply
If migrations fail, try:
Getting Help
If you encounter issues not covered here:- Check the Django documentation
- Review the PostgreSQL documentation
- Open an issue in the project repository
- Check existing issues for similar problems
Next Steps
Quick Start Guide
Learn how to create your first project and tasks
Core Features
Explore project management features
Workflow Guide
Learn the complete workflow
Configuration
Configure settings for your environment