setup dev server on port 7100

This commit is contained in:
2024-11-24 16:34:03 +00:00
parent dfe2c0e037
commit f44957b621
2 changed files with 8 additions and 2 deletions

4
.gitignore vendored
View File

@@ -1 +1,3 @@
.venv
.venv
__pycache__
db.sqlite3

View File

@@ -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