Giter Club home page Giter Club logo

capacitaciones_ogcu's Introduction

Django Project

Instalacion y despliegue

Instalar python3.9 en ubuntu 18.04
- sudo apt update
- sudo apt install software-properties-common
- sudo add-apt-repository ppa:deadsnakes/ppa
- sudo apt update 
- sudo apt install python3.9
Instalar el venv
- sudo apt install python3.9-venv
Crear el entorno virtual
- python3.9 -m venv venv

Configuracion

Crear archivo .env y añadir las variables de entorno necesarias para el correcto 
funcionamiento del proyecto. 
Variables de entorno básicas:

+---------------------------------+------------------------------------------------------+
| ``DATABASE_URL``                | Es la cadena de conexión a la base de datos para     |
|                                 | PostgreSQL se debe usar la siguiente sintaxys:       |
|                                 | ``psql://user:password@host:port/database``          |
+---------------------------------+------------------------------------------------------+
| ``ALLOWED_HOSTS``               | "*"                                                  |
+---------------------------------+------------------------------------------------------+
| ``EMAIL_HOST``                  | Host del email                                       |
+---------------------------------+------------------------------------------------------+
| ``EMAIL_PORT``                  | Puerto para el email                                 |
+---------------------------------+------------------------------------------------------+
| ``EMAIL_HOST_USER``             | Usuario para email                                   |
+---------------------------------+------------------------------------------------------+
| ``EMAIL_HOST_PASSWORD``         | Contraseña para el email                             |
+---------------------------------+------------------------------------------------------+

Instalar requerimientos en virtualenv

  • Activar el venv ubicandose dentro del proyecto: source venv/bin/activate
  • pip install -r requirements/base.txt

Indicaciones para sysadmin

EJECUTAR

  • python manage.py migrate
  • python manage.py collectstatic

ARRANCAR LA APLICACIÓN

  • python manage.py runserver

Indicaciones para Base de datos: Indicaciones para BD

capacitaciones_ogcu's People

Contributors

cpaucarc avatar apagolap avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.