Folder that holds database for future plans of all contentes of Plex

Library and system info.
This commit is contained in:
2016-12-08 11:47:48 +01:00
parent 94041dfc5b
commit 41000e69b9
39 changed files with 352 additions and 0 deletions

View File

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

View File

@@ -0,0 +1,5 @@
from django.apps import AppConfig
class IpConfig(AppConfig):
name = 'ip'

View File

View File

@@ -0,0 +1,10 @@
from django.db import models
# Create your models here.
class Address(models.Model):
ip_address = models.CharField(max_length=50)
class Choice(models.Model):
question = models.ForeignKey(Question, on_delete=models.CASCADE)
choice_text = models.CharField(max_length=200)
votes = models.IntegerField(default=0)

View File

@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

14
apolloActivity/ip/urls.py Normal file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author: KevinMidboe
# @Date: 2016-11-23 20:43:37
# @Last Modified by: KevinMidboe
# @Last Modified time: 2016-11-23 20:43:50
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
]

View File

@@ -0,0 +1,7 @@
from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse
def index(request):
return HttpResponse("Hello, world. You're at the ip index.")