Skip to content

Commit 4c75b83

Browse files
Finish for System Analysis course
1 parent e045fae commit 4c75b83

28 files changed

+141
-130
lines changed

Presentation/Farmacy.key

3.75 MB
Binary file not shown.

Presentation/SystemAnalysis.pdf

1.52 MB
Binary file not shown.
Loading
Loading
Loading
Loading
Loading
Loading
Loading

System Analysis/ActivityDiagram.jpg

42.5 KB
Loading

System Analysis/Class_Diagram.pdf

18.7 KB
Binary file not shown.

System Analysis/DIAGRAMS.pptx

383 KB
Binary file not shown.
121 KB
Binary file not shown.

System Analysis/Normalization-.pdf

699 KB
Binary file not shown.

System Analysis/State-Chart.pptx

34.5 KB
Binary file not shown.

System Analysis/SystemAnalysis.key

2.51 MB
Binary file not shown.

Website/farmacy_django/.idea/farmacy_django.iml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Website/farmacy_django/.idea/misc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Website/farmacy_django/.idea/workspace.xml

+105-120
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Website/farmacy_django/assets/style.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* Background img & gradient */
22
body{
3-
background: linear-gradient(to left ,rgba(142, 68, 173,0.7),rgba(243, 156, 18,0.7)), no-repeat fixed center center;
3+
background: linear-gradient(to left ,rgba(142, 68, 173,1),rgba(243, 156, 18,1)), no-repeat fixed center center;
44
background-size:cover;
55
}
66
/* ======================================================================== */

Website/farmacy_django/db.sqlite3

0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Website/farmacy_django/main/models.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from django.db import models
22

33
# Create your models here.
4+
5+
46
class Medicine(models.Model):
57
medicine_name = models.CharField(max_length=200)
68
pharmacy_name = models.CharField(max_length=300)

Website/farmacy_django/main/templates/main/home.html

+14-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{% if user.is_authenticated %}
2727
<div class="signInUp">
2828
<div class="basicBox ">
29-
<a href="/account" class="stretched-link"> {{ user.username }} </a>
29+
<a href="http://127.0.0.1:8000/admin/main/medicine/add/" class="stretched-link"> {{ user.username }} </a>
3030
<svg class="oneb" width="130" height="65" viewBox="0 0 130 65" xmlns="http://www.w3.org/2000/svg">
3131
<rect x='0' y='0' fill='none' width='130' height='65'/>
3232
</svg>
@@ -80,9 +80,9 @@
8080
</form>
8181
</div>
8282

83-
<div align="center">
83+
<div align="center" style="background-color: lightblue;">
8484
{% for med in medicines %}
85-
<p> {{ med }}</p>
85+
<p> {{ med }} </p>
8686
{% endfor %}
8787
</div>
8888

@@ -103,4 +103,14 @@
103103
<!-- Compiled and minified JavaScript -->
104104
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
105105

106-
</html>
106+
</html>
107+
108+
109+
110+
111+
112+
113+
114+
115+
116+

Website/farmacy_django/main/urls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
path("", views.homepage, name="homepage"),
88
path("register/", views.register, name="register"),
99
path("logout/", views.logout_request, name="logout"),
10-
path("login/", views.login_request, name="login")
10+
path("login/", views.login_request, name="login"),
1111
]

Website/farmacy_django/main/views.py

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from django.shortcuts import render, redirect
2-
from django.http import HttpResponse
32
from .models import Medicine
43
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
54
from django.contrib.auth import login, logout, authenticate
@@ -64,4 +63,19 @@ def login_request(request):
6463
form = AuthenticationForm()
6564
return render(request,
6665
"main/login.html",
67-
{"form": form})
66+
{"form": form})
67+
68+
69+
70+
71+
72+
73+
74+
75+
76+
77+
78+
79+
80+
81+

0 commit comments

Comments
 (0)