Skip to content

Commit

Permalink
Configuring with gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
frasanz committed Sep 26, 2024
1 parent 39fd125 commit 1d35f85
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
15 changes: 7 additions & 8 deletions gdalface/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
DEBUG = config('DEBUG', default=False, cast=bool)

ALLOWED_HOSTS = ['lostatnight.org', 'localhost', '127.0.0.1']
CSRF_TRUSTED_ORIGINS = ['https://lostatnight.org']

# Application definition

Expand Down Expand Up @@ -134,8 +135,13 @@

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.2/howto/static-files/

STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') # Where collected static files go in production

STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static'), # Your static files in development
]


# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
Expand All @@ -145,13 +151,6 @@
# settings.py

# Static files (CSS, JavaScript, Images)
STATIC_URL = '/static/'

# Directory to collect static files
STATICFILES_DIRS = [
BASE_DIR / "static", # Add the base static directory at the project level
# or 'your_app/static' for app-level static files
]

# Serving georeferenced images
GEOREFERENCED_ROOT = os.path.join(BASE_DIR, 'georeferenced')
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ django-bootstrap-v5==1.0.11
djangorestframework==3.15.1
drf-yasg==1.21.7
fontawesomefree==6.6.0
gunicorn==23.0.0
inflection==0.5.1
packaging==24.0
pillow==10.2.0
Expand Down

0 comments on commit 1d35f85

Please sign in to comment.