From ad590fbe5ae05d2befe572b5cc53cd8501e35a1f Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Mon, 16 Sep 2019 01:24:15 +0200 Subject: [PATCH] add 'profiles' app and route --- pluralityspace/urls.py | 3 ++- profiles/__init__.py | 0 profiles/admin.py | 3 +++ profiles/apps.py | 5 +++++ profiles/migrations/__init__.py | 0 profiles/models.py | 3 +++ profiles/tests.py | 3 +++ profiles/urls.py | 7 +++++++ profiles/views.py | 7 +++++++ 9 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 profiles/__init__.py create mode 100644 profiles/admin.py create mode 100644 profiles/apps.py create mode 100644 profiles/migrations/__init__.py create mode 100644 profiles/models.py create mode 100644 profiles/tests.py create mode 100644 profiles/urls.py create mode 100644 profiles/views.py diff --git a/pluralityspace/urls.py b/pluralityspace/urls.py index 6d488e1..3dee8d3 100644 --- a/pluralityspace/urls.py +++ b/pluralityspace/urls.py @@ -14,8 +14,9 @@ Including another URLconf 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin -from django.urls import path +from django.urls import include, path urlpatterns = [ + path('profiles/', include('profiles.urls')), path('admin/', admin.site.urls), ] diff --git a/profiles/__init__.py b/profiles/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/profiles/admin.py b/profiles/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/profiles/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/profiles/apps.py b/profiles/apps.py new file mode 100644 index 0000000..5501fda --- /dev/null +++ b/profiles/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class ProfilesConfig(AppConfig): + name = 'profiles' diff --git a/profiles/migrations/__init__.py b/profiles/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/profiles/models.py b/profiles/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/profiles/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/profiles/tests.py b/profiles/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/profiles/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/profiles/urls.py b/profiles/urls.py new file mode 100644 index 0000000..6a56106 --- /dev/null +++ b/profiles/urls.py @@ -0,0 +1,7 @@ +from django.urls import path + +from . import views + +urlpatterns = [ + path('', views.index, name='index') +] diff --git a/profiles/views.py b/profiles/views.py new file mode 100644 index 0000000..4b26323 --- /dev/null +++ b/profiles/views.py @@ -0,0 +1,7 @@ +from django.http import HttpResponse +from django.shortcuts import render + +# Create your views here. +def index(request): + return HttpResponse("Hello worlds!") +