aboutsummaryrefslogtreecommitdiff
path: root/web/website
diff options
context:
space:
mode:
Diffstat (limited to 'web/website')
-rw-r--r--web/website/fonctions.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/website/fonctions.py b/web/website/fonctions.py
index c968351..c1566af 100644
--- a/web/website/fonctions.py
+++ b/web/website/fonctions.py
@@ -1,5 +1,6 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
+import psycopg2
def baseHTML(title,body):
content=("""<!DOCTYPE html>
@@ -14,3 +15,9 @@ def baseHTML(title,body):
""")
return content
+
+
+def connexionBD():
+ connexion=psycopg2.connect ("host='localhost' dbname='atsdb' user='atsuser' password='123456'")
+ return connexion
+