initial commit

This commit is contained in:
2021-01-07 22:12:05 +01:00
commit e385650802
51 changed files with 1048 additions and 0 deletions
View File
+3
View File
@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.
+5
View File
@@ -0,0 +1,5 @@
from django.apps import AppConfig
class RatesConfig(AppConfig):
name = 'rates'
+27
View File
@@ -0,0 +1,27 @@
# Generated by Django 3.1.4 on 2021-01-03 21:17
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')),
('crypto_currency', models.CharField(max_length=10)),
('fiat_currency', models.CharField(max_length=10)),
('rate', models.DecimalField(decimal_places=10, max_digits=24)),
('datetime_valid', models.DateTimeField(verbose_name='datetime valid')),
],
options={
'db_table': 'exchangerate',
},
),
]
View File
+10
View File
@@ -0,0 +1,10 @@
from django.db import models
# Create your models here.
class ExchangeRate(models.Model):
crypto_currency = models.CharField(max_length=10)
fiat_currency = models.CharField(max_length=10)
rate = models.DecimalField(max_digits=24, decimal_places=10)
datetime_valid = models.DateTimeField('datetime valid')
class Meta:
db_table = "exchangerate"
+3
View File
@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.
+3
View File
@@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.