Menu
e-lo
  • Home
    • Tech
    • Inspiration and about
  • Database
    • T-SQL
    • SQL Server quick
    • SQL server docs
    • MySql quick sheet
    • Postgre
    • InfluxDB
  • Programming
    • Automating the boring stuff
    • Python 101
    • Python Docs
    • Python Logging
    • cSharp Overview
    • Powershell Latest
    • Powershell 4 lang ref
    • MS Azure PS ref
    • MS Azure CLI ref
  • Azure
    • AZ-104-MS Azure Administrator 101 quick ref
    • AZ-104 Lab
    • MS Windows virtual machines in Azure
    • MS ARM Docs
    • MS ARM Tutorial
    • MS Deployment scripts (intern/extern)
    • ARM Quickstart
    • MS ARM templates 4h
  • Az Adm
    • AD 101
    • Governance and Compliance 102
    • Administration 103
    • Virtual Networking 104
    • Storage 107 (With table (NoSQL and more))
    • Virtual Machines 108
    • Azure Virtual Machines 101
    • Monitor VM (and market)
  • Linux
    • Top CMD’s
    • Useful CMD Linux
    • ss64 Linux
    • Ubuntu
    • 30 things Ubuntu 18.04
  • Zen
    • Not thinking about anything is Zen
e-lo

Category: Django

Django Rest Framework

Posted on June 16, 2019June 17, 2019 by espenk

https://www.django-rest-framework.org/community/tutorials-and-resources/ This tutorial was used for 50%, the rest is my own demo: https://tests4geeks.com/django-rest-framework-tutorial/ Set up django: mkvirtualenv dapi navigate to your folder, then mkdir dapi cd dapi, setprojectdir . pip install django django-admin startproject api_apps Then you get the folder structure, run it: python manage.py runserver Go to http://localhost:8000/ The install worked successfully! Congratulations!…

+

Whiteboard (Django 1-5)

Posted on May 30, 2019June 10, 2019 by espenk

Python 3.7 installed pip install virtualenv, virtualenvwrapper-win (remove -win for linux) pip freeze: C:\WINDOWS\system32>pip freeze pbr==5.2.1 six==1.12.0 stevedore==1.30.1 virtualenv==16.6.0 virtualenv-clone==0.5.3 virtualenvwrapper-win==1.2.5 mkvirtualenv whiteboard cd and mkdir into app folder, then setprojectdir . (env) pip install django (env) python -m django –version Then we can start the project: django-admin startproject whitebo Then we get the frame…

+

Django database API foreign key 102

Posted on August 8, 2018November 4, 2018 by espenk

https://docs.djangoproject.com/en/2.0/topics/db/queries/   Our models have now changed and a new model has been added to e-lo. In RawText, we store the input, in BlobText we store the functions from TextBlob lib. If we remove the instance from the first table, we also need to remove it from the second. Ref on_delete = models.CASCADE Lets add…

+

Django database API migrations and models 101

Posted on August 8, 2018November 4, 2018 by espenk

Django API Once you’ve created your data models, Django automatically gives you a database-abstraction API that lets you create, retrieve, update and delete objects. This document explains how to use this API. Refer to the data model reference for full details of all the various model lookup options. https://docs.djangoproject.com/en/2.0/topics/db/queries/ So our testmodel is a simple…

+

RSS Azure

  • Azure Cost Management and Billing updates – January 2021 January 26, 2021

RSS Python

  • PEP 651: Robust Stack Overflow Handling January 18, 2021

Cloud

ARM (8) azure (23) cmd (1) Django (4) Docker (1) e-lo (2) Flask (2) Github (9) Grafana (2) Information (1) Information Retrieval (11) JAVA (1) kivy (2) Kotlin (4) linux (11) mobile (2) Natural Language Prossesing (NLP) (2) Net.Core (1) Networking and Security (2) OPC (2) PEP8 (1) Philosophy (3) Python (41) Python Networking and Security (2) Reason (2) RMQ (2) Solr (11) Sql (10) VSC (1) Warframe (2) WMVARE (4) Zabbix (7)

Recent Posts

  • 1 TODO ARM Lab 105 MS (Deployment create a pipeline)
  • 2 TODO MS ARM Template 4h
  • TODO Cryptography with Python – Caesar Cipher
  • 3 TODO Udemy AZ-104 Microsoft Azure Administrator Exam Certification (Scott Duffy)
  • ARM Lab 104 MS (Deployment and more)

Archives

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
©2021 e-lo | Powered by WordPress & Superb Themes