made production changes and added post user foreign key relation
This commit is contained in:
@ -25,7 +25,7 @@ SECRET_KEY = 'django-insecure-ccko-c%pu^i0ipz!#p7zb5)^6fxn0j081udo56_28ik@u5s#@w
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = ['192.168.2.13', '192.168.2.199']
|
||||
ALLOWED_HOSTS = ['localhost', '192.168.2.199', 'develop.artemisneo.com']
|
||||
|
||||
|
||||
# Application definition
|
||||
@ -122,18 +122,21 @@ USE_TZ = True
|
||||
# https://docs.djangoproject.com/en/5.1/howto/static-files/
|
||||
|
||||
STATIC_URL = 'static/'
|
||||
MEDIA_URL = 'media/'
|
||||
|
||||
STATIC_ROOT = BASE_DIR / 'assets'
|
||||
MEDIA_ROOT = BASE_DIR / 'media'
|
||||
|
||||
|
||||
# Default primary key field type
|
||||
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field
|
||||
|
||||
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||
|
||||
import os
|
||||
#STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
|
||||
|
||||
STATICFILES_DIRS = [
|
||||
os.path.join(BASE_DIR, 'static/')
|
||||
BASE_DIR / 'static/'
|
||||
]
|
||||
MEDIA_URL = 'media/'
|
||||
|
||||
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user