2017-12-22 07:40:13 +01:00
|
|
|
#+TITLE: Andreas Zweili
|
|
|
|
#+SETUPFILE: ~/git_repos/notes/settings/html_theme/setup/theme-readtheorg.setup
|
|
|
|
#+AUTHOR: Andreas Zweili
|
2017-12-22 14:13:51 +01:00
|
|
|
|
|
|
|
* Models
|
|
|
|
|
|
|
|
#+BEGIN_SRC python :tangle ../network_inventory/models.py
|
|
|
|
#!/usr/bin/python3
|
|
|
|
from django.db import models
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
* Admin
|
|
|
|
|
|
|
|
#+BEGIN_SRC python :tangle ../network_inventory/admin.py
|
|
|
|
#!/usr/bin/python3
|
|
|
|
from django.contrib import admin
|
|
|
|
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
* Views
|
|
|
|
|
|
|
|
#+BEGIN_SRC python :tangle ../network_inventory/views.py
|
|
|
|
#!/usr/bin/python3
|
|
|
|
from django.shortcuts import get_object_or_404, render
|
|
|
|
|
|
|
|
#+END_SRC
|