Skip to content

Instantly share code, notes, and snippets.

View Sierra-034's full-sized avatar

Samuel Gómez Balderas Sierra-034

  • Mexico City
View GitHub Profile
@Sierra-034
Sierra-034 / django-manual.md
Last active August 31, 2023 02:39
Django getting started

Manual to get started with django

First we have to create a directory which will hold you main code. Inside that folder you will have to create your virtual environment. Once your venv is created you will have to create django project with the following command: django-admin startproject project-name

Project folder structure

asgi.py and wsgi.py are config files for deployment.

settings.py

@Sierra-034
Sierra-034 / mongodb_on_docker.md
Created August 21, 2023 20:58
How to setup mongodb on docker

How to setup mongodb on docker

The next command will download the latest mongodb docker image and will create a container with the given port, name and volumes to persist db data.

docker run -d -p 9000:27017 --name example-mongo -v mongo-data:/data/db mongo:latest