Skip to content

uvic-aero/ground-station

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ground Station

HTTP Server to store and serve data collected in flight.

Install

pip3 install Django

Running Server

From the project root dir

python3 manage.py runserver

Creating a New Application

  1. Create the application directory
django-admin startapp [newappname]
  1. Create views for application
# newappname/views.py

from django.shortcuts import render
from django.http import HttpResponse

# Create your views here.
def index(response):
    return HttpResponse("Hello, world. You're at the newapp index.")
  1. Create url endpoints for new views
# newappname/urls.py
from django.urls import path

from . import views

urlpatterns = [
    path('', views.index, name='index'),
]
  1. Import url's into project
# groundstation/urls.py
from django.contrib import admin
from django.urls import path, include

urlpatterns = [
    path('admin/', admin.site.urls),
    path('newappname/', include('newappname.urls')),    
]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages