Base tempalte and bootstrap4
parent
1f1226ee6c
commit
458e0aa846
@ -0,0 +1,24 @@
|
||||
# Generated by Django 3.1.4 on 2020-12-19 17:43
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Slug',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('slug', models.SlugField(help_text='Slug of the new URL. Up to 20 caracters including letters, number, underscores and hyphens.', max_length=20)),
|
||||
('destination', models.CharField(help_text='The destination URL, limited to 300 characters.', max_length=300)),
|
||||
('uid', models.CharField(max_length=100, null=True)),
|
||||
('date', models.DateTimeField(auto_now=True)),
|
||||
],
|
||||
),
|
||||
]
|
@ -0,0 +1,26 @@
|
||||
{% load bootstrap4 %}
|
||||
|
||||
{% bootstrap_css %}
|
||||
{% bootstrap_javascript jquery='full' %}
|
||||
|
||||
<div class="jumbotron text-center">
|
||||
<h1>My First Bootstrap Page</h1>
|
||||
<p>Resize this responsive page to see the effect!</p>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<h3>Column 1</h3>
|
||||
<p>Lorem ipsum dolor..</p>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h3>Column 2</h3>
|
||||
<p>Lorem ipsum dolor..</p>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<h3>Column 3</h3>
|
||||
<p>Lorem ipsum dolor..</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -0,0 +1,15 @@
|
||||
# coding: utf-8
|
||||
# Author: Grizzly
|
||||
#
|
||||
# Views for litl.
|
||||
|
||||
from django.shortcuts import render
|
||||
|
||||
from .settings import TEMPLATES
|
||||
|
||||
def index(request):
|
||||
"""Display the home page of the site.
|
||||
TODO: Search and display the urls shortened by the user in the past.
|
||||
"""
|
||||
context = {}
|
||||
return render(request,'base.html',context)
|
Loading…
Reference in New Issue