""" settings.py Django settings for coolsite project. Generated by 'django-admin startproject' using Django 3.1.5. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ import os from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'pdk8bcv@oy$o4asp2100ymrv(0y$&qy5#oh-i($2s=j4fa4uvp' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = ['127.0.0.1'] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'women.apps.WomenConfig' ] 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 = 'coolsite.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 = 'coolsite.wsgi.application' # Database # https://docs.djangoproject.com/en/3.1/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': BASE_DIR / 'db.sqlite3', } } # Password validation # https://docs.djangoproject.com/en/3.1/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/3.1/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/3.1/howto/static-files/ STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATICFILES_DIRS = [] MEDIA_ROOT = os.path.join(BASE_DIR, 'media') MEDIA_URL = '/media/' # ************************ """ urls.py coolsite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.conf.urls.static import static from django.contrib import admin from django.urls import path from coolsite import settings from women.views import * from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('', include('women.urls')), ] if settings.DEBUG: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) handler404 = pageNotFound # ************************ /* ******* styles/css **** */ html, body { font-family: 'Arial'; margin: 0; padding: 0; height: 100%; width: 100%; color: #444; } a { color: #0059b2; text-decoration: none; } a:hover { color: #CC0000; text-decoration: underline; } img {max-width: 600px; height: auto;} img.img-article-left { max-width: 300px; height: auto; float: left; padding: 0 10px 10px 0; } img.img-article-left.thumb { max-width: 150px; height: auto; } p.link-read-post { text-align: right; } p.link-read-post a { padding: 10px; min-width: 100px; background: #333671; color: #fff; text-decoration: none; } div.article-panel { background: #eee; padding: 5px 10px 5px 10px; box-sizing border-box; overflow: hidden; color: #555; } div.article-panel p.first { margin: 0; float: left; } div.article-panel p.last { margin: 0; float: right; } ul.list-articles { list-style: none; margin: 0; padding: 0; } ul.list-articles li { border-bottom: 1px solid #ccc; } .table-page { width: 100%; height: 100%; vertical-align: top; } .table-page tr {height: 100%;} .clear {clear: both;} .header { background: #3F4137; height: 60px; } .logo { background: url('../images/logo.png') no-repeat 10px 5px; width: 70px; height: 60px; } ul.mainmenu { list-style: none; margin: 0; padding: 0; height: 60px; color: #fdc073; font-size: 20px; overflow: hidden; } ul.mainmenu li { float: left; margin: 18px 40px 0 30px; } ul.mainmenu li.logo {margin: 0;} ul.mainmenu li.last {float: right;} ul.mainmenu li a { color: #fdc073; text-decoration: none; } ul.mainmenu li a:hover { color: #FDA83D; } .panelitems { text-align: center; } ul.langitem { list-style: none; display: inline-block; margin: 30px; padding: 0; max-width: 300px } ul.langitem li { margin: 10px 0 0 0; width: 100%; } ul.langitem li.image { margin: 0; text-align: center; width: 100%; height: 250px; overflow: hidden; } ul.langitem li.descr { color: #777; height: 170px; overflow: hidden; } ul.langitem li a { color: #fdc073; text-decoration: none; font-size: 20px; } ul.langitem li a:hover { color: #FDA83D; } div.button { background: #3F4137; max-width: 200px; margin: 0 auto; padding: 5px 20px 5px 20px; border-radius: 10px; font-size: 20px; } .table-content { width: 100%; min-height: 100%; height: 100%; } .left-chapters { margin: 0; background: #eee; border-right: 1px solid #ccc; min-height: 100%; } .left-chapters ul { width: 230px; min-height: 100%; margin: 0; padding: 20px 10px 10px 20px; list-style: none; font-size: 20px; } .left-chapters ul li { margin: 30px 0 0 0; color: #999; } .left-chapters ul li.selected {color: #0059b2; } .left-chapters ul li a { color: #444; text-decoration: none; } .left-chapters ul li a:hover { color: #CC0000; } .left-chapters ul li.share {margin: 60px 0 0 0;} .left-chapters ul li.share p {margin: 30px 0 30px 0;} .left-chapters ul li.share a { display: inline-block; width: 40px; height: 40px; margin: 0 20px 0 0; } .left-chapters ul li.share a.share-yt { width: 100%; height: 30px; background: url('../images/share_yt.png') no-repeat 0 0 } .left-chapters ul li.share a.share-yt:hover { width: 100%; height: 30px; background: url('../images/share_yt.png') no-repeat 0 -30px } .content { padding: 40px 20px 20px 40px; width: 100%; box-sizing: border-box; } ul.breadcrumbs { margin: 0; padding: 0; list-style: none; font-size: 20px; font-family: Sans-serif, Arial, Tahoma; } ul.breadcrumbs li { display: inline-block; } ul.breadcrumbs li a { color: #0059b2; text-decoration: none; } ul.breadcrumbs li a:hover { color: #CC0000; } ul.breadcrumbs li:after{ padding: 0 10px 0 10px; content: "\2192"; } ul.breadcrumbs li.last:after {content: "";} ul.control { margin: 0; padding: 60px 0 0 0; list-style: none; font-family: Sans-serif, Arial, Tahoma; font-size: 18px; width: 100%; } ul.control li { float: left; padding: 0 0 0 10px;} ul.control li.first:before {content: "\2190"; padding: 0 10px 0 0;} ul.control li.last {float: right; padding: 0 40px 0 0;} ul.control li.last:after {content: "\2192"; padding: 0 0 0 10px;} ul.control li a { color: #0059b2; text-decoration: none; } ul.control li a:hover { color: #CC0000; } ul.content-table { margin: 0; padding: 60px 0 0 30px; list-style: none; font-family: Sans-serif, Arial, Tahoma; font-size: 28px; } ul.content-table li { margin: 0 0 40px 0; } ul.content-table li a { color: #BB5715; text-decoration: none; } ul.content-table li a:hover {color: #F0711C;} .content-text { margin: 60px 0 0 30px; color: #000; font-size: 20px; font-family: Yandex Sans Display Light; } .content-text h1 {font-size: 32px;} ul.lang-list { list-style: none; margin: 0; padding: 14px 0 0 0; background: #3F4137; width: 100%; height: 50px; border-top: 1px solid #959A82; box-sizing: border-box; font-size: 18px; font-family: Sans-serif, Arial, Tahoma; } ul.lang-list li { display: inline-block; margin-left: 40px; } ul.lang-list li.selected {color: #fdc073; border-bottom: 1px solid #fdc073;} ul.lang-list li a { color: #eee; text-decoration: none; } ul.lang-list li a:hover {color: #fdc073;} .topic-subject .topic-line { border-bottom: 1px solid #CC0000; margin-top: -16px; } .topic-subject .topic-text { display: inline-block; font-size: 28px; color: #777; padding: 0 10px 0 10px; margin-left: 30px; background: #fff; font-family: Sans-serif, Arial, Tahoma; } .list-topic { margin: 40px 0 60px 0; font-family: Sans-serif, Arial, Tahoma; } .list-topic p { margin: 0; font-size: 28px; } .list-topic ol { columns: 2; -webkit-columns: 2; column-gap: 40px; } .list-topic ol li { display: list-item; margin: 10px 10px 0 0px; padding: 0 0 0 10px; } .list-topic ol li a { color: #0059b2; text-decoration: none; } .list-topic ol li a:hover {color: #CC0000;} .highlight { max-width: 350px; padding: 0 10px 0 10px; margin: 0; overflow: auto; overflow-y: hidden; background: #f0f0f0; } .highlight p { margin: 0; } .highlight .block { width: 100%; margin: 0; } .highlight .block p { margin: 0; } .quote { background: url('../images/blockquote.png') no-repeat 0 10px; padding: 5px 5px 5px 70px; font-family: Sans-serif, Arial, Tahoma; font-style: italic; } #footer { box-sizing: border-box; background: #3F4137; padding: 5px; color: #aaa; font-size: 14px; font-family: Verdana, Geneva, Arial, Helvetica; text-align: left; overflow: hidden; } #footer a { text-decoration: underline; color: #aaa; } .form-input { width: 300px; font-size: 16px; } .form-label { display: inline-block; min-width: 150px; vertical-align: top; } .form-error ul { list-style: none; padding: 0; color: #CC0000; } .form-button { min-width: 200px; font-size: 16px; } /* ************************************* */ {% extends 'women/base.html' %} {% block content %}

{{title}}

Содержимое страницы о сайте {% endblock %} {% load static %} {{title}}
{% block mainmenu %}
{% endblock mainmenu %}
{% block breadcrumbs %} {% endblock %}
{% block content %} {% endblock %}
{% extends 'women/base.html' %} {% block content %}

{% endblock %}