From c331315a603d36bbb4989d6da882692b892e1394 Mon Sep 17 00:00:00 2001 From: mike Date: Wed, 22 Jan 2020 16:54:27 -0600 Subject: [PATCH] Added a few objects and some recipe data. --- src/.DS_Store | Bin 0 -> 6148 bytes src/brewtargetData.csv | 30 ++++++++++ src/recibeer/settings.py | 1 + src/recipes/.DS_Store | Bin 0 -> 8196 bytes src/recipes/__init__.py | 0 src/recipes/admin.py | 3 + src/recipes/apps.py | 5 ++ src/recipes/management/.DS_Store | Bin 0 -> 6148 bytes src/recipes/management/__init__.py | 0 src/recipes/management/commands/.DS_Store | Bin 0 -> 6148 bytes src/recipes/management/commands/__init__.py | 0 .../management/commands/load_recipe_data.py | 52 ++++++++++++++++++ src/recipes/migrations/0001_initial.py | 28 ++++++++++ src/recipes/migrations/__init__.py | 0 src/recipes/models.py | 13 +++++ src/recipes/tests.py | 3 + src/recipes/views.py | 3 + 17 files changed, 138 insertions(+) create mode 100644 src/.DS_Store create mode 100644 src/brewtargetData.csv create mode 100644 src/recipes/.DS_Store create mode 100644 src/recipes/__init__.py create mode 100644 src/recipes/admin.py create mode 100644 src/recipes/apps.py create mode 100755 src/recipes/management/.DS_Store create mode 100755 src/recipes/management/__init__.py create mode 100755 src/recipes/management/commands/.DS_Store create mode 100755 src/recipes/management/commands/__init__.py create mode 100755 src/recipes/management/commands/load_recipe_data.py create mode 100644 src/recipes/migrations/0001_initial.py create mode 100644 src/recipes/migrations/__init__.py create mode 100644 src/recipes/models.py create mode 100644 src/recipes/tests.py create mode 100644 src/recipes/views.py diff --git a/src/.DS_Store b/src/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..ce2e222b2990f0d9b5440fc86c58e10d45c9f6a2 GIT binary patch literal 6148 zcmeHK%Wl&^6ur|1Y8xS<3aPO328l(8k_I&kgk*)V=ng3e7Jyniwpt_C6Ktne2|?cQ z4+y@1U*QM%5Iz9TJSdG5#15irt~7J*%-l1N6VFVBh}d8nc8QuqWFZM`ILKC*XcuY8 zHgt{PG1*5!K4o-75fw|(rot#-6j(O}#NOSe0J}D#61(>I{vE;>5dIhBXaIMDu6&XaTB51z$QdCPu03M?wHsftZ;|3Cio z`+t#SN=5;rz@<`vHHM?%087$$>(b)HUF#wpA_)_5l|o5Drmth^h^zP(k~Flr!U1|3 UD}|_mnLh$j29p^D{;2{#0p5A;ZU6uP literal 0 HcmV?d00001 diff --git a/src/brewtargetData.csv b/src/brewtargetData.csv new file mode 100644 index 0000000..b0455e4 --- /dev/null +++ b/src/brewtargetData.csv @@ -0,0 +1,30 @@ +,title,style,brew type,author,batch size,batch size unit,creation date,notes +,Blonde Ale,Blonde Ale,AG,brewtarget,5,Gal,12/23/12,"Refreshing and easy-drinking beer, this blonde is mildly hopped and approachable." +,California Common,California Common,AG,brewtarget,5,Gal,12/23/12,"This California Common is hopped to be bitter, but not overwhelmingly so. The malt tastes and smells of toast, grain, and caramel, and finishes dry." +,Extra Special Bitter,Extra Special Bitter,AG,brewtarget,5,Gal,12/23/12,"This beer has pronounced caramelly sweetness, contrasted against significant hop bitterness as well as complex toasted aromas." +,Scottish 70 Shilling,Scottish 70 Shilling,AG,brewtarget,5,Gal,12/23/12, +,American Pale Ale,American Pale Ale,AG,brewtarget,5,Gal,12/23/12, +,Nut Brown,Nut Brown,AG,brewtarget,5,Gal,12/23/12, +,Robust Porter,Robust Porter,AG,brewtarget,5,Gal,12/23/12, +,Oatmeal Stout,Oatmeal Stout,AG,brewtarget,5,Gal,12/23/12, +,American IPA,American IPA,AG,brewtarget,5,Gal,12/24/12, +,Weizen,Weizen,AG,brewtarget,5,Gal,12/24/12, +,Saison,Saison,AG,brewtarget,5,Gal,12/24/12, +,Berliner Weisse,Berliner Weisse,AG,brewtarget,5,Gal,12/24/12, +,Belgian Blonde Ale,Belgian Blonde Ale,AG,brewtarget,5,Gal,12/24/12, +,American Barleywine,American Barleywine,AG,brewtarget,5,Gal,12/24/12, +,Rauchbier,Rauchbier,AG,brewtarget,5,Gal,12/24/12, +,Blonde Ale - Extract,Blonde Ale,Ex,brewtarget,5,Gal,1/2/13, +,California Common - Extract,California Common,Ex,brewtarget,5,Gal,1/2/13, +,Extra Special Bitter - Extract,Extra Special Bitter,Ex,brewtarget,5,Gal,1/2/13, +,Scottish 70 Shilling - Extract,Scottish 70 Shilling,Ex,brewtarget,5,Gal,1/2/13, +,American Pale Ale - Extract,American Pale Ale,Ex,brewtarget,5,Gal,1/2/13, +,Nut Brown - Extract,Nut Brown,Ex,brewtarget,5,Gal,1/2/13, +,Robust Porter - Extract,Robust Porter,Ex,brewtarget,5,Gal,1/2/13, +,Oatmeal Stout - Extract,Oatmeal Stout,Ex,brewtarget,5,Gal,1/2/13, +,American IPA - Extract,American IPA,Ex,brewtarget,5,Gal,1/2/13, +,Weizen - Extract,Weizen,Ex,brewtarget,5,Gal,1/2/13, +,Saison - Extract,Saison,Ex,brewtarget,5,Gal,1/2/13, +,Berliner Weisse - Extract,Berliner Weisse,Ex,brewtarget,5,Gal,1/2/13, +,Belgian Blonde Ale - Extract,Belgian Blonde Ale,Ex,brewtarget,5,Gal,1/2/13, +,American Barleywine - Extract,American Barleywine,Ex,brewtarget,5,Gal,1/2/13, diff --git a/src/recibeer/settings.py b/src/recibeer/settings.py index ff19c77..9a1c479 100644 --- a/src/recibeer/settings.py +++ b/src/recibeer/settings.py @@ -37,6 +37,7 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', + 'recipes', ] MIDDLEWARE = [ diff --git a/src/recipes/.DS_Store b/src/recipes/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..56886aa289146f43a22608f0968b74a22547a6bb GIT binary patch literal 8196 zcmeHM-HOvd82x6qx@i}25n`R} z?;!dFzKRc^58?ypnV;4+O+ofT7M%$*-(=>TZ)OgYNxzhcSYzl_i4KU!LKb#!7e!7I z{UWcWE!}blmVr+cP)coF4=G+ln+BtRQNSo*6fg=H1+IevcxQ`bZFujiUQ-$ci~|3q z0^)qIk%g^mJ5yF39Vlc709!z_OsFFckQ`gvy0$ZAB^5qZ^uRQg=@5e{I{Iw^hplTn zQ&!Q5DLOGdGSd+XlcR%YOE|H*vZgc&7zNf95V8BNjM)QZS;#wX$Xy`BL-iQ> z!B3e`o3mmXQ->Vn9{IvghV>=GvVirdkC7tzl^`<;+t1*4fRAw{x#$lWbP1jvcy_3Z z+4PYkN>^vZ1n1+@I&wMgD2esjzq)Z4Bx$Acoo#IwZrt3ltWv3TtMt0n)ZoL&OQfHc>aeV0 zvDn_bHPfp2Ie{c;h3GWh_!9x3uKW5ZltPICt7k?O{ aZUZVfb!}(Lq6Nu(2#_+E!YJ@p75D`Whd|T- literal 0 HcmV?d00001 diff --git a/src/recipes/__init__.py b/src/recipes/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/recipes/admin.py b/src/recipes/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/src/recipes/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/src/recipes/apps.py b/src/recipes/apps.py new file mode 100644 index 0000000..076e356 --- /dev/null +++ b/src/recipes/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class RecipesConfig(AppConfig): + name = 'recipes' diff --git a/src/recipes/management/.DS_Store b/src/recipes/management/.DS_Store new file mode 100755 index 0000000000000000000000000000000000000000..1d895799acd32b47410148c005b5b4c3e6f6fa23 GIT binary patch literal 6148 zcmeHK&2G~`5T0!V*sc&cAOW|%AaRJ0)1u~3A(@aKdP6dT1EADDQDe#WMzKTGh9Ex& zJOQu51Hj|J%IwAjSOlS%0qUb4END?m zNI*e>PlS;vRKNLuxz0acRx`8y*Lap^RqgxV#nyJ`#?4!f<9Xg~?_D@m%dn2>MKz4( zZ>aYos;9BBUn-UVvZMG_Hd&6lcb}`WjH~trXOn%uo7Zq6(8R<+H1N3N;#~i#h@LcIcn+UafTsm0s&Jn_k?@r-fSU zybtGPuF4afJ3l0EXq!!A!2G?=&ZZsAp2sp^8Te}kC_hM4!oXmoky8gYd<8)4;4ll? z^szuO(qLe)(TFoBLWd&iP=SR=k8?PVOVbYwHX3y}2y^)mW@lk;C_;yWkn9d3&}duB zfMwt^1KYaWrTTyP=llQVAltJHSOzwV0nr(Sqahy2)YjJFsMboPx8n*!z?`=Wt~VPE#hm$z96H*nw@3V z@a~}GZoKx}s0!B)2?m0JU?3O>27bl>&TPtjQ830}AQ%V+J{jQtkf6lu*cY^|1B0~y zz!}^ouz6W#PIAnSeL>7Xw4?${s(Oo|B_00caoMpiSkgtk`A}c^(7dRvj{3>MMRUOz zgMnaR$N+m^$dc#(H9nciCf`D02nK?I|H^>Q*0<{w-p