diff --git a/aula207_ola_django/blog/__init__.py b/aula207_ola_django/blog/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/aula207_ola_django/blog/admin.py b/aula207_ola_django/blog/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/aula207_ola_django/blog/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/aula207_ola_django/blog/apps.py b/aula207_ola_django/blog/apps.py new file mode 100644 index 0000000..94788a5 --- /dev/null +++ b/aula207_ola_django/blog/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class BlogConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'blog' diff --git a/aula207_ola_django/blog/migrations/__init__.py b/aula207_ola_django/blog/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/aula207_ola_django/blog/models.py b/aula207_ola_django/blog/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/aula207_ola_django/blog/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/aula207_ola_django/blog/tests.py b/aula207_ola_django/blog/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/aula207_ola_django/blog/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/aula207_ola_django/blog/views.py b/aula207_ola_django/blog/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/aula207_ola_django/blog/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/aula207_ola_django/home/__init__.py b/aula207_ola_django/home/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/aula207_ola_django/home/admin.py b/aula207_ola_django/home/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/aula207_ola_django/home/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/aula207_ola_django/home/apps.py b/aula207_ola_django/home/apps.py new file mode 100644 index 0000000..e5ea0af --- /dev/null +++ b/aula207_ola_django/home/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class HomeConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'home' diff --git a/aula207_ola_django/home/migrations/__init__.py b/aula207_ola_django/home/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/aula207_ola_django/home/models.py b/aula207_ola_django/home/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/aula207_ola_django/home/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/aula207_ola_django/home/tests.py b/aula207_ola_django/home/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/aula207_ola_django/home/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/aula207_ola_django/home/views.py b/aula207_ola_django/home/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/aula207_ola_django/home/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/aula207_ola_django/project/urls.py b/aula207_ola_django/project/urls.py index 7cc72e8..dbe3946 100644 --- a/aula207_ola_django/project/urls.py +++ b/aula207_ola_django/project/urls.py @@ -18,9 +18,6 @@ from django.contrib import admin from django.http import HttpResponse from django.urls import path -# HTTP Request <-> HTTP Response -# MVT (MVC) - def home(request): print('home')