Skip to content

Commit

Permalink
dep fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullah956 committed Aug 17, 2024
1 parent e616c29 commit 52119ca
Show file tree
Hide file tree
Showing 588 changed files with 7 additions and 85,244 deletions.
Binary file removed Procfile
Binary file not shown.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<<<<<<< HEAD
# dj-pricye
=======
# dj-pricye
>>>>>>> e616c297ae80ae07730996be88d5654a270843ae
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed ecom/db.sqlite3
Binary file not shown.
Binary file removed ecom/ecom/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file removed ecom/ecom/__pycache__/settings.cpython-312.pyc
Binary file not shown.
Binary file removed ecom/ecom/__pycache__/urls.cpython-312.pyc
Binary file not shown.
Binary file removed ecom/ecom/__pycache__/wsgi.cpython-312.pyc
Binary file not shown.
20 changes: 3 additions & 17 deletions ecom/ecom/settings.py → ecom/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = ['django-ecom-production-093b.up.railway.app','https://django-ecom-production-093b.up.railway.app']
CSRF_TRUSTED_ORIGINS = ['https://django-ecom-production-093b.up.railway.app']
ALLOWED_HOSTS = []

# Application definition

Expand All @@ -34,7 +33,6 @@
'store',
'cart',
'payment',
'whitenoise.runserver_nostatic',
]

MIDDLEWARE = [
Expand All @@ -45,7 +43,6 @@
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
]

ROOT_URLCONF = 'ecom.urls'
Expand Down Expand Up @@ -74,17 +71,9 @@
# https://docs.djangoproject.com/en/5.0/ref/settings/#databases

DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': BASE_DIR / 'db.sqlite3',
# }
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME' : 'railway',
'USER' : 'postgres',
'PASSWORD' : os.environ['DB_PASSWORD'],
'HOST' : 'viaduct.proxy.rlwy.net',
'PORT' : '19091',
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}

Expand Down Expand Up @@ -125,9 +114,6 @@

STATIC_URL = 'static/'
STATICFILES_DIRS = ['static/']
# White noise static stuff
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
STATIC_ROOT = BASE_DIR / 'staticfiles'

MEDIA_URL = 'media/'
MEDIA_ROOT = os.path.join(BASE_DIR,'media')
Expand Down
275 changes: 0 additions & 275 deletions ecom/staticfiles/admin/css/autocomplete.4a81fc4242d0.css

This file was deleted.

Binary file not shown.
Loading

0 comments on commit 52119ca

Please sign in to comment.