RyanFleck / Django-Deployable-Template

Django 3 app with users and database, deployable on Heroku.

Home Page:https://django-deployable-template.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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),
]

About

Django 3 app with users and database, deployable on Heroku.

https://django-deployable-template.herokuapp.com/

License:MIT License


Languages

Language:Python 100.0%