<repo_name>vladisgrig/mydoctor<file_sep>/todoctor/urls.py
from django.conf.urls import url
from . import views

urlpatterns = [
	url(r'^$', views.main_page, name='main_pade'),
    url(r'^results/$', views.results, name='results'),
    url(r'^coupon/$', views.coupon, name='coupon'),
]
<file_sep>/todoctor/models.py
from django.db import models

# Create your models here.
class Physician(models.Model):
    first_name = models.CharField(max_length=100)
    last_name = models.CharField(max_length=100)
    middle_name = models.CharField(max_length=100)
    birthdate = models.DateFiels()
    photo = models.ImageField(upload_to='images/')
    description = models.TextField()

class Speciality(models.Model):
    name = models.CharField(max_length=100)
    gender = models.ForeignKey("Gender", on_delete=models.CASCADE)
    age = models.ForeignKey("AgeCategory", on_delete=models.CASCADE)

class Gender(models.Model):
    MAN = 'M'
    WOMAN = 'W'
    GENDER_CHOICES = (
        (MAN, 'man'),
        (WOMAN, 'woman'),
    )
    gender_choices = models.CharField(
        max_length=1,
        choices=GENDER_CHOICES,
    )

class AgeCategory(models.Model):
    NEWBORNS = 'nb'
    CHILDREN = 'ch'
    ADULT = 'ad'
    AGED = 'ag'
    AGE_CHOICES = (
        (NEWBORNS, 'newborns'),
        (CHILDREN, 'children'),
        (ADULT, 'adult'),
        (AGED, 'aged'),
    )
    age_choces = models.CharField(
        max_length=2,
        choices=AGE_CHOICES,
    )
<file_sep>/todoctor/views.py
from django.shortcuts import render

# Create your views here.
def main_page(request):
	return render(request, 'todoctor/index.html', {})

def results(request):
	return render(request, 'todoctor/results.html', {})

def coupon(request):
	return render(request, 'todoctor/coupon.html', {})
<file_sep>/todoctor/apps.py
from django.apps import AppConfig


class TodoctorConfig(AppConfig):
    name = 'todoctor'
