Skip to content

Commit 312d819

Browse files
committed
add quick bootstrap django code example
1 parent e58215f commit 312d819

File tree

47 files changed

+708
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+708
-0
lines changed

bootstrap-4-django-template/step1/djbootstrap4/bootstrap4/__init__.py

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.contrib import admin
2+
3+
# Register your models here.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from django.apps import AppConfig
2+
3+
4+
class Bootstrap4Config(AppConfig):
5+
name = 'bootstrap4'

bootstrap-4-django-template/step1/djbootstrap4/bootstrap4/migrations/__init__.py

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.db import models
2+
3+
# Create your models here.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>First step</title>
5+
</head>
6+
<body>
7+
<h1>Hello, world!</h1>
8+
</body>
9+
</html>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.test import TestCase
2+
3+
# Create your tests here.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.conf.urls import url
2+
from . import views
3+
4+
urlpatterns = [
5+
url(r'', views.bootstrap4_index, name="index"),
6+
]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from django.shortcuts import render
2+
3+
def bootstrap4_index(request):
4+
return render(request, 'index.html', {})

bootstrap-4-django-template/step1/djbootstrap4/db.sqlite3

Whitespace-only changes.

0 commit comments

Comments
 (0)