weather station powered by django
This commit is contained in:
0
sites/WeatherStation/HomeWeather/__init__.py
Normal file
0
sites/WeatherStation/HomeWeather/__init__.py
Normal file
3
sites/WeatherStation/HomeWeather/admin.py
Normal file
3
sites/WeatherStation/HomeWeather/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
5
sites/WeatherStation/HomeWeather/apps.py
Normal file
5
sites/WeatherStation/HomeWeather/apps.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class HomeweatherConfig(AppConfig):
|
||||
name = 'HomeWeather'
|
||||
3
sites/WeatherStation/HomeWeather/models.py
Normal file
3
sites/WeatherStation/HomeWeather/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
3
sites/WeatherStation/HomeWeather/tests.py
Normal file
3
sites/WeatherStation/HomeWeather/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
7
sites/WeatherStation/HomeWeather/urls.py
Normal file
7
sites/WeatherStation/HomeWeather/urls.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from django.urls import path
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.index, name='index'),
|
||||
]
|
||||
6
sites/WeatherStation/HomeWeather/views.py
Normal file
6
sites/WeatherStation/HomeWeather/views.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.shortcuts import render
|
||||
from django.http import HttpResponse
|
||||
|
||||
# Create your views here.
|
||||
def index(request):
|
||||
return HttpResponse("Home Weather")
|
||||
Reference in New Issue
Block a user