mirror of
https://github.com/KevinMidboe/Node-Com-Handler.git
synced 2025-12-08 20:38:52 +00:00
Major cleanup, added all old files (python2) to 'old_v0.1' folder
This commit is contained in:
0
old_v0.1/apolloActivity/ip/__init__.py
Normal file
0
old_v0.1/apolloActivity/ip/__init__.py
Normal file
BIN
old_v0.1/apolloActivity/ip/__pycache__/__init__.cpython-34.pyc
Normal file
BIN
old_v0.1/apolloActivity/ip/__pycache__/__init__.cpython-34.pyc
Normal file
Binary file not shown.
BIN
old_v0.1/apolloActivity/ip/__pycache__/urls.cpython-34.pyc
Normal file
BIN
old_v0.1/apolloActivity/ip/__pycache__/urls.cpython-34.pyc
Normal file
Binary file not shown.
BIN
old_v0.1/apolloActivity/ip/__pycache__/views.cpython-34.pyc
Normal file
BIN
old_v0.1/apolloActivity/ip/__pycache__/views.cpython-34.pyc
Normal file
Binary file not shown.
3
old_v0.1/apolloActivity/ip/admin.py
Normal file
3
old_v0.1/apolloActivity/ip/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
5
old_v0.1/apolloActivity/ip/apps.py
Normal file
5
old_v0.1/apolloActivity/ip/apps.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class IpConfig(AppConfig):
|
||||
name = 'ip'
|
||||
0
old_v0.1/apolloActivity/ip/migrations/__init__.py
Normal file
0
old_v0.1/apolloActivity/ip/migrations/__init__.py
Normal file
10
old_v0.1/apolloActivity/ip/models.py
Normal file
10
old_v0.1/apolloActivity/ip/models.py
Normal 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)
|
||||
3
old_v0.1/apolloActivity/ip/tests.py
Normal file
3
old_v0.1/apolloActivity/ip/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
14
old_v0.1/apolloActivity/ip/urls.py
Normal file
14
old_v0.1/apolloActivity/ip/urls.py
Normal 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'),
|
||||
]
|
||||
7
old_v0.1/apolloActivity/ip/views.py
Normal file
7
old_v0.1/apolloActivity/ip/views.py
Normal 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.")
|
||||
Reference in New Issue
Block a user