diff --git a/.gitignore b/.gitignore index b694934..5909789 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -.venv \ No newline at end of file +.venv +__pycache__ +db.sqlite3 \ No newline at end of file diff --git a/app/bartool_ovh/settings.py b/app/bartool_ovh/settings.py index 5cdc98d..1e162a8 100644 --- a/app/bartool_ovh/settings.py +++ b/app/bartool_ovh/settings.py @@ -12,6 +12,10 @@ https://docs.djangoproject.com/en/5.1/ref/settings/ from pathlib import Path +from django.core.management.commands.runserver import Command as runserver +runserver.default_port = "7100" +runserver.default_addr = "192.168.1.146" + # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent @@ -25,7 +29,7 @@ SECRET_KEY = 'django-insecure-snqnsca90!r=^iu6yyhpxy^+mjm%7dvrg(lb!6fr3(!9yh(c30 # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ['192.168.1.146'] # Application definition