from django.conf.urls import url,include from django.contrib import admin urlpatterns = [ url(r'^panel/',include('panel.urls')), url(r'^admin/', admin.site.urls), ]
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$',views.zebra,name='zebra'), ]
[code python]# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
from django.http import HttpResponse
def zebra(request):
return ("<h3><p>Hello world!</p></h3>")
[/code]