Coder Social home page Coder Social logo

francozurschmitten / first-django-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 819 KB

Writing your first Django app

Home Page: https://docs.djangoproject.com/en/5.0/intro/tutorial01/

Python 92.76% HTML 6.68% CSS 0.56%
django first-project polls pollsapp tutorial

first-django-app's Introduction

First Django App

Case 1: Take the tutorial

Directory

Crating the directory: mkdir first-django-app Moving to directory: cd first-django-app.

Environment

Adding the enviroment: python3 -m venv env Activation: source env/bin/activate.

Django Project

Install Django: pip install Django.
Start project: django-admin startproject mysite ..

Run server

python manage.py runserver Congratulations! We start working

Case 2: Clone the repository

Clone the repository

git clone https://github.com/FrancoZurschmitten/first-django-app.git cd frist-django-app

Environment

Adding and install dependecies: python -m venv env pip install requirements.txt

Migrations

Applying migrations ./manage.py makemigrations ./manage.py migrate

Run server

./manage.py runserver

Tips

For the Error: That port is already in use. sudo fuser -k 8000/tcp

Para los que son de Boca

Caso 1: Hacer el tutorial

Directory

Creamos el directoria que va a contener nuestro projecto: mkdir first-django-app Posteriormente, nos movemos a la carpeta: cd first-django-app.

Entorno

Creamos un entorno dentro del directorio: python3 -m venv env Lo activamos: source env/bin/activate.

Django Project

Instalamos Django: pip install Django.
Luego, creamos el projecto dentro del directorio: django-admin startproject mysite .. El punto al final es para que genere los archivos dentro de el directorio actual.

Run server

Para iniciar nuestro servidor: python manage.py runserver Felicidades! Y ahora solo queda empezar a hacer el tutorial.

Caso 2: Clonar el repositorio

Clonar el repositorio

Pega esto en tu terminal: git clone https://github.com/FrancoZurschmitten/first-django-app.git Muevete al repositorio: cd frist-django-app

Entorno

Creamos un entorno e installamos dependencias: python -m venv env pip install requirements.txt

Migraciones

Applica las migraciones: ./manage.py makemigrations ./manage.py migrate

Run server

Inicia el Servidor ./manage.py runserver

Instalar dependencias:

Tips

Para el Error: That port is already in use. sudo fuser -k 8000/tcp

first-django-app's People

Watchers

 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.