corrections and first try to migrate
This commit is contained in:
parent
28841df4e3
commit
409b18807b
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE HTML>
|
||||
<meta charset="UTF-8">
|
||||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>audioguide</h1>
|
||||
<h3>a mobile offline audioguide</h3>
|
||||
noop
|
||||
noop
|
||||
noop
|
||||
noop
|
||||
noop
|
||||
noop
|
||||
<p>the audioguide that makes a offline usage possible.</p>
|
||||
</header>
|
||||
<nav>
|
||||
</nav>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,24 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.7 on 2017-12-18 18:01
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='ExchangeRate',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=200, unique=True)),
|
||||
('exchange_rate_to_chf', models.FloatField(max_length=5)),
|
||||
],
|
||||
),
|
||||
]
|
|
@ -1,5 +1,4 @@
|
|||
from django.db import models
|
||||
import exchange_rates
|
||||
|
||||
|
||||
class ExchangeRate(models.Model):
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
from django.conf.urls import url
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^$', views.index, name='index'),
|
||||
]
|
|
@ -1,3 +1,7 @@
|
|||
from django.shortcuts import render
|
||||
from django.http import HttpResponse
|
||||
import exchange_rates
|
||||
|
||||
# Create your views here.
|
||||
|
||||
def index(request):
|
||||
return HttpResponse(exchange_rates)
|
||||
|
|
|
@ -32,6 +32,7 @@ ALLOWED_HOSTS = []
|
|||
|
||||
INSTALLED_APPS = [
|
||||
'webshop.apps.WebshopConfig',
|
||||
'currencies.apps.CurrenciesConfig',
|
||||
'django_extensions',
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
|
@ -39,7 +40,6 @@ INSTALLED_APPS = [
|
|||
'django.contrib.sessions',
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'currencies',
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
|
|
Loading…
Reference in New Issue