diff --git a/backups/backup-20251006-091741.sql b/backups/backup-20251006-091741.sql new file mode 100644 index 0000000..e69de29 diff --git a/backups/backup-20251006-092034.sql b/backups/backup-20251006-092034.sql new file mode 100644 index 0000000..e69de29 diff --git a/backups/backup-20251006-104031.sql b/backups/backup-20251006-104031.sql new file mode 100644 index 0000000..486ea52 --- /dev/null +++ b/backups/backup-20251006-104031.sql @@ -0,0 +1,983 @@ +-- +-- PostgreSQL database dump +-- + +\restrict fPghlVTDPPVy01lr87tZYtegYRg1Pcwh5zc0f0KfiwFMkpwzPq0cSRMRHmqGERy + +-- Dumped from database version 18.0 (Debian 18.0-1.pgdg13+3) +-- Dumped by pg_dump version 18.0 (Debian 18.0-1.pgdg13+3) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET transaction_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: auth_group; Type: TABLE; Schema: public; Owner: vontor_cz_pi +-- + +CREATE TABLE public.auth_group ( + id integer NOT NULL, + name character varying(150) NOT NULL +); + + +ALTER TABLE public.auth_group OWNER TO vontor_cz_pi; + +-- +-- Name: auth_group_id_seq; Type: SEQUENCE; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE public.auth_group ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( + SEQUENCE NAME public.auth_group_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1 +); + + +-- +-- Name: auth_group_permissions; Type: TABLE; Schema: public; Owner: vontor_cz_pi +-- + +CREATE TABLE public.auth_group_permissions ( + id bigint NOT NULL, + group_id integer NOT NULL, + permission_id integer NOT NULL +); + + +ALTER TABLE public.auth_group_permissions OWNER TO vontor_cz_pi; + +-- +-- Name: auth_group_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE public.auth_group_permissions ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( + SEQUENCE NAME public.auth_group_permissions_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1 +); + + +-- +-- Name: auth_permission; Type: TABLE; Schema: public; Owner: vontor_cz_pi +-- + +CREATE TABLE public.auth_permission ( + id integer NOT NULL, + name character varying(255) NOT NULL, + content_type_id integer NOT NULL, + codename character varying(100) NOT NULL +); + + +ALTER TABLE public.auth_permission OWNER TO vontor_cz_pi; + +-- +-- Name: auth_permission_id_seq; Type: SEQUENCE; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE public.auth_permission ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( + SEQUENCE NAME public.auth_permission_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1 +); + + +-- +-- Name: auth_user; Type: TABLE; Schema: public; Owner: vontor_cz_pi +-- + +CREATE TABLE public.auth_user ( + id integer NOT NULL, + password character varying(128) NOT NULL, + last_login timestamp with time zone, + is_superuser boolean NOT NULL, + username character varying(150) NOT NULL, + first_name character varying(150) NOT NULL, + last_name character varying(150) NOT NULL, + email character varying(254) NOT NULL, + is_staff boolean NOT NULL, + is_active boolean NOT NULL, + date_joined timestamp with time zone NOT NULL +); + + +ALTER TABLE public.auth_user OWNER TO vontor_cz_pi; + +-- +-- Name: auth_user_groups; Type: TABLE; Schema: public; Owner: vontor_cz_pi +-- + +CREATE TABLE public.auth_user_groups ( + id bigint NOT NULL, + user_id integer NOT NULL, + group_id integer NOT NULL +); + + +ALTER TABLE public.auth_user_groups OWNER TO vontor_cz_pi; + +-- +-- Name: auth_user_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE public.auth_user_groups ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( + SEQUENCE NAME public.auth_user_groups_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1 +); + + +-- +-- Name: auth_user_id_seq; Type: SEQUENCE; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE public.auth_user ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( + SEQUENCE NAME public.auth_user_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1 +); + + +-- +-- Name: auth_user_user_permissions; Type: TABLE; Schema: public; Owner: vontor_cz_pi +-- + +CREATE TABLE public.auth_user_user_permissions ( + id bigint NOT NULL, + user_id integer NOT NULL, + permission_id integer NOT NULL +); + + +ALTER TABLE public.auth_user_user_permissions OWNER TO vontor_cz_pi; + +-- +-- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE public.auth_user_user_permissions ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( + SEQUENCE NAME public.auth_user_user_permissions_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1 +); + + +-- +-- Name: django_admin_log; Type: TABLE; Schema: public; Owner: vontor_cz_pi +-- + +CREATE TABLE public.django_admin_log ( + id integer NOT NULL, + action_time timestamp with time zone NOT NULL, + object_id text, + object_repr character varying(200) NOT NULL, + action_flag smallint NOT NULL, + change_message text NOT NULL, + content_type_id integer, + user_id integer NOT NULL, + CONSTRAINT django_admin_log_action_flag_check CHECK ((action_flag >= 0)) +); + + +ALTER TABLE public.django_admin_log OWNER TO vontor_cz_pi; + +-- +-- Name: django_admin_log_id_seq; Type: SEQUENCE; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE public.django_admin_log ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( + SEQUENCE NAME public.django_admin_log_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1 +); + + +-- +-- Name: django_content_type; Type: TABLE; Schema: public; Owner: vontor_cz_pi +-- + +CREATE TABLE public.django_content_type ( + id integer NOT NULL, + app_label character varying(100) NOT NULL, + model character varying(100) NOT NULL +); + + +ALTER TABLE public.django_content_type OWNER TO vontor_cz_pi; + +-- +-- Name: django_content_type_id_seq; Type: SEQUENCE; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE public.django_content_type ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( + SEQUENCE NAME public.django_content_type_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1 +); + + +-- +-- Name: django_migrations; Type: TABLE; Schema: public; Owner: vontor_cz_pi +-- + +CREATE TABLE public.django_migrations ( + id bigint NOT NULL, + app character varying(255) NOT NULL, + name character varying(255) NOT NULL, + applied timestamp with time zone NOT NULL +); + + +ALTER TABLE public.django_migrations OWNER TO vontor_cz_pi; + +-- +-- Name: django_migrations_id_seq; Type: SEQUENCE; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE public.django_migrations ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( + SEQUENCE NAME public.django_migrations_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1 +); + + +-- +-- Name: django_session; Type: TABLE; Schema: public; Owner: vontor_cz_pi +-- + +CREATE TABLE public.django_session ( + session_key character varying(40) NOT NULL, + session_data text NOT NULL, + expire_date timestamp with time zone NOT NULL +); + + +ALTER TABLE public.django_session OWNER TO vontor_cz_pi; + +-- +-- Name: home_anonmessage; Type: TABLE; Schema: public; Owner: vontor_cz_pi +-- + +CREATE TABLE public.home_anonmessage ( + id bigint NOT NULL, + text text NOT NULL, + "time" timestamp with time zone NOT NULL +); + + +ALTER TABLE public.home_anonmessage OWNER TO vontor_cz_pi; + +-- +-- Name: home_anonmessage_id_seq; Type: SEQUENCE; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE public.home_anonmessage ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( + SEQUENCE NAME public.home_anonmessage_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1 +); + + +-- +-- Name: home_testmedia; Type: TABLE; Schema: public; Owner: vontor_cz_pi +-- + +CREATE TABLE public.home_testmedia ( + id bigint NOT NULL, + file character varying(100) NOT NULL +); + + +ALTER TABLE public.home_testmedia OWNER TO vontor_cz_pi; + +-- +-- Name: home_testmedia_id_seq; Type: SEQUENCE; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE public.home_testmedia ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( + SEQUENCE NAME public.home_testmedia_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1 +); + + +-- +-- Name: rest_framework_api_key_apikey; Type: TABLE; Schema: public; Owner: vontor_cz_pi +-- + +CREATE TABLE public.rest_framework_api_key_apikey ( + id character varying(150) NOT NULL, + created timestamp with time zone NOT NULL, + name character varying(50) NOT NULL, + revoked boolean NOT NULL, + expiry_date timestamp with time zone, + hashed_key character varying(150) NOT NULL, + prefix character varying(8) NOT NULL +); + + +ALTER TABLE public.rest_framework_api_key_apikey OWNER TO vontor_cz_pi; + +-- +-- Data for Name: auth_group; Type: TABLE DATA; Schema: public; Owner: vontor_cz_pi +-- + +COPY public.auth_group (id, name) FROM stdin; +\. + + +-- +-- Data for Name: auth_group_permissions; Type: TABLE DATA; Schema: public; Owner: vontor_cz_pi +-- + +COPY public.auth_group_permissions (id, group_id, permission_id) FROM stdin; +\. + + +-- +-- Data for Name: auth_permission; Type: TABLE DATA; Schema: public; Owner: vontor_cz_pi +-- + +COPY public.auth_permission (id, name, content_type_id, codename) FROM stdin; +1 Can add log entry 1 add_logentry +2 Can change log entry 1 change_logentry +3 Can delete log entry 1 delete_logentry +4 Can view log entry 1 view_logentry +5 Can add permission 2 add_permission +6 Can change permission 2 change_permission +7 Can delete permission 2 delete_permission +8 Can view permission 2 view_permission +9 Can add group 3 add_group +10 Can change group 3 change_group +11 Can delete group 3 delete_group +12 Can view group 3 view_group +13 Can add user 4 add_user +14 Can change user 4 change_user +15 Can delete user 4 delete_user +16 Can view user 4 view_user +17 Can add content type 5 add_contenttype +18 Can change content type 5 change_contenttype +19 Can delete content type 5 delete_contenttype +20 Can view content type 5 view_contenttype +21 Can add session 6 add_session +22 Can change session 6 change_session +23 Can delete session 6 delete_session +24 Can view session 6 view_session +25 Can add API key 7 add_apikey +26 Can change API key 7 change_apikey +27 Can delete API key 7 delete_apikey +28 Can view API key 7 view_apikey +29 Can add user profile 8 add_userprofile +30 Can change user profile 8 change_userprofile +31 Can delete user profile 8 delete_userprofile +32 Can view user profile 8 view_userprofile +33 Can add anon message 9 add_anonmessage +34 Can change anon message 9 change_anonmessage +35 Can delete anon message 9 delete_anonmessage +36 Can view anon message 9 view_anonmessage +37 Can add test media 10 add_testmedia +38 Can change test media 10 change_testmedia +39 Can delete test media 10 delete_testmedia +40 Can view test media 10 view_testmedia +\. + + +-- +-- Data for Name: auth_user; Type: TABLE DATA; Schema: public; Owner: vontor_cz_pi +-- + +COPY public.auth_user (id, password, last_login, is_superuser, username, first_name, last_name, email, is_staff, is_active, date_joined) FROM stdin; +1 pbkdf2_sha256$1000000$Bo3Tl9p7q1nRAZZwtrqEwQ$1sCg4bBk8D5/V3mGkTKDoPGtdcTDDXv37DJUZGonXdY= 2025-10-06 09:23:22.338823+00 t admin brunovontor@gmail.com t t 2025-10-06 09:23:12.609512+00 +\. + + +-- +-- Data for Name: auth_user_groups; Type: TABLE DATA; Schema: public; Owner: vontor_cz_pi +-- + +COPY public.auth_user_groups (id, user_id, group_id) FROM stdin; +\. + + +-- +-- Data for Name: auth_user_user_permissions; Type: TABLE DATA; Schema: public; Owner: vontor_cz_pi +-- + +COPY public.auth_user_user_permissions (id, user_id, permission_id) FROM stdin; +\. + + +-- +-- Data for Name: django_admin_log; Type: TABLE DATA; Schema: public; Owner: vontor_cz_pi +-- + +COPY public.django_admin_log (id, action_time, object_id, object_repr, action_flag, change_message, content_type_id, user_id) FROM stdin; +1 2025-10-06 09:25:19.04882+00 1 ahoj, je to někdo z ... - 2025-10-06 09:25:19.047597+00:00 1 [{"added": {}}] 9 1 +\. + + +-- +-- Data for Name: django_content_type; Type: TABLE DATA; Schema: public; Owner: vontor_cz_pi +-- + +COPY public.django_content_type (id, app_label, model) FROM stdin; +1 admin logentry +2 auth permission +3 auth group +4 auth user +5 contenttypes contenttype +6 sessions session +7 rest_framework_api_key apikey +8 api userprofile +9 home anonmessage +10 home testmedia +\. + + +-- +-- Data for Name: django_migrations; Type: TABLE DATA; Schema: public; Owner: vontor_cz_pi +-- + +COPY public.django_migrations (id, app, name, applied) FROM stdin; +1 contenttypes 0001_initial 2025-10-06 09:19:09.535929+00 +2 auth 0001_initial 2025-10-06 09:19:09.568855+00 +3 admin 0001_initial 2025-10-06 09:19:09.581898+00 +4 admin 0002_logentry_remove_auto_add 2025-10-06 09:19:09.588494+00 +5 admin 0003_logentry_add_action_flag_choices 2025-10-06 09:19:09.5952+00 +6 contenttypes 0002_remove_content_type_name 2025-10-06 09:19:09.609633+00 +7 auth 0002_alter_permission_name_max_length 2025-10-06 09:19:09.616975+00 +8 auth 0003_alter_user_email_max_length 2025-10-06 09:19:09.624112+00 +9 auth 0004_alter_user_username_opts 2025-10-06 09:19:09.633672+00 +10 auth 0005_alter_user_last_login_null 2025-10-06 09:19:09.641009+00 +11 auth 0006_require_contenttypes_0002 2025-10-06 09:19:09.64327+00 +12 auth 0007_alter_validators_add_error_messages 2025-10-06 09:19:09.650397+00 +13 auth 0008_alter_user_username_max_length 2025-10-06 09:19:09.659475+00 +14 auth 0009_alter_user_last_name_max_length 2025-10-06 09:19:09.667624+00 +15 auth 0010_alter_group_name_max_length 2025-10-06 09:19:09.67696+00 +16 auth 0011_update_proxy_permissions 2025-10-06 09:19:09.685424+00 +17 auth 0012_alter_user_first_name_max_length 2025-10-06 09:19:09.693667+00 +18 rest_framework_api_key 0001_initial 2025-10-06 09:19:09.702446+00 +19 rest_framework_api_key 0002_auto_20190529_2243 2025-10-06 09:19:09.708421+00 +20 rest_framework_api_key 0003_auto_20190623_1952 2025-10-06 09:19:09.712246+00 +21 rest_framework_api_key 0004_prefix_hashed_key 2025-10-06 09:19:09.729271+00 +22 rest_framework_api_key 0005_auto_20220110_1102 2025-10-06 09:19:09.735174+00 +23 sessions 0001_initial 2025-10-06 09:19:09.742279+00 +34 home 0001_initial 2025-10-06 09:25:07.606674+00 +\. + + +-- +-- Data for Name: django_session; Type: TABLE DATA; Schema: public; Owner: vontor_cz_pi +-- + +COPY public.django_session (session_key, session_data, expire_date) FROM stdin; +q3s9jzsx1y6l1wqnyz68kc6zek2glp8a .eJxVjD0LwjAUAP9LZilJ7EtSR6GjODmH95IXWmxT6IeD4n83Qgdd7457CY_b2vlt4dn3UZyEEodfRhjunL_iMeV1mn14Vjur2hH74TrfSpdx5MsUeTjv_d-kw6UrB6eNDQ60SRqgDlDbZJUjOjKiSVZKjo0jS9gombRuHBdJCEAGQUsW7w_-_jnC:1v5hRC:Vq-kLT5c1737RWx3SNaaWOat3MX0lzCbKWRx2pJwntU 2025-10-07 09:23:22.341876+00 +\. + + +-- +-- Data for Name: home_anonmessage; Type: TABLE DATA; Schema: public; Owner: vontor_cz_pi +-- + +COPY public.home_anonmessage (id, text, "time") FROM stdin; +1 ahoj, je to někdo z Wplace? 2025-10-06 09:25:19.047597+00 +\. + + +-- +-- Data for Name: home_testmedia; Type: TABLE DATA; Schema: public; Owner: vontor_cz_pi +-- + +COPY public.home_testmedia (id, file) FROM stdin; +\. + + +-- +-- Data for Name: rest_framework_api_key_apikey; Type: TABLE DATA; Schema: public; Owner: vontor_cz_pi +-- + +COPY public.rest_framework_api_key_apikey (id, created, name, revoked, expiry_date, hashed_key, prefix) FROM stdin; +\. + + +-- +-- Name: auth_group_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vontor_cz_pi +-- + +SELECT pg_catalog.setval('public.auth_group_id_seq', 1, false); + + +-- +-- Name: auth_group_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vontor_cz_pi +-- + +SELECT pg_catalog.setval('public.auth_group_permissions_id_seq', 1, false); + + +-- +-- Name: auth_permission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vontor_cz_pi +-- + +SELECT pg_catalog.setval('public.auth_permission_id_seq', 66, true); + + +-- +-- Name: auth_user_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vontor_cz_pi +-- + +SELECT pg_catalog.setval('public.auth_user_groups_id_seq', 1, false); + + +-- +-- Name: auth_user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vontor_cz_pi +-- + +SELECT pg_catalog.setval('public.auth_user_id_seq', 1, true); + + +-- +-- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vontor_cz_pi +-- + +SELECT pg_catalog.setval('public.auth_user_user_permissions_id_seq', 1, false); + + +-- +-- Name: django_admin_log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vontor_cz_pi +-- + +SELECT pg_catalog.setval('public.django_admin_log_id_seq', 1, true); + + +-- +-- Name: django_content_type_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vontor_cz_pi +-- + +SELECT pg_catalog.setval('public.django_content_type_id_seq', 33, true); + + +-- +-- Name: django_migrations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vontor_cz_pi +-- + +SELECT pg_catalog.setval('public.django_migrations_id_seq', 34, true); + + +-- +-- Name: home_anonmessage_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vontor_cz_pi +-- + +SELECT pg_catalog.setval('public.home_anonmessage_id_seq', 1, true); + + +-- +-- Name: home_testmedia_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vontor_cz_pi +-- + +SELECT pg_catalog.setval('public.home_testmedia_id_seq', 1, false); + + +-- +-- Name: auth_group auth_group_name_key; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.auth_group + ADD CONSTRAINT auth_group_name_key UNIQUE (name); + + +-- +-- Name: auth_group_permissions auth_group_permissions_group_id_permission_id_0cd325b0_uniq; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.auth_group_permissions + ADD CONSTRAINT auth_group_permissions_group_id_permission_id_0cd325b0_uniq UNIQUE (group_id, permission_id); + + +-- +-- Name: auth_group_permissions auth_group_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.auth_group_permissions + ADD CONSTRAINT auth_group_permissions_pkey PRIMARY KEY (id); + + +-- +-- Name: auth_group auth_group_pkey; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.auth_group + ADD CONSTRAINT auth_group_pkey PRIMARY KEY (id); + + +-- +-- Name: auth_permission auth_permission_content_type_id_codename_01ab375a_uniq; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.auth_permission + ADD CONSTRAINT auth_permission_content_type_id_codename_01ab375a_uniq UNIQUE (content_type_id, codename); + + +-- +-- Name: auth_permission auth_permission_pkey; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.auth_permission + ADD CONSTRAINT auth_permission_pkey PRIMARY KEY (id); + + +-- +-- Name: auth_user_groups auth_user_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.auth_user_groups + ADD CONSTRAINT auth_user_groups_pkey PRIMARY KEY (id); + + +-- +-- Name: auth_user_groups auth_user_groups_user_id_group_id_94350c0c_uniq; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.auth_user_groups + ADD CONSTRAINT auth_user_groups_user_id_group_id_94350c0c_uniq UNIQUE (user_id, group_id); + + +-- +-- Name: auth_user auth_user_pkey; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.auth_user + ADD CONSTRAINT auth_user_pkey PRIMARY KEY (id); + + +-- +-- Name: auth_user_user_permissions auth_user_user_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.auth_user_user_permissions + ADD CONSTRAINT auth_user_user_permissions_pkey PRIMARY KEY (id); + + +-- +-- Name: auth_user_user_permissions auth_user_user_permissions_user_id_permission_id_14a6b632_uniq; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.auth_user_user_permissions + ADD CONSTRAINT auth_user_user_permissions_user_id_permission_id_14a6b632_uniq UNIQUE (user_id, permission_id); + + +-- +-- Name: auth_user auth_user_username_key; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.auth_user + ADD CONSTRAINT auth_user_username_key UNIQUE (username); + + +-- +-- Name: django_admin_log django_admin_log_pkey; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.django_admin_log + ADD CONSTRAINT django_admin_log_pkey PRIMARY KEY (id); + + +-- +-- Name: django_content_type django_content_type_app_label_model_76bd3d3b_uniq; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.django_content_type + ADD CONSTRAINT django_content_type_app_label_model_76bd3d3b_uniq UNIQUE (app_label, model); + + +-- +-- Name: django_content_type django_content_type_pkey; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.django_content_type + ADD CONSTRAINT django_content_type_pkey PRIMARY KEY (id); + + +-- +-- Name: django_migrations django_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.django_migrations + ADD CONSTRAINT django_migrations_pkey PRIMARY KEY (id); + + +-- +-- Name: django_session django_session_pkey; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.django_session + ADD CONSTRAINT django_session_pkey PRIMARY KEY (session_key); + + +-- +-- Name: home_anonmessage home_anonmessage_pkey; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.home_anonmessage + ADD CONSTRAINT home_anonmessage_pkey PRIMARY KEY (id); + + +-- +-- Name: home_testmedia home_testmedia_pkey; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.home_testmedia + ADD CONSTRAINT home_testmedia_pkey PRIMARY KEY (id); + + +-- +-- Name: rest_framework_api_key_apikey rest_framework_api_key_apikey_pkey; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.rest_framework_api_key_apikey + ADD CONSTRAINT rest_framework_api_key_apikey_pkey PRIMARY KEY (id); + + +-- +-- Name: rest_framework_api_key_apikey rest_framework_api_key_apikey_prefix_key; Type: CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.rest_framework_api_key_apikey + ADD CONSTRAINT rest_framework_api_key_apikey_prefix_key UNIQUE (prefix); + + +-- +-- Name: auth_group_name_a6ea08ec_like; Type: INDEX; Schema: public; Owner: vontor_cz_pi +-- + +CREATE INDEX auth_group_name_a6ea08ec_like ON public.auth_group USING btree (name varchar_pattern_ops); + + +-- +-- Name: auth_group_permissions_group_id_b120cbf9; Type: INDEX; Schema: public; Owner: vontor_cz_pi +-- + +CREATE INDEX auth_group_permissions_group_id_b120cbf9 ON public.auth_group_permissions USING btree (group_id); + + +-- +-- Name: auth_group_permissions_permission_id_84c5c92e; Type: INDEX; Schema: public; Owner: vontor_cz_pi +-- + +CREATE INDEX auth_group_permissions_permission_id_84c5c92e ON public.auth_group_permissions USING btree (permission_id); + + +-- +-- Name: auth_permission_content_type_id_2f476e4b; Type: INDEX; Schema: public; Owner: vontor_cz_pi +-- + +CREATE INDEX auth_permission_content_type_id_2f476e4b ON public.auth_permission USING btree (content_type_id); + + +-- +-- Name: auth_user_groups_group_id_97559544; Type: INDEX; Schema: public; Owner: vontor_cz_pi +-- + +CREATE INDEX auth_user_groups_group_id_97559544 ON public.auth_user_groups USING btree (group_id); + + +-- +-- Name: auth_user_groups_user_id_6a12ed8b; Type: INDEX; Schema: public; Owner: vontor_cz_pi +-- + +CREATE INDEX auth_user_groups_user_id_6a12ed8b ON public.auth_user_groups USING btree (user_id); + + +-- +-- Name: auth_user_user_permissions_permission_id_1fbb5f2c; Type: INDEX; Schema: public; Owner: vontor_cz_pi +-- + +CREATE INDEX auth_user_user_permissions_permission_id_1fbb5f2c ON public.auth_user_user_permissions USING btree (permission_id); + + +-- +-- Name: auth_user_user_permissions_user_id_a95ead1b; Type: INDEX; Schema: public; Owner: vontor_cz_pi +-- + +CREATE INDEX auth_user_user_permissions_user_id_a95ead1b ON public.auth_user_user_permissions USING btree (user_id); + + +-- +-- Name: auth_user_username_6821ab7c_like; Type: INDEX; Schema: public; Owner: vontor_cz_pi +-- + +CREATE INDEX auth_user_username_6821ab7c_like ON public.auth_user USING btree (username varchar_pattern_ops); + + +-- +-- Name: django_admin_log_content_type_id_c4bce8eb; Type: INDEX; Schema: public; Owner: vontor_cz_pi +-- + +CREATE INDEX django_admin_log_content_type_id_c4bce8eb ON public.django_admin_log USING btree (content_type_id); + + +-- +-- Name: django_admin_log_user_id_c564eba6; Type: INDEX; Schema: public; Owner: vontor_cz_pi +-- + +CREATE INDEX django_admin_log_user_id_c564eba6 ON public.django_admin_log USING btree (user_id); + + +-- +-- Name: django_session_expire_date_a5c62663; Type: INDEX; Schema: public; Owner: vontor_cz_pi +-- + +CREATE INDEX django_session_expire_date_a5c62663 ON public.django_session USING btree (expire_date); + + +-- +-- Name: django_session_session_key_c0390e0f_like; Type: INDEX; Schema: public; Owner: vontor_cz_pi +-- + +CREATE INDEX django_session_session_key_c0390e0f_like ON public.django_session USING btree (session_key varchar_pattern_ops); + + +-- +-- Name: rest_framework_api_key_apikey_created_c61872d9; Type: INDEX; Schema: public; Owner: vontor_cz_pi +-- + +CREATE INDEX rest_framework_api_key_apikey_created_c61872d9 ON public.rest_framework_api_key_apikey USING btree (created); + + +-- +-- Name: rest_framework_api_key_apikey_id_6e07e68e_like; Type: INDEX; Schema: public; Owner: vontor_cz_pi +-- + +CREATE INDEX rest_framework_api_key_apikey_id_6e07e68e_like ON public.rest_framework_api_key_apikey USING btree (id varchar_pattern_ops); + + +-- +-- Name: rest_framework_api_key_apikey_prefix_4e0db5f8_like; Type: INDEX; Schema: public; Owner: vontor_cz_pi +-- + +CREATE INDEX rest_framework_api_key_apikey_prefix_4e0db5f8_like ON public.rest_framework_api_key_apikey USING btree (prefix varchar_pattern_ops); + + +-- +-- Name: auth_group_permissions auth_group_permissio_permission_id_84c5c92e_fk_auth_perm; Type: FK CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.auth_group_permissions + ADD CONSTRAINT auth_group_permissio_permission_id_84c5c92e_fk_auth_perm FOREIGN KEY (permission_id) REFERENCES public.auth_permission(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: auth_group_permissions auth_group_permissions_group_id_b120cbf9_fk_auth_group_id; Type: FK CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.auth_group_permissions + ADD CONSTRAINT auth_group_permissions_group_id_b120cbf9_fk_auth_group_id FOREIGN KEY (group_id) REFERENCES public.auth_group(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: auth_permission auth_permission_content_type_id_2f476e4b_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.auth_permission + ADD CONSTRAINT auth_permission_content_type_id_2f476e4b_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: auth_user_groups auth_user_groups_group_id_97559544_fk_auth_group_id; Type: FK CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.auth_user_groups + ADD CONSTRAINT auth_user_groups_group_id_97559544_fk_auth_group_id FOREIGN KEY (group_id) REFERENCES public.auth_group(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: auth_user_groups auth_user_groups_user_id_6a12ed8b_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.auth_user_groups + ADD CONSTRAINT auth_user_groups_user_id_6a12ed8b_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: auth_user_user_permissions auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm; Type: FK CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.auth_user_user_permissions + ADD CONSTRAINT auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm FOREIGN KEY (permission_id) REFERENCES public.auth_permission(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: auth_user_user_permissions auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.auth_user_user_permissions + ADD CONSTRAINT auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: django_admin_log django_admin_log_content_type_id_c4bce8eb_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.django_admin_log + ADD CONSTRAINT django_admin_log_content_type_id_c4bce8eb_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: django_admin_log django_admin_log_user_id_c564eba6_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: vontor_cz_pi +-- + +ALTER TABLE ONLY public.django_admin_log + ADD CONSTRAINT django_admin_log_user_id_c564eba6_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- PostgreSQL database dump complete +-- + +\unrestrict fPghlVTDPPVy01lr87tZYtegYRg1Pcwh5zc0f0KfiwFMkpwzPq0cSRMRHmqGERy + diff --git a/docker-compose.yml b/docker-compose.yml index b3a77d7..c77e402 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,7 +27,7 @@ services: command: sh -c " python manage.py check && python manage.py collectstatic --clear --noinput --verbosity 3 && - python manage.py makemigrations --noinput && + python manage.py makemigrations home --noinput && python manage.py migrate --verbosity 3 --noinput && gunicorn -k uvicorn.workers.UvicornWorker vontor_cz.asgi:application --bind 0.0.0.0:8000" ports: diff --git a/vontor_cz/__pycache__/__init__.cpython-313.pyc b/vontor_cz/__pycache__/__init__.cpython-313.pyc new file mode 100644 index 0000000..4a92251 Binary files /dev/null and b/vontor_cz/__pycache__/__init__.cpython-313.pyc differ diff --git a/vontor_cz/__pycache__/settings.cpython-313.pyc b/vontor_cz/__pycache__/settings.cpython-313.pyc new file mode 100644 index 0000000..8afbb9a Binary files /dev/null and b/vontor_cz/__pycache__/settings.cpython-313.pyc differ diff --git a/vontor_cz/settings.py b/vontor_cz/settings.py index 34b0da6..295596d 100644 --- a/vontor_cz/settings.py +++ b/vontor_cz/settings.py @@ -243,8 +243,8 @@ REST_FRAMEWORK = { EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' #SMTP EMAIL_HOST = os.getenv("EMAIL_HOST") EMAIL_PORT = 465 -EMAIL_USE_TLS = True -EMAIL_USE_SSL = False +#EMAIL_USE_TLS = True +EMAIL_USE_SSL = True EMAIL_HOST_USER = os.getenv("EMAIL_USER") EMAIL_HOST_PASSWORD = os.getenv("EMAIL_USER_PASSWORD") DEFAULT_FROM_EMAIL = EMAIL_HOST_USER # Optional, if you want a default sender