DjangoOnline Django compiler, Online Django IDE, and online Django REPL.

Code Django, compile Django, run Django, and host your programs and apps online for free.

loading
Files
  • main
    • views.py
    • migrations
    • models.py
    • settings.py
    • urls.py
  • static
  • templates
main/views.py
1
2
3
4
5
6
from django.shortcuts import render


# Create your views here.
def home(request):
    return render(request, 'main/index.html')
Python 3.6.1 (default, Jun 21 2017, 18:48:35) [GCC 4.9.2] on linux