Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
leoBitto committed Jan 14, 2024
1 parent cca6765 commit 3f2a69a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 38 deletions.
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ django-environ==0.11.2
django-quill-editor==0.1.40
fontawesomefree==6.4.2
gunicorn==21.2.0
huey==2.5.0
idna==3.6
numpy==1.26.2
oauthlib==3.2.2
Expand All @@ -23,6 +24,7 @@ python-dateutil==2.8.2
python-decouple==3.8
python3-openid==3.2.0
pytz==2023.3.post1
redis==5.0.1
requests==2.31.0
requests-oauthlib==1.3.1
six==1.16.0
Expand Down
39 changes: 2 additions & 37 deletions src/base/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import logging



# Leggi le variabili d'ambiente dal file selezionato
SECRET_KEY = config('SECRET_KEY', default='')
DEBUG = config('DEBUG', default=False, cast=bool)
Expand All @@ -42,6 +43,7 @@
'django.contrib.messages',
'django.contrib.staticfiles',

'huey.contrib.djhuey',
# add here the app names
'website',
'fontawesomefree',
Expand Down Expand Up @@ -161,41 +163,4 @@
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'


# # Configurazione del logger
# LOGGING = {
# 'version': 1,
# 'disable_existing_loggers': False,
# 'handlers': {
# 'file': {
# 'level': 'DEBUG',
# 'class': 'logging.FileHandler',
# 'filename': 'logs/forge.log', # Aggiorna il percorso del file
# 'formatter': 'verbose',
# },
# 'console': {
# 'level': 'DEBUG',
# 'class': 'logging.StreamHandler',
# 'formatter': 'verbose',
# },
# },
# 'formatters': {
# 'verbose': {
# 'format': '{levelname} {asctime} {module} {message}',
# 'style': '{',
# },
# },
# 'loggers': {
# 'django': {
# 'handlers': ['file'],
# 'level': 'DEBUG',
# 'propagate': True,
# },
# 'myapp': {
# 'handlers': ['file'],
# 'level': 'DEBUG',
# 'propagate': True,
# },
# },
# }


Empty file removed src/logs/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion src/website/templates/website/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@




{% endblock %}
3 changes: 3 additions & 0 deletions src/website/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
from .forms import ImageForm, ContactForm, OpeningHourForm, GalleryForm
from django.contrib import messages




# this is the part of the website accessible only to admin
@login_required
def dashboard(request):
Expand Down

0 comments on commit 3f2a69a

Please sign in to comment.