Code Monkey home page Code Monkey logo

django_polls's Introduction

Bienvenido a la librería de encuestas de django

A continuación vamos a explicar cómo instalar el proyecto

  1. Descarga el código con el siguiente comando:
git clone https://github.com/aliciapj/django_polls.git
  1. Entramos en la carpeta descargada django_polls y creamos el entorno virtual con el comando:
cd django_polls
python3 -m venv .venv
  1. Activamos el entorno virtual
source .venv/bin/activate
  1. Instalamos las librerías necesarias que se encuentran en el fichero requirements.txt
pip install -r requirements.txt
  1. Ejecutamos las migraciones
python manage.py migrate
  1. Cargamos los datos iniciales:
python manage.py loaddata fixtures/polls_data.json
  1. Configurar localhost como ip permitida para django. Editar el fichero django_polls/settings.py. Añadir la ip local a la variable ALLOWED_HOSTS (en la línea 28) de forma que quede así:
ALLOWED_HOSTS = ['192.168.33.10', '127.0.0.1', 'localhost']
  1. Arrancamos el servidor
python manage.py runserver

django_polls's People

Contributors

aliciapj 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.