Skip to content

Instantly share code, notes, and snippets.

View bachkukkik's full-sized avatar
:octocat:
Unable to comply, building in progress

Bachkukkik bachkukkik

:octocat:
Unable to comply, building in progress
View GitHub Profile
from flask import Flask
from flask_restful import Api, Resource
app = Flask(__name__)
api = Api(app)
names = {
"kukkik": {
"age": 30,
"gender": "male"

Root of the Django project is where manage.py resides

Prerequisites

  • $ mkdir basic_django
  • $ cd basic_django
  • $ virtualenv assume user already !pip install --user virtualenv
  • $ virtualenv -p python3 .
  • $ source bin/activate
  • $ pip install django
version: '3'
services:
portainer:
container_name: portainer
image: portainer/portainer-ce
command: -H unix:///var/run/docker.sock
restart: always
ports:
- 8000:8000