From 064940523090663c18ef16d47598883b97c18041 Mon Sep 17 00:00:00 2001 From: Rib Date: Thu, 23 Mar 2017 22:24:17 -0500 Subject: [PATCH] added django assignments --- rib_ribble/assignments/.DS_Store | Bin 6148 -> 6148 bytes rib_ribble/assignments/django/.DS_Store | Bin 0 -> 6148 bytes .../assignments/django/ran_word_gen/.DS_Store | Bin 0 -> 6148 bytes .../django/ran_word_gen/apps/.DS_Store | Bin 0 -> 6148 bytes .../django/ran_word_gen/apps/__init__.py | 0 .../django/ran_word_gen/apps/__init__.pyc | Bin 0 -> 171 bytes .../ran_word_gen/apps/ran_word_app/.DS_Store | Bin 0 -> 6148 bytes .../apps/ran_word_app/__init__.py | 0 .../apps/ran_word_app/__init__.pyc | Bin 0 -> 184 bytes .../ran_word_gen/apps/ran_word_app/admin.py | 3 + .../ran_word_gen/apps/ran_word_app/admin.pyc | Bin 0 -> 241 bytes .../ran_word_gen/apps/ran_word_app/apps.py | 7 + .../apps/ran_word_app/migrations/__init__.py | 0 .../apps/ran_word_app/migrations/__init__.pyc | Bin 0 -> 195 bytes .../ran_word_gen/apps/ran_word_app/models.py | 5 + .../ran_word_gen/apps/ran_word_app/models.pyc | Bin 0 -> 302 bytes .../apps/ran_word_app/templates/.DS_Store | Bin 0 -> 6148 bytes .../templates/ran_word_app/index.html | 19 +++ .../ran_word_gen/apps/ran_word_app/tests.py | 3 + .../ran_word_gen/apps/ran_word_app/urls.py | 7 + .../ran_word_gen/apps/ran_word_app/urls.pyc | Bin 0 -> 387 bytes .../ran_word_gen/apps/ran_word_app/views.py | 19 +++ .../ran_word_gen/apps/ran_word_app/views.pyc | Bin 0 -> 1281 bytes .../django/ran_word_gen/db.sqlite3 | Bin 0 -> 131072 bytes .../assignments/django/ran_word_gen/manage.py | 22 ++++ .../ran_word_gen/ran_word_gen/__init__.py | 0 .../ran_word_gen/ran_word_gen/__init__.pyc | Bin 0 -> 179 bytes .../ran_word_gen/ran_word_gen/settings.py | 121 +++++++++++++++++ .../ran_word_gen/ran_word_gen/settings.pyc | Bin 0 -> 2652 bytes .../django/ran_word_gen/ran_word_gen/urls.py | 24 ++++ .../django/ran_word_gen/ran_word_gen/urls.pyc | Bin 0 -> 1054 bytes .../django/ran_word_gen/ran_word_gen/wsgi.py | 16 +++ .../django/ran_word_gen/ran_word_gen/wsgi.pyc | Bin 0 -> 647 bytes .../django/time_display_assignment/.DS_Store | Bin 0 -> 6148 bytes .../time_display_assignment/apps/.DS_Store | Bin 0 -> 6148 bytes .../time_display_assignment/apps/__init__.py | 0 .../time_display_assignment/apps/__init__.pyc | Bin 0 -> 182 bytes .../apps/time_display_app/.DS_Store | Bin 0 -> 6148 bytes .../apps/time_display_app/__init__.py | 0 .../apps/time_display_app/__init__.pyc | Bin 0 -> 199 bytes .../apps/time_display_app/admin.py | 3 + .../apps/time_display_app/admin.pyc | Bin 0 -> 256 bytes .../apps/time_display_app/apps.py | 7 + .../time_display_app/migrations/.DS_Store | Bin 0 -> 6148 bytes .../time_display_app/migrations/__init__.py | 0 .../time_display_app/migrations/__init__.pyc | Bin 0 -> 210 bytes .../apps/time_display_app/models.py | 5 + .../apps/time_display_app/models.pyc | Bin 0 -> 317 bytes .../apps/time_display_app/templates/.DS_Store | Bin 0 -> 6148 bytes .../templates/time_display_app/index.html | 13 ++ .../apps/time_display_app/tests.py | 3 + .../apps/time_display_app/urls.py | 6 + .../apps/time_display_app/urls.pyc | Bin 0 -> 359 bytes .../apps/time_display_app/views.py | 11 ++ .../apps/time_display_app/views.pyc | Bin 0 -> 634 bytes .../django/time_display_assignment/db.sqlite3 | Bin 0 -> 131072 bytes .../django/time_display_assignment/manage.py | 22 ++++ .../time_display_assignment/.DS_Store | Bin 0 -> 6148 bytes .../time_display_assignment/__init__.py | 0 .../time_display_assignment/__init__.pyc | Bin 0 -> 201 bytes .../time_display_assignment/settings.py | 122 ++++++++++++++++++ .../time_display_assignment/settings.pyc | Bin 0 -> 2711 bytes .../time_display_assignment/urls.py | 21 +++ .../time_display_assignment/urls.pyc | Bin 0 -> 1091 bytes .../time_display_assignment/wsgi.py | 16 +++ .../time_display_assignment/wsgi.pyc | Bin 0 -> 691 bytes 66 files changed, 475 insertions(+) create mode 100644 rib_ribble/assignments/django/.DS_Store create mode 100644 rib_ribble/assignments/django/ran_word_gen/.DS_Store create mode 100644 rib_ribble/assignments/django/ran_word_gen/apps/.DS_Store create mode 100644 rib_ribble/assignments/django/ran_word_gen/apps/__init__.py create mode 100644 rib_ribble/assignments/django/ran_word_gen/apps/__init__.pyc create mode 100644 rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/.DS_Store create mode 100644 rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/__init__.py create mode 100644 rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/__init__.pyc create mode 100644 rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/admin.py create mode 100644 rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/admin.pyc create mode 100644 rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/apps.py create mode 100644 rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/migrations/__init__.py create mode 100644 rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/migrations/__init__.pyc create mode 100644 rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/models.py create mode 100644 rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/models.pyc create mode 100644 rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/templates/.DS_Store create mode 100644 rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/templates/ran_word_app/index.html create mode 100644 rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/tests.py create mode 100644 rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/urls.py create mode 100644 rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/urls.pyc create mode 100644 rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/views.py create mode 100644 rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/views.pyc create mode 100644 rib_ribble/assignments/django/ran_word_gen/db.sqlite3 create mode 100755 rib_ribble/assignments/django/ran_word_gen/manage.py create mode 100644 rib_ribble/assignments/django/ran_word_gen/ran_word_gen/__init__.py create mode 100644 rib_ribble/assignments/django/ran_word_gen/ran_word_gen/__init__.pyc create mode 100644 rib_ribble/assignments/django/ran_word_gen/ran_word_gen/settings.py create mode 100644 rib_ribble/assignments/django/ran_word_gen/ran_word_gen/settings.pyc create mode 100644 rib_ribble/assignments/django/ran_word_gen/ran_word_gen/urls.py create mode 100644 rib_ribble/assignments/django/ran_word_gen/ran_word_gen/urls.pyc create mode 100644 rib_ribble/assignments/django/ran_word_gen/ran_word_gen/wsgi.py create mode 100644 rib_ribble/assignments/django/ran_word_gen/ran_word_gen/wsgi.pyc create mode 100644 rib_ribble/assignments/django/time_display_assignment/.DS_Store create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/.DS_Store create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/__init__.py create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/__init__.pyc create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/.DS_Store create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/__init__.py create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/__init__.pyc create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/admin.py create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/admin.pyc create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/apps.py create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/migrations/.DS_Store create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/migrations/__init__.py create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/migrations/__init__.pyc create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/models.py create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/models.pyc create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/templates/.DS_Store create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/templates/time_display_app/index.html create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/tests.py create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/urls.py create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/urls.pyc create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/views.py create mode 100644 rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/views.pyc create mode 100644 rib_ribble/assignments/django/time_display_assignment/db.sqlite3 create mode 100755 rib_ribble/assignments/django/time_display_assignment/manage.py create mode 100644 rib_ribble/assignments/django/time_display_assignment/time_display_assignment/.DS_Store create mode 100644 rib_ribble/assignments/django/time_display_assignment/time_display_assignment/__init__.py create mode 100644 rib_ribble/assignments/django/time_display_assignment/time_display_assignment/__init__.pyc create mode 100644 rib_ribble/assignments/django/time_display_assignment/time_display_assignment/settings.py create mode 100644 rib_ribble/assignments/django/time_display_assignment/time_display_assignment/settings.pyc create mode 100644 rib_ribble/assignments/django/time_display_assignment/time_display_assignment/urls.py create mode 100644 rib_ribble/assignments/django/time_display_assignment/time_display_assignment/urls.pyc create mode 100644 rib_ribble/assignments/django/time_display_assignment/time_display_assignment/wsgi.py create mode 100644 rib_ribble/assignments/django/time_display_assignment/time_display_assignment/wsgi.pyc diff --git a/rib_ribble/assignments/.DS_Store b/rib_ribble/assignments/.DS_Store index 29fdcad5623da8feb77af95ecb6107fecb70d4bf..4230595b95a4386812583f19e2f8ccabc72498cb 100644 GIT binary patch delta 236 zcmZoMXfc=|#>B`mu~2NHo}wrl0|Nsi1A_nqLpno#PP$=ma(-^X#EZ-8K@w~XDGXT* zi41wjl0b17K#|YQcX3H6ElFlzxbn;4BUlNVd delta 86 zcmZoMXfc=|#>CJzu~2NHo}wrt0|NsP3otO`GvqPEGq^F7GUQDxRNuUuF@bIK2Sypj l&Fmcf96$}5A2NPtp3E-s>NKmAMa({t8SViFr@&OR(q6jH$P!d3N*YVqoAE1N_Ed|(;J!_w5 zS2xA^7Jy8jyBlBvU`$uUyN03ZbM=9pMMY6;k5_E4MTa}A2HmF%%Dp6KfkxILe~I=o z-?sIp>0aC)SJ>kLk65y^<7$T|tjT<1zF@XvZN+`GqhbGzefs>YrUI!zDv%1K0{=|` zovF0(g=5B4AQeajz7){!L!m3yz~0e59Sn8_AdXlzi%3wUq}(fT11kzA$N>N;C=GH@5Ttd-wR!UcBC%;H(3@!X?at1u z<*)E$0odwodkZW9Ea@1MinyAe@xD0>&--DQ>q-7xz-v1^;)TE0v-)cs zxHI4$N9;M@a<;=0hO@l6a}^T-5fA|p5CIXGC%~TVwzx{wC;}oN0^bDu`_SmFed(AQ zpAHUj1)z2ehjAWv32O5IwJ#l08KGI0QnS?RieXvKc&og=bWF{1SUj2M)RV1lC>Bp= zyhS>!Pt_;_B5+FJGM7v5|9A9X?*FGnT8V%N{3`<1tvBlxU#WWQleK literal 0 HcmV?d00001 diff --git a/rib_ribble/assignments/django/ran_word_gen/apps/.DS_Store b/rib_ribble/assignments/django/ran_word_gen/apps/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..7da48a42ba23cbb741aba7615e5479af8cf4897c GIT binary patch literal 6148 zcmeHKyG{c^3>-s>NKmAt++W}iR#EtZd;mm>M1w9-B%r-2-^Hgfeh3j=C{mEy`g% zQBev=fl~!;bGz{V|3v>|{y!yYCk3Ryzf!hbYRr=4+n!!Z9)E%mnMpvD zl#{COl3JWyl3$?jlAo3DSX`W$o|l`NS5mAWP+5|ZpQrDVm6(^FuV0jy7hj%VloFqw pnx~&wP*AKNAD@|*SrQ+wS5R5P0W{bqH$SB`C)EyQeK8O-000`eDy9Gc literal 0 HcmV?d00001 diff --git a/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/.DS_Store b/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..f20dad2e09311a878005dc720f641b52c19b003b GIT binary patch literal 6148 zcmeHKOHKko5Pb#2pl(>Y>??SK4uKPJ0gMu2f&&@A_3XH|uRa=NaO*;=lB(BJzs|hH z)D!@j9$y}T34k$G5hpc$(YR_)2H_bJ#dJH7H9SEi?-Qp zo3;1G4Lcqp{(KR;Wn{%3J8Udth5bdw^}ExX3?u`|Kr)aF{6_{jvsK3Tj%kyDWFQ&% zVnDwSg{oKsJ4gF;(AWw<9MNsUv+WYZq7GsW>>TN#h?f$*RAR*tFQ>mmUJdLVy&MwD zhs4bi8;aQN>|ZP$QXSJK1IfU526XqPOmzOwsXy%hnv;?YBm;kx0U6B}vngLLW^3;? wb=DT@lKLskwR9RA#Y7v$e9%$+aF$o}%yPkd10~9ar4B|j_QvA8%hJuf#kucTN%pt2+*KTqE!D={xUU%x0ZFTOm#C?!5U uHBUdWpa5tBOa#c&kB`sH%PfhH*DI(j;Q-oVlbfGXnv-e=a!WA~GXMbCKQI;m literal 0 HcmV?d00001 diff --git a/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/admin.py b/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/admin.pyc b/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/admin.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d73cb34584e14ff01523486196096a1058f4ea0d GIT binary patch literal 241 zcmY*T%?iRW3~o0B5%lCk^t9YXL}6zUMGy~;&X(D^wPmTu9?G}zO?&{&h8_&bm;dC8 zU*pkZ_B@=~S0eIDGMo}9QqC&IYR-2%9!soQ1SM3yrkd-8CvJ fv<2xsUHDZfgPu&{+c2aT^V+Ffr57Dl>?nKyzOz1f literal 0 HcmV?d00001 diff --git a/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/apps.py b/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/apps.py new file mode 100644 index 0000000..70cd68b --- /dev/null +++ b/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/apps.py @@ -0,0 +1,7 @@ +from __future__ import unicode_literals + +from django.apps import AppConfig + + +class RanWordGenAppConfig(AppConfig): + name = 'ran_word_gen_app' diff --git a/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/migrations/__init__.py b/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/migrations/__init__.pyc b/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/migrations/__init__.pyc new file mode 100644 index 0000000000000000000000000000000000000000..79712a9a7589c3d365b7ce61d3ada48d781309e8 GIT binary patch literal 195 zcmZ9GO$q`r423JY5W#!Q%Irl%p=%LDa929E)Xq;*nu^S!yp1>U0%kxrhP*H2EnYHx zFBi}C>vC1!n#kOVcqVX4ovP6}R08z}?!<#L`^=DIEnRmWwCA=^0!vOyn1wj~lW7!xrTV^(P>b2+%_$=y4@9p7S+`T#;M BG>rfN literal 0 HcmV?d00001 diff --git a/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/models.py b/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/models.py new file mode 100644 index 0000000..bd4b2ab --- /dev/null +++ b/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/models.py @@ -0,0 +1,5 @@ +from __future__ import unicode_literals + +from django.db import models + +# Create your models here. diff --git a/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/models.pyc b/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/models.pyc new file mode 100644 index 0000000000000000000000000000000000000000..648c8544ec71ad7f102c7de2c8ee9aed0227144b GIT binary patch literal 302 zcmYLF!Ab)$5S?U;*n-fH@UW-mE=3gfEK(7qm$2K!H8qWF&W+4pxSYS!=D1C&daUF TW4^>2YtYHt+p+_fZ&}J8Q^-rJ literal 0 HcmV?d00001 diff --git a/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/templates/.DS_Store b/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/templates/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..542ad34433c896c68a1ce57110365ac3844cfe33 GIT binary patch literal 6148 zcmeHKOHRWu5S@V{RVs^akXZT(y+Krk6XXC;HBwo$NmNm~^&wes7FN9ZAT`3Et`LG5 z$$s{H?8%E_XNZWGhju|UC!#5uAj_a2qAr>)-1!Q~y2g=u+EYvSv??t08~HF922 zhpbQYA86Qa7R|cf4JV0z>AUOex;;FtiC*4rUNzzy-}Y?Z;qm+&o|}EQ?Yj+j$NLBg z27-ZLAQ%V+iVXN2F`X5yp$rCsf&a{aoDT_2uyV|XdUT-E5&$@XS_NaNB_t*}R*u;a z76@A?&_dZu47PCSllxVU+0ep?z4&0?`J;GY-5u*EbtkS2qYnmxfiVM@Hl54;e}_+| zSmcjGVipVp1AmMGp43gf#6$Vr`swlHu1#nUXd>d5WdOl=^b>%IoFlhtG<%XU{3^$6 UD65EG!-4T5poByh4Ez8C?;3 + + + + Random Word Generator + + +

Random Word Generator

+

Random Word( atempt #{{request.session.count}})

+
+ {{request.session.display}} +
+
+ {% csrf_token %} + + +
+ + \ No newline at end of file diff --git a/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/tests.py b/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/urls.py b/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/urls.py new file mode 100644 index 0000000..fcba671 --- /dev/null +++ b/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/urls.py @@ -0,0 +1,7 @@ +from django.conf.urls import url +from . import views + +urlpatterns = [ + url(r'^$', views.index), + url(r'^generate$', views.create) +] \ No newline at end of file diff --git a/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/urls.pyc b/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/urls.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a5fd1c7ccec6b767a61f73279531d062dd8a9025 GIT binary patch literal 387 zcmYLDK~BRk5M0M;Kt+f=qKBN~4^#-G95^9VgoGlMDvg(rkl2yerS!suFY*%}0P6r^ zwcec>+2fI)r}O38$9)aI74yE}LsvXBw}2jC5KsybIsz@Bk6@5cN)RYO$AA*L7~UfY zbT-jhpiKm20y=@)?1;_UFRn~5@{-5S^=%+O%8b!Vi+iGo(Zhn~VKr#bRUQ}DlY>uL z)Lms7o7dJn=IlW$*1(6cn!JNkYc#(4gi-B~-}@7We0i+AM`tKw3jc%FOw}EsBjwsH z_qIn>AU%6Ks={{mlBjLWfX0)$Irt}QR59gHt}>gwb$Y{DRW*+6@TV|SAz?lq{4xKq S9IW2;cphR>2$zafo{4WYgIS>f literal 0 HcmV?d00001 diff --git a/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/views.py b/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/views.py new file mode 100644 index 0000000..1481fd9 --- /dev/null +++ b/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/views.py @@ -0,0 +1,19 @@ +from django.shortcuts import render, redirect +import random + +def index(request): + if not 'count' in request.session: + request.session["count"]= 0 + return render(request, "ran_word_app/index.html") + +def create(request): + letters = ["a", "b", "c", "d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"] + ran_word = "" + for i in range(14): + temp = random.randint(0,len(letters)-1) + ran_word += letters[temp] + request.session["display"] = ran_word + request.session["count"] += 1 + return redirect("/") + +# Create your views here. diff --git a/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/views.pyc b/rib_ribble/assignments/django/ran_word_gen/apps/ran_word_app/views.pyc new file mode 100644 index 0000000000000000000000000000000000000000..20883255de830cf0b88db6a275f1761553d74408 GIT binary patch literal 1281 zcmchW$!-%t5QhKuI4jvmARB=M#KA%+!z~=F2!ziOnt(u-AabUf@i?1b{$k#VM3M;8xwpu{liZ~^!Z6fWec*EpH`95%Eta6HvA_e;PHlsd(L2! zmp~6VnL@QK3dg@Z-z-?0F0+2VU&O<)H8>3vg?Us#6@DmlYj#`u#9v+ZVfC zpJ!u-rev3OE-i~lPBg>`FSC_B9a!fZIxBFW8R2_pD;HMjF~7%|4O`Zo__80i%3k@J z^&~}Z3-7|WL*Ffnu+{4nNg3Ywkk}$*KUl;6UY(`(-0k*<>b|-t(KyK#%%WK`njeX6 zlZWQ#2Me4B&Iu=gb55M_NzfE%8Z-l%1>FJ7f#yLApheIU=q_j(v;w*Zx(`|ft%24- z8=y@jn;5ae2N>0Gu@BGsw{T_9`t$;$K(gIqV-Mj2TpC%RM_A|7kLtMO%5X92*x2L4 zrwKmD4401m+D7wQ+Cf~y2A|psnj9%T7A1#`CmhKEYX>^YV`Z!)rB!}WCd#fdRrZu8 z%1oIn3uUS7D^Hb`(kZ=ipgdEaD=(Boexmo&)izT{o6*s7VU%}o3S#1jxM literal 0 HcmV?d00001 diff --git a/rib_ribble/assignments/django/ran_word_gen/db.sqlite3 b/rib_ribble/assignments/django/ran_word_gen/db.sqlite3 new file mode 100644 index 0000000000000000000000000000000000000000..3965353ac8456895dcd9ac305e483f191d1ec1b6 GIT binary patch literal 131072 zcmeI5TWlNIdB-`tjc(+~lC`rN-za&tYetqe!;2`&@p@^S_G)cXYpoQogch?yawLt+ zi%e3MB{WDW15VH)D9|F?Jf$hHK#RUKDbV(zo0l!p258YDZPB1XfGvU|T@+~x6ewCC zedsweL(XtGl)Qp=?bv@ljCs!a&Ue1^`_4IYZl>P8eM_w?q18&YB-cYx*Px4GT(5^h zE*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iWY4ZqXoBQ z==$F^`22QY)Eopr00ck)1V8`;KmY_l00ck)1fB;1mizzQ^H5*Z5d=U01V8`;KmY_l z00ck)1V8`;o<{<7{qN!4cX2=A{+#@S4+ww&2!H?xfB*=900@8p2!H?xfWQ+XaN3h% zB7&Hh6k?M?A|ym-h3Q#AydXvr@yN8to*bEtMrOsC3j+Cr?lTehDNm}`nwunxv!ZYz K7MqC+)Bg{9E_8eV literal 0 HcmV?d00001 diff --git a/rib_ribble/assignments/django/ran_word_gen/manage.py b/rib_ribble/assignments/django/ran_word_gen/manage.py new file mode 100755 index 0000000..47c5e87 --- /dev/null +++ b/rib_ribble/assignments/django/ran_word_gen/manage.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +import os +import sys + +if __name__ == "__main__": + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ran_word_gen.settings") + try: + from django.core.management import execute_from_command_line + except ImportError: + # The above import may fail for some other reason. Ensure that the + # issue is really that Django is missing to avoid masking other + # exceptions on Python 2. + try: + import django + except ImportError: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) + raise + execute_from_command_line(sys.argv) diff --git a/rib_ribble/assignments/django/ran_word_gen/ran_word_gen/__init__.py b/rib_ribble/assignments/django/ran_word_gen/ran_word_gen/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/rib_ribble/assignments/django/ran_word_gen/ran_word_gen/__init__.pyc b/rib_ribble/assignments/django/ran_word_gen/ran_word_gen/__init__.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0655c72a0d98d139f982fdc65ef8e9089f2d7018 GIT binary patch literal 179 zcmZSn%**xPr4B|j_QvA8%hJuf#kucTN%pt2+*KTqE!D={xUU%x0ZFTOm#C?!5U lH4l{&AD@|*SrQ+wS5R5P0kps-H$SB`C)Ez*jA9^W000OME^`0? literal 0 HcmV?d00001 diff --git a/rib_ribble/assignments/django/ran_word_gen/ran_word_gen/settings.py b/rib_ribble/assignments/django/ran_word_gen/ran_word_gen/settings.py new file mode 100644 index 0000000..8cc098f --- /dev/null +++ b/rib_ribble/assignments/django/ran_word_gen/ran_word_gen/settings.py @@ -0,0 +1,121 @@ +""" +Django settings for ran_word_gen project. + +Generated by 'django-admin startproject' using Django 1.10.6. + +For more information on this file, see +https://docs.djangoproject.com/en/1.10/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/1.10/ref/settings/ +""" + +import os + +# Build paths inside the project like this: os.path.join(BASE_DIR, ...) +BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = '99(eb-9iyvxkdvbrfr*@kxg71bvwq_-ncuw%bcn(vhiox6=l%r' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = [] + + +# Application definition + +INSTALLED_APPS = [ + 'apps.ran_word_app', + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', +] + +MIDDLEWARE = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +] + +ROOT_URLCONF = 'ran_word_gen.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + +WSGI_APPLICATION = 'ran_word_gen.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/1.10/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), + } +} + + +# Password validation +# https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + + +# Internationalization +# https://docs.djangoproject.com/en/1.10/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_L10N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/1.10/howto/static-files/ + +STATIC_URL = '/static/' diff --git a/rib_ribble/assignments/django/ran_word_gen/ran_word_gen/settings.pyc b/rib_ribble/assignments/django/ran_word_gen/ran_word_gen/settings.pyc new file mode 100644 index 0000000000000000000000000000000000000000..baac28f4a38d609b74cc18c459144ad6f5d4f305 GIT binary patch literal 2652 zcmb7Fdvn@G5MRIno5XoK@1|8BX-Ha2ag!lUr%j`PVl%AXOMvz_|zn z-%CJNfm{Z11;|w(*OUmE*TGo@hPF3=tU(>I$W5ptFu4VFhOylSatFv=AopO1YWJZ| zzCb;U7r`EYa|KX~6@h#S)-$32DCN;^oiXo}*X4JzO^}V9d zk#il$BXBUP8aQier8m`hON|)SV{kCABG|PjGNaEiqt)ht7Y$>LQz2M1c&gXY z{4FAfaY8i~p_9-PERHmM#fYI>7SJCt3R)crG3LJ*28n&HXHKRe_;F~^$dHJJh{w$5 z#x!mt!xtl}4bmXc0>*_F5At<+5kXIsCEAe}q?Dh_SwaVMp4h+m>+qj2hc92&Xn*}B zJ3Tr%BuD*ZkUV*Pcrtvk(LXx==&nb8di=2ON4297i%;sm1rHN`4b8mqnCr7F%h?)o zv&HIu9EpVWb(L9uV}T$QBYyuZUmDU#h|@9U{PtNnM>ghsp)5q1H^kxI0y}|w<;xx7 zd_5P3jF5mHdkNJ!_0xojQ{A2r+cOz|o?A>;HVs6dgRryU<_sU_hI4vY17RHL4fXf` z+B_NP4IJJxdOWB7BFCNv`lFoNHikT*3q*r>`la6 z$n*4#*?4Dlnqmp*W^30L%Sf0zJFcAY+5%KnS|`HAPV{kIaf0}?pANY^NG5eV3t@qB zLO){93I0Q_{#o7^n8^L$&(7-4a=pN2Dihby?yOubzPr$I18D?LfN@QL;=C-B$5jybFK=3W8qt48{!)3{h zJ%u&wXe8p^$n>N`;K1X}#Io z6st&??RIzHYPwrpyJw5b$Z2)#9&(X~&0;H(mMyO0Y~S8&N!xa-Vah60t`A}sDcz>oGi8jnxP!XpUT@3YF>QOlyW4c% zo9!0LyV$HUwzk>X+%q>Vx6y4{nWNUWP_@6j6WD#-$YY^XlK#eBlhj{B6&G;ZT@g^BYA)b%i*f|xWI5M(>#+YxZ z&nMHXS|6XPuzn3=k_PnEMRdmh!l7KeRC-b=m&(O*xm3uXm8G066;?{+QmIf;PpOzm X*2~xZlS&VA literal 0 HcmV?d00001 diff --git a/rib_ribble/assignments/django/ran_word_gen/ran_word_gen/urls.py b/rib_ribble/assignments/django/ran_word_gen/ran_word_gen/urls.py new file mode 100644 index 0000000..16abf9e --- /dev/null +++ b/rib_ribble/assignments/django/ran_word_gen/ran_word_gen/urls.py @@ -0,0 +1,24 @@ +"""ran_word_gen URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/1.10/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') +Class-based views + 1. Add an import: from other_app.views import Home + 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') +Including another URLconf + 1. Import the include() function: from django.conf.urls import url, include + 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) +""" +from django.conf.urls import url, include +from django.contrib import admin + + +urlpatterns = [ + url(r'^', include('apps.ran_word_app.urls')) +] + + diff --git a/rib_ribble/assignments/django/ran_word_gen/ran_word_gen/urls.pyc b/rib_ribble/assignments/django/ran_word_gen/ran_word_gen/urls.pyc new file mode 100644 index 0000000000000000000000000000000000000000..743cc4bc658c11495c3ea19265aa47b3ced1a9c8 GIT binary patch literal 1054 zcma)5UvJYe5Wn;vC=AiU_7X5Iy)jc;pd(v;b_T(<@^|T1d^# zCLh?L(TlQJ+02zj$MKh?WEU%2)tPhBYP?`oiH=#bauR(2GH2MgQeI)gj*Vr?SjkGg zFjfT!R#!4Z$xzC1%xEp0t8vV^FgYgTGSh{rt+|xBOLC*Q)O;`5d&Qlp%N)7)=9C|K z{Qi5U2n@&Z@k-~O-X?EA-AmYk5G>QIRJE~g%-F&j#nd{@>UwLu<^Ou?A8MuwZk0%( zqz!C;_M$)9mbNrXj+oAreB1Z?{xCkQGQ^j2s!iO&{T~nGmeP7EN$6EW=!CEW{|EE& z5lM!rhZzj-aXQs`wGyQ+s1YHfFE6JXZF+PXn!|_;-I4c|gCSdN+d1B}Y;z}c8G4cU z&Np0XKWd^L&Us#$f>R%xbbW6Kxc%WUF8|OP&>Vtmlb{sNk7nZ>`GYQrOsG;jug-AS z>vfIE&FuQNdZr)4TnB_SrTI!zw?oeN3!0D(CIS1|onvRq`6Q5eLUuxIrhecf{s}xM zm7k%s$SH)Lc_sOg#IH29{K#CI1H`h>N@|Dv)7mYK=0{=F`3-6M;qEHFf}~!%#{~XH U8L_J5{&U)6k3=upjdnVJ0Yd6I+yDRo literal 0 HcmV?d00001 diff --git a/rib_ribble/assignments/django/ran_word_gen/ran_word_gen/wsgi.py b/rib_ribble/assignments/django/ran_word_gen/ran_word_gen/wsgi.py new file mode 100644 index 0000000..77220fd --- /dev/null +++ b/rib_ribble/assignments/django/ran_word_gen/ran_word_gen/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for ran_word_gen project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ran_word_gen.settings") + +application = get_wsgi_application() diff --git a/rib_ribble/assignments/django/ran_word_gen/ran_word_gen/wsgi.pyc b/rib_ribble/assignments/django/ran_word_gen/ran_word_gen/wsgi.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6f2b354710f9496ba5e238565cd10320bd393ed8 GIT binary patch literal 647 zcmY*WO>Yx15OsFjfEJJ{@p1Ms2Ut^y6GDihEm07ph_s^0W#g_V8>e2+YR65;xqp!> zzk(l7#tDdEd7sBKo;Po1(_fFWyH`IhEAeNge7@t4-ZK~>ri?vd65)Dc$_DRLxI{Fm zn5Lo!J+V9x%R^xfggF$q3A<8p%X$5nG#T_G*H4D*+hjPB75cfY`$m<4-oXvFGI$P;r z(a&bg_kl|_*nza3t2Wz!M9<`w z;5wi(&^p{S;DcIIZB=IPc#Q`=?lU}Ls3DXwQtqh<&p1$gJQ)wq%E{^Z`Di?xl%LOv zi%+NYltcUT$O%HQzNW#wNEx9lSz1|!gl(j7#K%r%UU7GMtoD_CyT{;HwnHB>b}*HJ zxxR5BJmBk|qCtHB59pGw>Vlvn)!8fFJaSb4T?cGcflE9gvbB$Wllrm=3-qekj!Nx| d|Njz&YWU`98@hb>dH`{oln%Zy>MXS}Um`rT8%jd)UjDq-9XYdrHBj`)|@ z;{lJj$1OJ84XoL*_MP#X(ZJjmy;tC9IzM`?jtrGOMTRNy?qx%K}W`Y-eUAxV)GkOKcofzmBk%LQL4d+X%o wtk+ih9sSE#>*ZX$6%)M`Gq6^C^`oxZp7&eg80d87olew`faxNW0)L^vC+pZCN&o-= literal 0 HcmV?d00001 diff --git a/rib_ribble/assignments/django/time_display_assignment/apps/.DS_Store b/rib_ribble/assignments/django/time_display_assignment/apps/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..0436280122c0a7a9dd0a254a8331b7789b2e1a33 GIT binary patch literal 6148 zcmeHKOG*P#5UkcL0&ZsM@?F6j3?ZH%2QYz%2r&jVg1cFHt{lzk55h1J+_;fy=&tvA zy53`IF+B~y7RT)k&;gj!9r5X5YX01PVi%P$BAsX4VT(t+;(*4tgdoOK%m8d8Mq<|FoR=~dxjqcbN z4vF#UV2BZbIAc1D>zE~o%@f4Fa7bi^W=SO`)oR4Bq%+^Dt}h%ClMbul!|G*VFU*Eaf^?lmX6 r8`nW$h;~ejcFc{p?+b^-pfewIqJ9Qk7nv0JYX!alm9ZEX literal 0 HcmV?d00001 diff --git a/rib_ribble/assignments/django/time_display_assignment/apps/__init__.py b/rib_ribble/assignments/django/time_display_assignment/apps/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/rib_ribble/assignments/django/time_display_assignment/apps/__init__.pyc b/rib_ribble/assignments/django/time_display_assignment/apps/__init__.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d2b8eb6f033aaa127b23e7c56137b2d2c6f6fa4c GIT binary patch literal 182 zcmZSn%*(Y)`Eo=u0~9ar4B|j_QvA8%hJuf#kucTN%pt2+*KTqE!D={xUU%wPO2TqCB;C@004BFFNFXA literal 0 HcmV?d00001 diff --git a/rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/.DS_Store b/rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..f20dad2e09311a878005dc720f641b52c19b003b GIT binary patch literal 6148 zcmeHKOHKko5Pb#2pl(>Y>??SK4uKPJ0gMu2f&&@A_3XH|uRa=NaO*;=lB(BJzs|hH z)D!@j9$y}T34k$G5hpc$(YR_)2H_bJ#dJH7H9SEi?-Qp zo3;1G4Lcqp{(KR;Wn{%3J8Udth5bdw^}ExX3?u`|Kr)aF{6_{jvsK3Tj%kyDWFQ&% zVnDwSg{oKsJ4gF;(AWw<9MNsUv+WYZq7GsW>>TN#h?f$*RAR*tFQ>mmUJdLVy&MwD zhs4bi8;aQN>|ZP$QXSJK1IfU526XqPOmzOwsXy%hnv;?YBm;kx0U6B}vngLLW^3;? wb=DT@lKLskwR9RA#Y7v$e9%$+aF$o}%yK?HZh)DCsp`3X&2%sD-Z7cd2J(UA8AULGX# z&w91lzV8q9tC`HBh!%oIscSVl=SrX^AQTU7LAvPVIbX#zoKRQ9OXAMFb7W%RhPX zb2?cpALo*NBqF~d!#RN@<*Z@MaCYI0%ZMG5m>T*;l5mQ`h(JiA?Jnte!;C=I!d5OV zoeixn4pd>uFQB0uPN-T08X+wj1)0KIa2_&OyDg%wtWh=~?7MJv7P8?i1Z`9H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0K?HZh)DAVZGZUJ)C?39LQ3x|%O!&19!1K7Y1$pkhx`M`{IiXjQZ zsh4|BU>l$641zJZ3Yl8pJO7V?C*skP2qM;<7tD#lIZPcy4Fh=)X8x!4)kT z#^m?eIvqT@!34ZGSL{TV13sNE(Sil7-$oh-r}dT@(44`ZOgiMX?YDJeTlGJ{#8kbY z8&D0t=j?-1ox^v^MRoa<9})c_MVAQGW};(Gsyk0q4tgdoOK%m8d8Mq<|FoR=~dxjqcbN z4vF#UV2BZbIAc1D>zE~o%@f4Fa7bi^W=SO`)oR4Bq%+^Dt}h%ClMbul!|G*VFU*Eaf^?lmX6 r8`nW$h;~ejcFc{p?+b^-pfewIqJ9Qk7nv0JYX!alm9ZEX literal 0 HcmV?d00001 diff --git a/rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/templates/time_display_app/index.html b/rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/templates/time_display_app/index.html new file mode 100644 index 0000000..ce78afd --- /dev/null +++ b/rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/templates/time_display_app/index.html @@ -0,0 +1,13 @@ + + + + + + Date and Time + + +

Date and Time

+

{{ time }}

+ + + \ No newline at end of file diff --git a/rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/tests.py b/rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/urls.py b/rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/urls.py new file mode 100644 index 0000000..d8a3b69 --- /dev/null +++ b/rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/urls.py @@ -0,0 +1,6 @@ +from django.conf.urls import url +from . import views + +urlpatterns = [ + url(r'^$', views.index) +] \ No newline at end of file diff --git a/rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/urls.pyc b/rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/urls.pyc new file mode 100644 index 0000000000000000000000000000000000000000..76dc7310a75848eaf2e561c83ef77f36cccab7c4 GIT binary patch literal 359 zcmZ8b!Ait15S=uwh$8eOJoMC@1z8k&7FiKw4=&x!SX0v^bh2vCexg6&-4D=7R}>7B zmp7C5W=4LV9DOX_@3!!BB)=DY>5M^h2(SQyfRzBDGtd%j27`o^1c3r{4k)3|;VpxX zRR!n*ZmI)zn=d|g-;$u)=x zmUFXYHBRGeJZ8p<(8h?Pqbh0sfOv6Gw}d09(QG(27FC1v6n#*Q@BJl_>D+)WlDeMa xqj##AhpT7?Tx&zYw$r-(m8mua`u7=vN?X=piibS#eDHc_agkP~oS_t@{07fMR^R{t literal 0 HcmV?d00001 diff --git a/rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/views.py b/rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/views.py new file mode 100644 index 0000000..5014106 --- /dev/null +++ b/rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/views.py @@ -0,0 +1,11 @@ +from django.shortcuts import render +import time + +def index(request): + localtime = time.localtime(time.time()) + print localtime + context = { + "time": localtime + } + return render(request,"time_display_app/index.html", context) +# Create your views here. diff --git a/rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/views.pyc b/rib_ribble/assignments/django/time_display_assignment/apps/time_display_app/views.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6cc00bd22b6f8debb5ded46e3aa796a56a08ff59 GIT binary patch literal 634 zcmc&xy-ou$47PKWp9-WdObo1LX*O68KcW&$6)HkPU8?I{)TZPv$JqrcwNrUR9)$-0 zC#tB#3lP~~9LML+UoQDNXdYjFK4q|8O7<&pIuXdl5F9{(FhIa?R^Sv26yynf01T3l zd1!A*wf&aWMu~V^pf+W0>RuKSiFhcv5vMZ&2AE<*fRz}+5@CUGduQV=w5Ll2tY8s2 z7YbI1@PtM^4z1W0hK|<3Ft=2>bUsY0N?YN5?@YLGvAiEA+LKD>v($y}`f`AH$vYC& z=4EDx`$2n5WWHqc&h1zhfC>TqNTw!T+mYDF8QnGX%)ZiHKlRr{c3c*wWYYI@p7>IC zr)fF%IuLH=`z_NlD*d^X;a{zJqfRyFhA>7YK`b=|01vT&2{u)HZf;2`j~pGE_?ojB iQ&bie_d|n?f*AdSj9r=Hyzu$VnTzlvD9CByzWM6_KTQg>|Mc?D0ciuYXpy#P(4fE-MUftgK7ay6 z3#5N^W_FjeTrMS@?8`awmw?xtncw{8H=p0k?7U20f9tZ@G1RSQtFCv{Okgq~2!U5r zH4q3qPyW!qozHplMRWq>Z^89_*w^O+FO4pQsj&Q0D)XHD)7bR*PsUG=e|KzjBr*DT zQaUmnzAFA8^uM8B3jRrOT==TsE@PP9#~R-iW+dgplF&V4HY&zFeW!Cv+i4put=ekt zY`3+fk6D?l?V@kBRp+_GWL z-v(nXmrUuE6>lNO_p!mrH{1qRQ)a@_w4`hj47$GwwxE_@$z+q|WLev3n0LJP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_q($}wXkjd%j*`?fiy^xd`bz??LTFGOu_Wv=90|J!8vKkzBu>qTXbDa-Er5PM z8zE`SxuC6|{}_v_6drjtY)RW?@dPSum&hYu5Q%gm6{O|zSSm_O=P?VRaA0&XYnwoR zO^N*HP_6qe14xw0;ueBT(k|XDX&2s;j0;3^ewh~S7NZ6CWa#=oF!}U$VALE0KmY_l z00ck)1V8`;KmY_l00f=}0H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0nMpvD zl#{COl3JWyl3$?jlAo3DSX`W$o|l`NS5mAWP+5|ZpQrDVm6(^FuV0dxn;M^zSzM5l pSQ(!PSB6tOK0Y%qvm`!Vub{Go18A*HZhlH>PO2Tqam7H)003Z_Hv#|v literal 0 HcmV?d00001 diff --git a/rib_ribble/assignments/django/time_display_assignment/time_display_assignment/settings.py b/rib_ribble/assignments/django/time_display_assignment/time_display_assignment/settings.py new file mode 100644 index 0000000..b2952b9 --- /dev/null +++ b/rib_ribble/assignments/django/time_display_assignment/time_display_assignment/settings.py @@ -0,0 +1,122 @@ +""" +Django settings for time_display_assignment project. + +Generated by 'django-admin startproject' using Django 1.10.6. + +For more information on this file, see +https://docs.djangoproject.com/en/1.10/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/1.10/ref/settings/ +""" + +import os + +# Build paths inside the project like this: os.path.join(BASE_DIR, ...) +BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'n=e8+!f+flg)-!35hi+&j3ytnw$ro%k+m%#2^zoq=ymr_#zu1t' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = [] + + +# Application definition + +INSTALLED_APPS = [ + 'appssda.time_display_app', + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', + +] + +MIDDLEWARE = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +] + +ROOT_URLCONF = 'time_display_assignment.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + +WSGI_APPLICATION = 'time_display_assignment.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/1.10/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), + } +} + + +# Password validation +# https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + + +# Internationalization +# https://docs.djangoproject.com/en/1.10/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_L10N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/1.10/howto/static-files/ + +STATIC_URL = '/static/' diff --git a/rib_ribble/assignments/django/time_display_assignment/time_display_assignment/settings.pyc b/rib_ribble/assignments/django/time_display_assignment/time_display_assignment/settings.pyc new file mode 100644 index 0000000000000000000000000000000000000000..18bf49a51f68d2ab7982d7914e1a56a698dd8102 GIT binary patch literal 2711 zcmb7Fd2`xE6ki|)o5VStJ86~Xa^hNwl$)^PWZ{WxFatL9BY*=#$=aHX7 zb`Fso8s^ckaDq64$P)UJn>={Ud;_6ovlXa}(HRkQ=Z_!`=w5ZiTxZy`Ci2!9WjX$lt+fk+he1qAoNIt$Tuskx?pNfjUhKiP}LpSV43L~7;u+NlU z6f2wt#KDw}e0S`)jM07=kdP~*I2sa1pg#E#0wU!B=Ogy3rs2qAYU*Sf zf)@oE2{nPJ@n}RnrcG1OQhYujN-yz!#ixubQ7=o;4Ka8kG*zQ7p9gf~(Qtdr!=ndr^zd*aczFN$AD^R7FULXb-2a?x zads8V+|h`s#|sXeHISqUt6miHn08fJU3O)GAmIac`y^i&!m07`h%k2jq?`d8>b_7G zfXwZ~a%+Jdhx78pDKWO0i35tUPmbJ}sEl|?O!-(fCq!c=V?SjU)6AxUsB;iz8r+=W zlgw~V5Bea8LbW3Q{$HELJ+%VM2TG3Sw13I4r$M<;)%k#Q*h4j`C!2N7c0oeZ>do6X z(u&R*?qp7bS$$N`r{3Yv^$uZf)Q|6CHz2K%m=88*dIwC8_snca)g<;A(=u#M0+?e? z)GmOM5KkvbO^4E&h#40*?OVO_-e^|&8KA4ReUmQ(p|{(P*s%2lsItrc<_-*|2PsA| z;FE6BXX1*PwD2s11E|YJyty-&@ zrunVv9N1Fy5R3qnQLGrrt@AB>*AeX2N&@sE$=(qBAvk*}zC@>o;K| z3+XuUvTz)p2S&tXACFumGcboT3&R`VTS0fuEX+I8JBOnwn|2j*@~*w$+mT{NV0J&b55b*s9iix^FQ19bI{ zwdb^T(>!SHSDg=fy$13Y%&my6t~Yl(`mW(rT2&);RBITH-D(;#)edA@+j`NQZR%Uk znzCbs#In;8SP(=-gu4!qC|g(zTTL_})1U|8>H0*g5_SmhW33tuBYk!$F|9r3gDBL} zJ4gG*bbXUQeYLBju?+UNAi{}HUY&&y*q^Wz^XCdrOT|JlUn~}K*>`0rqYJr}La|WD dmE^aOPbF)`)S{HTy8<%cPJgS*fR=uX{{dCFCn^8{ literal 0 HcmV?d00001 diff --git a/rib_ribble/assignments/django/time_display_assignment/time_display_assignment/urls.py b/rib_ribble/assignments/django/time_display_assignment/time_display_assignment/urls.py new file mode 100644 index 0000000..4d2ecc7 --- /dev/null +++ b/rib_ribble/assignments/django/time_display_assignment/time_display_assignment/urls.py @@ -0,0 +1,21 @@ +"""time_display_assignment URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/1.10/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') +Class-based views + 1. Add an import: from other_app.views import Home + 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') +Including another URLconf + 1. Import the include() function: from django.conf.urls import url, include + 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) +""" +from django.conf.urls import url, include +from django.contrib import admin + +urlpatterns = [ + url(r'^', include('apps.time_display_app.urls')) +] diff --git a/rib_ribble/assignments/django/time_display_assignment/time_display_assignment/urls.pyc b/rib_ribble/assignments/django/time_display_assignment/time_display_assignment/urls.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2501da2fe4d43e46c821c3c4ab49d9db4a3278ab GIT binary patch literal 1091 zcma)5!EO^V5S`670WAV54jef7fRsckYsxW#imIh*C4^9*63U_5&Du$vuI-h_0ebF@ z-{VvG02sU3(pIWeYjhioO z5!KviX*@d~e`I^s%+!44O0TTRvabutPFJpOO7EpJc*<&po;kbn5<>zqZ`pSxe_+lI ztYg|b$&{H{ry~SwYFVOWDCH<)v=-hsIO1H`3Uje6&D=K5E@kEO%4#kR-_EyRb8j0} zArH}<>LbrS{46zr;V3&;nJUn`tQ%3cbG9o4D-Bb+vCfYen>nkQrUsj4?YtKMW*r}U zrVg&PNU3xhxcdo`ur#5LTzcv!!XE>Ov%RxP1J z!ixOw%_n5!B^Ci@FucX-$W--8C^IJ^V#Uy2MK{`NbQHy5M27At#LB^t&DL^`E+xCX z6S@pD%Y*VQSK4p2S@-8Wt?itXj%~Sqa75hxaG0sTv<5Vi;8QYG!iOnsgOl)~OQsZB z86S=(_#&K}2J@R^OwtCnpW>KDl%k*+D+<3!3AdXXlMlub|H+Nd-l^$05_&{_LTo30 z5HkK7G<4+0C>?T2p=Vl4zAy2NCYSHqrQN;yV1?ibeZ{W$LYCh@DVJN==rygBy| XspMO2#j2J&Pic=mGQH$^vYGw^f~ZKW literal 0 HcmV?d00001 diff --git a/rib_ribble/assignments/django/time_display_assignment/time_display_assignment/wsgi.py b/rib_ribble/assignments/django/time_display_assignment/time_display_assignment/wsgi.py new file mode 100644 index 0000000..47b46aa --- /dev/null +++ b/rib_ribble/assignments/django/time_display_assignment/time_display_assignment/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for time_display_assignment project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "time_display_assignment.settings") + +application = get_wsgi_application() diff --git a/rib_ribble/assignments/django/time_display_assignment/time_display_assignment/wsgi.pyc b/rib_ribble/assignments/django/time_display_assignment/time_display_assignment/wsgi.pyc new file mode 100644 index 0000000000000000000000000000000000000000..edf84835b8f9bd7b73ae6e9680fdd58cf8034ad0 GIT binary patch literal 691 zcmZ`$&2AGh5ccl20WBa^0&%uDvOkaK_nUF{<6i#a(YMdF_`Nc|U-7}$3`U3%Y+h8snJaMoFC)c{STa(u<7&)Ko zu5-55WP_j2Io}(u+J+va^-Q4M8f5UC+@f4q2ahEJd-3i z>aaL`s+QrBf-=y#u!+RgB{o*&_9w5&FyWTz0Yd{+MN4&!4LxK-`SxfsI;p0|r>En| zXj;8LDbL;=ql|(7A5DQkWPO9fThS>(RWZw|qLk%;bimh+aZz)lMJ)W0bvtM9Yug7; zIV(7ofrY+sM0fakjodK${{!^=RA&f1s@|US=IN^v@C$`bm0=Z*{{9`R4;xwrugdMz g)D3;ysE>4uZbP@Z