Skip to content

Commit

Permalink
Merge pull request #53 from jessmemeME/main
Browse files Browse the repository at this point in the history
fix: requirements.txt to reduce vulnerabilities
  • Loading branch information
sajib1066 committed Sep 5, 2023
2 parents eb851da + 134fff2 commit 9264b12
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 33 deletions.
30 changes: 28 additions & 2 deletions eventcalendar/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
#DEBUG = False
DEFAULT_AUTO_FIELD='django.db.models.AutoField'

ALLOWED_HOSTS = ["*"]

Expand Down Expand Up @@ -82,6 +84,21 @@
}
}

"""
##CONECTAR CON POSTGRES
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'proyectoHadaMadrina',
'USER': 'postgres',
'PASSWORD': 'postgres',
'HOST': '127.0.0.1',
'DATABASE_PORT': '5432',
}
}
"""

# Password validation
# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators
Expand Down Expand Up @@ -114,7 +131,16 @@

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

"""
STATIC_URL = "/static/"

STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]
"""


STATIC_URL = '/static/'
STATICFILES_DIRS = (os.path.join(BASE_DIR, "static"),)
#STATIC_ROOT=os.path.join(BASE_DIR, 'static/')

#
MEDIA_ROOT = os.path.join(BASE_DIR, 'media/') # 'data' is my media folder
MEDIA_URL = '/media/'
48 changes: 48 additions & 0 deletions requirements copy.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#appdirs
#asgiref
astroid
asttokens
backports.entry-points-selectable
black
#certifi
cfgv
#charset-normalizer
#click
#colorama
commonmark
#distlib
#Django
##----> django-doctor
dparse
#filelock
flake8
identify
#idna
#isort
#lazy-object-proxy
#mccabe
#mypy-extensions
#nodeenv
#packaging
#pathspec
#platformdirs
poetry-semver
pre-commit
pycodestyle
pyflakes
#Pygments
pylint
pyparsing
#pytz
#PyYAML
regex
#requests
rich
six
skjold
#sqlparse
toml
tomli
urllib3
virtualenv
wrapt
68 changes: 37 additions & 31 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,45 @@ charset-normalizer==2.0.8
click==8.0.1
colorama==0.4.4
commonmark==0.9.1
distlib==0.3.2
dill==0.3.7
distlib==0.3.7
Django==3.2.18
django-doctor==2.5.0
dparse==0.5.2
filelock==3.0.12
flake8==3.9.2
identify==2.2.11
idna==3.3
isort==5.9.2
lazy-object-proxy==1.6.0
mccabe==0.6.1
mypy-extensions==0.4.3
nodeenv==1.6.0
packaging==21.0
pathspec==0.8.1
platformdirs==2.2.0
django-bootstrap-v5==1.0.11
dparse==0.6.3
filelock==3.12.3
flake8==6.1.0
identify==2.5.27
idna==3.4
isort==5.12.0
lazy-object-proxy==1.9.0
markdown-it-py==3.0.0
mccabe==0.7.0
mdurl==0.1.2
mypy-extensions==1.0.0
nodeenv==1.8.0
packaging==22.0
pathspec==0.11.2
platformdirs==3.10.0
poetry-semver==0.1.0
pre-commit==2.13.0
pycodestyle==2.7.0
pyflakes==2.3.1
Pygments==2.9.0
pylint==2.9.3
pyparsing==2.4.7
pytz==2020.1
PyYAML==5.4.1
regex==2021.7.6
requests==2.26.0
rich==10.6.0
pre-commit==3.3.3
pycodestyle==2.11.0
pyflakes==3.1.0
Pygments==2.16.1
pylint==2.17.5
pyparsing==3.1.1
pytz==2023.3
PyYAML==6.0.1
regex==2023.8.8
requests==2.31.0
rich==13.5.2
six==1.16.0
skjold==0.3.2
skjold==0.6.1
soupsieve==2.4.1
sqlparse==0.4.4
toml==0.10.2
tomli==1.0.4
urllib3==1.26.7
virtualenv==20.7.0
wrapt==1.12.1
tomli==2.0.1
tomlkit==0.12.1
tzdata==2023.3
urllib3==2.0.4
virtualenv==20.24.4
wrapt==1.15.0

0 comments on commit 9264b12

Please sign in to comment.