├── appointment ├── tests.py ├── apps.py ├── static │ ├── images │ │ ├── picture.png │ │ ├── background.png │ │ └── hospital.jpg │ ├── style.css │ └── appointment │ │ └── js │ │ └── main.js ├── __pycache__ │ ├── admin.cpython-37.pyc │ ├── apps.cpython-37.pyc │ ├── forms.cpython-37.pyc │ ├── models.cpython-37.pyc │ ├── urls.cpython-37.pyc │ ├── views.cpython-37.pyc │ └── __init__.cpython-37.pyc ├── migrations │ ├── __pycache__ │ │ ├── __init__.cpython-37.pyc │ │ ├── 0001_initial.cpython-37.pyc │ │ ├── 0002_auto_20181013_1923.cpython-37.pyc │ │ ├── 0003_auto_20181013_2238.cpython-37.pyc │ │ ├── 0004_auto_20181013_2239.cpython-37.pyc │ │ ├── 0005_auto_20181013_2339.cpython-37.pyc │ │ ├── 0006_auto_20181014_1331.cpython-37.pyc │ │ ├── 0007_auto_20181016_1414.cpython-37.pyc │ │ ├── 0008_auto_20181025_1502.cpython-37.pyc │ │ └── 0009_auto_20181025_1821.cpython-37.pyc │ ├── 0008_auto_20181025_1502.py │ ├── 0009_auto_20181025_1821.py │ ├── 0005_auto_20181013_2339.py │ ├── 0002_auto_20181013_1923.py │ ├── 0004_auto_20181013_2239.py │ ├── 0003_auto_20181013_2238.py │ ├── 0006_auto_20181014_1331.py │ ├── 0001_initial.py │ └── 0007_auto_20181016_1414.py ├── admin.py ├── templates │ └── appointment │ │ ├── form-template.html │ │ ├── register.html │ │ ├── base_visitor.html │ │ ├── create_appointment.html │ │ ├── login.html │ │ ├── create_consultation.html │ │ ├── consultations.html │ │ ├── base.html │ │ ├── detail.html │ │ └── index.html ├── forms.py ├── models.py ├── urls.py └── views.py ├── db.sqlite3 ├── MediArchive ├── __pycache__ │ ├── urls.cpython-37.pyc │ ├── wsgi.cpython-37.pyc │ ├── __init__.cpython-37.pyc │ └── settings.cpython-37.pyc ├── wsgi.py ├── urls.py └── settings.py ├── README.md └── manage.py /appointment/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/db.sqlite3 -------------------------------------------------------------------------------- /appointment/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class AppointmentConfig(AppConfig): 5 | name = 'appointment' 6 | -------------------------------------------------------------------------------- /appointment/static/images/picture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/appointment/static/images/picture.png -------------------------------------------------------------------------------- /appointment/static/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/appointment/static/images/background.png -------------------------------------------------------------------------------- /appointment/static/images/hospital.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/appointment/static/images/hospital.jpg -------------------------------------------------------------------------------- /MediArchive/__pycache__/urls.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/MediArchive/__pycache__/urls.cpython-37.pyc -------------------------------------------------------------------------------- /MediArchive/__pycache__/wsgi.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/MediArchive/__pycache__/wsgi.cpython-37.pyc -------------------------------------------------------------------------------- /appointment/__pycache__/admin.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/appointment/__pycache__/admin.cpython-37.pyc -------------------------------------------------------------------------------- /appointment/__pycache__/apps.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/appointment/__pycache__/apps.cpython-37.pyc -------------------------------------------------------------------------------- /appointment/__pycache__/forms.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/appointment/__pycache__/forms.cpython-37.pyc -------------------------------------------------------------------------------- /appointment/__pycache__/models.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/appointment/__pycache__/models.cpython-37.pyc -------------------------------------------------------------------------------- /appointment/__pycache__/urls.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/appointment/__pycache__/urls.cpython-37.pyc -------------------------------------------------------------------------------- /appointment/__pycache__/views.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/appointment/__pycache__/views.cpython-37.pyc -------------------------------------------------------------------------------- /MediArchive/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/MediArchive/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /MediArchive/__pycache__/settings.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/MediArchive/__pycache__/settings.cpython-37.pyc -------------------------------------------------------------------------------- /appointment/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/appointment/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /appointment/migrations/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/appointment/migrations/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /appointment/migrations/__pycache__/0001_initial.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/appointment/migrations/__pycache__/0001_initial.cpython-37.pyc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Python-and-Django-mini-project 2 | I was teaching myself python. So I created a mini django app with python. It is a hospital app that allows a person to book a consultation and appointment. 3 | -------------------------------------------------------------------------------- /appointment/migrations/__pycache__/0002_auto_20181013_1923.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/appointment/migrations/__pycache__/0002_auto_20181013_1923.cpython-37.pyc -------------------------------------------------------------------------------- /appointment/migrations/__pycache__/0003_auto_20181013_2238.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/appointment/migrations/__pycache__/0003_auto_20181013_2238.cpython-37.pyc -------------------------------------------------------------------------------- /appointment/migrations/__pycache__/0004_auto_20181013_2239.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/appointment/migrations/__pycache__/0004_auto_20181013_2239.cpython-37.pyc -------------------------------------------------------------------------------- /appointment/migrations/__pycache__/0005_auto_20181013_2339.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/appointment/migrations/__pycache__/0005_auto_20181013_2339.cpython-37.pyc -------------------------------------------------------------------------------- /appointment/migrations/__pycache__/0006_auto_20181014_1331.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/appointment/migrations/__pycache__/0006_auto_20181014_1331.cpython-37.pyc -------------------------------------------------------------------------------- /appointment/migrations/__pycache__/0007_auto_20181016_1414.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/appointment/migrations/__pycache__/0007_auto_20181016_1414.cpython-37.pyc -------------------------------------------------------------------------------- /appointment/migrations/__pycache__/0008_auto_20181025_1502.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/appointment/migrations/__pycache__/0008_auto_20181025_1502.cpython-37.pyc -------------------------------------------------------------------------------- /appointment/migrations/__pycache__/0009_auto_20181025_1821.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kellytimire/Python-and-Django-mini-project/HEAD/appointment/migrations/__pycache__/0009_auto_20181025_1821.cpython-37.pyc -------------------------------------------------------------------------------- /appointment/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from .models import Appointment, Consultation 3 | 4 | 5 | # Register your models here. 6 | admin.site.register(Appointment) 7 | admin.site.register(Consultation) 8 | 9 | -------------------------------------------------------------------------------- /manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import os 3 | import sys 4 | 5 | if __name__ == "__main__": 6 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "MediArchive.settings") 7 | 8 | from django.core.management import execute_from_command_line 9 | 10 | execute_from_command_line(sys.argv) 11 | -------------------------------------------------------------------------------- /appointment/static/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: white url("images/background.png"); 3 | } 4 | 5 | ul.errorlist { 6 | padding-left: 0; 7 | } 8 | 9 | ul.errorlist > li { 10 | list-style: none; 11 | } 12 | 13 | .navbar { 14 | border-radius: 0; 15 | } 16 | 17 | .navbar-brand { 18 | font-family: 'Satisfy', cursive; 19 | } 20 | -------------------------------------------------------------------------------- /appointment/templates/appointment/form-template.html: -------------------------------------------------------------------------------- 1 | {% for field in form %} 2 |
{{ error_message }}
15 | {% endif %} 16 | 25 |{{ error_message }}
16 | {% endif %} 17 | 26 |Medi-Archive is an app that allows you receptionist to book an appointment for old and new patients.
35 |First, create a new appointment by filling out the form on this page. Once an appointment is created you will be able to add a doctor's consultation.
37 |