Skip to content

Commit

Permalink
Test 123
Browse files Browse the repository at this point in the history
  • Loading branch information
renanharrigan committed Apr 8, 2022
1 parent 662649a commit ce09d87
Show file tree
Hide file tree
Showing 31 changed files with 33,627 additions and 198 deletions.
Empty file added Code/renan/LCD_Simulator.py
Empty file.
Empty file added Code/renan/U
Empty file.
Empty file.
3 changes: 3 additions & 0 deletions Code/renan/hello_app/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
6 changes: 6 additions & 0 deletions Code/renan/hello_app/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class HelloAppConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'hello_app'
Empty file.
3 changes: 3 additions & 0 deletions Code/renan/hello_app/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
12 changes: 12 additions & 0 deletions Code/renan/hello_app/templates/hello_app/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>Hello {{hello}}</h1>
</body>
</html>
3 changes: 3 additions & 0 deletions Code/renan/hello_app/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.test import TestCase

# Create your tests here.
11 changes: 11 additions & 0 deletions Code/renan/hello_app/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from django.http import HttpResponse
from django.urls import path
from flask import request
from . import views

urlpatterns = [
# path('bruce', views.bruce, name='bruce')

def say_hello(request, name):
return render(request, 'hello_app/index.html', {'test':name})
]
10 changes: 10 additions & 0 deletions Code/renan/hello_app/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from django.http import HttpResponse
from django.shortcuts import render
from django.http import HttpResponse

# Create your views here.
def hello(request):
return HttpResponse('<h1>Hello World</>')

def bruce(request):
return HttpResponse('Hello Bruce')
Binary file removed Code/renan/html_css/lab1/Warrior_Thanos.jpg
Binary file not shown.
46 changes: 0 additions & 46 deletions Code/renan/html_css/lab1/index.html

This file was deleted.

35 changes: 0 additions & 35 deletions Code/renan/html_css/lab1/styles.css

This file was deleted.

47 changes: 0 additions & 47 deletions Code/renan/html_css/lab2/index.html

This file was deleted.

36 changes: 0 additions & 36 deletions Code/renan/html_css/lab2/styles.css

This file was deleted.

29 changes: 0 additions & 29 deletions Code/renan/html_css/lab3/index.html

This file was deleted.

1 change: 1 addition & 0 deletions Code/renan/install_requests.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#python -m pip install requests
Empty file.
16 changes: 16 additions & 0 deletions Code/renan/kiwi_first_proj/asgi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""
ASGI config for kiwi_first_proj project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/
"""

import os

from django.core.asgi import get_asgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'kiwi_first_proj.settings')

application = get_asgi_application()
Loading

1 comment on commit ce09d87

@brucestull
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lab 14: Dad Joke API

Needs Work

  • Application fails to run and gives 'SyntaxError'. See console response below:
PS C:\Users\Bruce\Programming\class_kiwi\Code\renan\python> python .\lab14.py
  File "C:\Users\Bruce\Programming\class_kiwi\Code\renan\python\lab14.py", line 25
    if response == :
                   ^
SyntaxError: invalid syntax

Please sign in to comment.