Skip to content

Commit

Permalink
Upgraded python version and all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
manjurulhoque committed Oct 10, 2024
1 parent 4b6cc21 commit 3a86ed3
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 94 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
FROM python:3.8-buster
FROM python:3.11-slim

WORKDIR /usr/src/app
WORKDIR /app

ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

COPY requirements.txt /usr/src/app
COPY requirements.txt requirements.txt

# RUN python -m pip install --upgrade pip
RUN pip install -r requirements.txt

COPY . /usr/src/app
COPY . .

RUN cp .env.dev.sample .env

#EXPOSE 8000

RUN chmod +x entrypoint.sh

ENV APP_HOME=/usr/src/app
ENV APP_HOME=/app
ENV DEBUG=1
RUN mkdir $APP_HOME/staticfiles
RUN mkdir $APP_HOME/mediafiles
Expand Down
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ Used Tech Stack
<img src="screenshots/seven.png" height="800">

## Login page
<img src="screenshots/five.png" height="800">
<img src="screenshots/five.png" height="800" alt="login">

## Add new position as employer
<img src="screenshots/two.png" height="800">
<img src="screenshots/two.png" height="800" alt="form">

## Job details
<img src="screenshots/three.png" height="800">
<img src="screenshots/three.png" height="800" alt="details">

## Swagger API
<img src="screenshots/four.png" height="800">
Expand All @@ -56,7 +56,7 @@ Used Tech Stack

Or

`python3.8 -m venv venv`
`python3.11 -m venv venv`

2. Activate it

Expand All @@ -74,17 +74,16 @@ Used Tech Stack

#### Run

1.With the venv activate it, execute:
1. With the venv activate it, execute:

python manage.py collectstatic

*Note* : Collect static is not necessary when debug is True (in dev mode)
*Note* : Collect static is not necessary when debug is True (in dev mode)

2. Create initial database:

`python manage.py migrate`


3. Load demo data (optional):

`python manage.py loaddata fixtures/app_name_initial_data.json --app app.model_name`
Expand Down
164 changes: 82 additions & 82 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,95 +1,95 @@
aniso8601==9.0.1
appdirs==1.4.3
asgiref==3.4.1
backports.zoneinfo==0.2.1
black==20.8b1
CacheControl==0.12.6
certifi==2019.11.28
cffi==1.14.3
cfgv==3.3.0
chardet==3.0.4
click==7.1.2
colorama==0.4.3
contextlib2==0.6.0
appdirs==1.4.4
asgiref==3.8.1
# backports.zoneinfo==0.2.1
black==24.10.0
CacheControl==0.14.0
certifi==2024.8.30
cffi==1.17.1
cfgv==3.4.0
chardet==5.2.0
click==8.1.7
colorama==0.4.6
contextlib2==21.6.0
coreapi==2.3.3
coreschema==0.0.4
cryptography==3.2.1
defusedxml==0.7.0rc1
distlib==0.3.2
distro==1.4.0
Django==4.0.1
django-braces==1.14.0
django-cors-headers==3.11.0
django-elasticsearch-dsl==7.2.2
django-environ==0.4.5
django-graphql-jwt==0.3.4
django-prometheus==2.2.0
django-oauth-toolkit==1.3.3
django-rest-framework-social-oauth2==1.1.0
djangorestframework==3.13.1
djangorestframework-simplejwt==5.0.0
drf-yasg==1.20.0
elasticsearch==7.5.1
elasticsearch-dsl==7.4.0
filelock==3.0.12
graphene==3.0
graphene-django==3.0.0b7
cryptography==43.0.1
defusedxml==0.7.1
distlib==0.3.9
distro==1.9.0
Django==5.1.2
django-braces==1.16.0
django-cors-headers==4.4.0
django-elasticsearch-dsl==8.0
django-environ==0.11.2
django-graphql-jwt==0.4.0
django-prometheus==2.3.1
django-oauth-toolkit==3.0.1
django-rest-framework-social-oauth2==1.2.0
djangorestframework==3.15.2
djangorestframework-simplejwt==5.3.1
drf-yasg==1.21.7
elasticsearch==8.15.1
elasticsearch-dsl==8.15.4
filelock==3.16.1
graphene==3.3
graphene-django==3.2.2
graphene-file-upload==1.3.0
graphql-core==3.1.7
graphql-relay==3.1.0
gunicorn==20.0.4
html5lib==1.0.1
identify==2.2.10
idna==2.8
inflection==0.3.1
graphql-core==3.2.4
graphql-relay==3.2.0
gunicorn==23.0.0
html5lib==1.1
identify==2.6.1
idna==3.10
inflection==0.5.1
ipaddr==2.2.0
isort==5.9.1
itypes==1.1.0
Jinja2==2.11.1
isort==5.13.2
itypes==1.2.0
Jinja2==3.1.4
lockfile==0.12.2
MarkupSafe==1.1.1
msgpack==0.6.2
mypy-extensions==0.4.3
nodeenv==1.6.0
oauthlib==3.1.0
MarkupSafe==3.0.1
msgpack==1.1.0
mypy-extensions==1.0.0
nodeenv==1.9.1
oauthlib==3.2.2
openapi-codec==1.3.2
packaging==20.1
pathspec==0.8.1
pep517==0.8.2
Pillow==9.3.0
pre-commit==2.13.0
progress==1.5
packaging==24.1
pathspec==0.12.1
pep517==0.13.1
Pillow==10.4.0
pre-commit==4.0.1
progress==1.6
promise==2.3
prometheus-client==0.14.1
psycopg2-binary==2.8.6
pycparser==2.20
Pygments==2.7.1
PyJWT==2.3.0
pyparsing==2.4.6
python-dateutil==2.8.1
prometheus-client==0.21.0
psycopg2-binary==2.9.9
pycparser==2.22
Pygments==2.18.0
PyJWT==2.9.0
pyparsing==3.1.4
python-dateutil==2.9.0.post0
python3-openid==3.2.0
pytoml==0.1.21
pytz==2018.9
PyYAML==5.4.1
regex==2020.11.13
requests==2.22.0
requests-oauthlib==1.3.0
retrying==1.3.3
ruamel.yaml==0.16.10
ruamel.yaml.clib==0.2.0
Rx==1.6.1
simplejson==3.17.0
singledispatch==3.7.0
six==1.14.0
social-auth-app-django==5.0.0
social-auth-core==4.1.0
sqlparse==0.3.0
pytz==2024.2
PyYAML==6.0.2
regex==2024.9.11
requests==2.32.3
requests-oauthlib==2.0.0
retrying==1.3.4
ruamel.yaml==0.18.6
ruamel.yaml.clib==0.2.8
Rx==3.2.0
simplejson==3.19.3
singledispatch==4.1.0
six==1.16.0
social-auth-app-django==5.4.2
social-auth-core==4.5.4
sqlparse==0.5.1
text-unidecode==1.3
toml==0.10.2
typed-ast==1.4.1
typing-extensions==3.7.4.3
uritemplate==3.0.1
urllib3==1.25.8
virtualenv==20.4.7
typed-ast==1.5.5
typing-extensions==4.12.2
uritemplate==4.1.1
urllib3==2.2.3
virtualenv==20.26.6
webencodings==0.5.1
whitenoise==5.0.1
whitenoise==6.7.0

0 comments on commit 3a86ed3

Please sign in to comment.