Spaces:
Runtime error
Runtime error
Merge pull request #19 from east-and-west-magic/use-allauth
Browse files- Dockerfile +5 -0
- src/db.sqlite3 +0 -0
- src/pgsns/settings.py +5 -1
Dockerfile
CHANGED
|
@@ -22,6 +22,11 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
| 22 |
|
| 23 |
COPY . .
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
# port where the Django app runs
|
| 26 |
EXPOSE 7860
|
| 27 |
|
|
|
|
| 22 |
|
| 23 |
COPY . .
|
| 24 |
|
| 25 |
+
USER root
|
| 26 |
+
RUN chmod 777 src
|
| 27 |
+
RUN chmod 777 src/db.sqlite3
|
| 28 |
+
USER user
|
| 29 |
+
|
| 30 |
# port where the Django app runs
|
| 31 |
EXPOSE 7860
|
| 32 |
|
src/db.sqlite3
CHANGED
|
Binary files a/src/db.sqlite3 and b/src/db.sqlite3 differ
|
|
|
src/pgsns/settings.py
CHANGED
|
@@ -25,7 +25,7 @@ SECRET_KEY = 'django-insecure-vm2hnku(!sw8^v!^isb)=(+4cqoph5z)c8r=n#oy2&&ekorp_!
|
|
| 25 |
# SECURITY WARNING: don't run with debug turned on in production!
|
| 26 |
DEBUG = True
|
| 27 |
|
| 28 |
-
ALLOWED_HOSTS = ['pgsoft-pgsns.hf.space']
|
| 29 |
|
| 30 |
|
| 31 |
# Application definition
|
|
@@ -86,6 +86,10 @@ TEMPLATES = [
|
|
| 86 |
|
| 87 |
WSGI_APPLICATION = 'pgsns.wsgi.application'
|
| 88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
|
| 90 |
# Database
|
| 91 |
# https://docs.djangoproject.com/en/5.0/ref/settings/#databases
|
|
|
|
| 25 |
# SECURITY WARNING: don't run with debug turned on in production!
|
| 26 |
DEBUG = True
|
| 27 |
|
| 28 |
+
ALLOWED_HOSTS = ['pgsoft-pgsns.hf.space', '127.0.0.1']
|
| 29 |
|
| 30 |
|
| 31 |
# Application definition
|
|
|
|
| 86 |
|
| 87 |
WSGI_APPLICATION = 'pgsns.wsgi.application'
|
| 88 |
|
| 89 |
+
CSRF_TRUSTED_ORIGINS = [
|
| 90 |
+
'https://pgsoft-pgsns.hf.space',
|
| 91 |
+
]
|
| 92 |
+
|
| 93 |
|
| 94 |
# Database
|
| 95 |
# https://docs.djangoproject.com/en/5.0/ref/settings/#databases
|