- Instalar Python
- Instalar Postgres
- Instalar Python Environment
$ sudo apt install python3-env
- Clonar repo
- Crear, activar python env
$ python3 -m venv venv $ source venv/bin/activate
- Instalar dependencias (dentro de la carpeta /tutos/)
$ pip install -r requirements.txt
- Si necesita ayuda para instalar psycopg2
- Crear archivo /tutos/credentials.py
DEVELOPMENT_DATABASE = { 'NAME': 'tutos_dev_db', 'USER': 'tu-usuario', 'PASSWORD': 'tu-contraseña', 'HOST': 'tu-host', 'PORT': 'tu-puerto', }
- Crear/resetear db y correr migrations
$ python load_data.py
- Run Server
$ python manage.py runserver 0.0.0.0:3000