15 Commits
Author SHA1 Message Date
pierre geeraert 8be9e7dd13 remove the journal
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
2026-07-04 19:47:56 +01:00
pi-ux-ce f0e6339b3d Merge pull request 'testing' (#16) from testing into main
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5m44s
Reviewed-on: #16
2026-07-04 17:39:51 +00:00
pi-ux-ce b5c3aa1bdb Merge pull request 'revoke keys and replace them by env variable' (#15) from testing into main
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4m36s
Reviewed-on: #15
2026-06-25 22:27:28 +00:00
pi-ux-ce 6a6b0a0167 Merge pull request 'testing' (#14) from testing into main
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 14m51s
Reviewed-on: #14
2026-06-25 21:24:06 +00:00
pierre geeraert 78cc6cbad3 make python version match testing
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 11m10s
2026-06-21 23:00:25 +01:00
pierre geeraert ec5eadac06 use the right function
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4m25s
2026-06-21 22:42:56 +01:00
pierre geeraert f22a33ad1a also remove function then
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4m9s
2026-06-21 22:33:50 +01:00
pierre geeraert f28a9096f7 fix function for date and import
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
2026-06-21 22:32:02 +01:00
pierre geeraert 0216a9f1e1 fix function for date and import
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4m6s
2026-06-21 22:21:55 +01:00
pierre geeraert bb642c781a type object 'redirectData' has no attribute 'create'
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3m48s
2026-06-21 22:06:13 +01:00
pi-ux-ce 0af676ec39 Merge pull request 'no need for migration if the DB doesn't exist' (#13) from testing into main
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6m7s
Reviewed-on: #13
2026-06-21 20:39:15 +00:00
pi-ux-ce 565a381977 Merge pull request 'testing' (#12) from testing into main
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 4m24s
Reviewed-on: #12
2026-06-21 20:30:30 +00:00
pi-ux-ce 555b222d6b try another method
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
2026-06-17 13:46:24 +00:00
pi-ux-ce 3eb7fd44e5 Merge pull request 'testing' (#10) from testing into main
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9m30s
Reviewed-on: #10
2026-06-15 19:22:44 +00:00
pierre geeraert 19665ea0b7 update readme
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4m22s
2026-06-15 09:59:43 +01:00
6 changed files with 21 additions and 8 deletions
@@ -8,6 +8,8 @@ on:
- 'django_testing/dockerfile' - 'django_testing/dockerfile'
tags-ignore: tags-ignore:
- '*' - '*'
workflow_dispatch: # Enables the manual run UI button
jobs: jobs:
Explore-Gitea-Actions: Explore-Gitea-Actions:
+13
View File
@@ -20,6 +20,19 @@ python django_code/manage.py migrate --database=job_db
python django_code/manage.py migrate --database=telegram_db python django_code/manage.py migrate --database=telegram_db
python django_code/manage.py migrate --database=podcast_db python django_code/manage.py migrate --database=podcast_db
``` ```
### Database debug
```
create database django;
create database simpsons;
create database cloudmanager;
create database redirect;
drop database django;
drop database simpsons;
drop database cloudmanager;
drop database redirect;
```
### Setup virtualenv variables ### Setup virtualenv variables
@@ -1 +0,0 @@
ikgdsa
@@ -2,7 +2,7 @@ from django.db import models
class redirectData(models.Model): class redirectData(models.Model):
url = models.CharField(max_length=1000) url = models.CharField(max_length=1000)
addedDate = models.DateField('Published', blank=True, null=True) addedDate = models.DateField('Published', blank=True, null=True, auto_now_add=True)
seenDate = models.DateField('Published', blank=True, null=True) seenDate = models.DateField('Published', blank=True, null=True)
class Meta: class Meta:
@@ -1,11 +1,10 @@
from django.shortcuts import render from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse from django.http import HttpResponse
from django.shortcuts import render from django.http import HttpResponseRedirect
from django.apps import AppConfig
from .models import redirectData from .models import redirectData
import redis import redis
import datetime
def hello(request): def hello(request):
return HttpResponse('<h1>Hello Django!</h1>') return HttpResponse('<h1>Hello Django!</h1>')
@@ -36,7 +35,7 @@ def redirect_process(request):
key = key.lower() key = key.lower()
r.set(key, value) r.set(key, value)
redirectData.create(url=key,addedDate=datetime.datetime.now(),seenDate="") redirectData.objects.create(url=value)
text_generated = "successfully set "+value+" to "+key text_generated = "successfully set "+value+" to "+key
return HttpResponse(text_generated, content_type="text/plain") return HttpResponse(text_generated, content_type="text/plain")
+1 -1
View File
@@ -1,4 +1,4 @@
FROM gitea.tryton.geeraert.eu/pi-ux-ce/python:3 FROM python:3.12
ENV PYTHONUNBUFFERED 1 ENV PYTHONUNBUFFERED 1
#ENV ALLOWED_HOSTS 'django.tryton.geeraert.eu' #ENV ALLOWED_HOSTS 'django.tryton.geeraert.eu'