/InfraLINK

Location-based crowdsourced infrastructure info and news.

Primary LanguagePythonMIT LicenseMIT

Deploy

Django-Deployable-Template

Django app with users and database, deployable on Heroku.

To run:

cd base
python3 manage.py runserver

To start a new app:

python3 manage.py startapp appname

Then add these to your new app:

urls.py

from django.urls import path
from . import views

urlpatterns = [
    path('', views.index, name='index'),
]

views.py

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

def index(request):
    return HttpResponse("New web app.")

Add to base/urls.py

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