Skip to content
Snippets Groups Projects
Commit 98b4fd1c authored by xinjiel2's avatar xinjiel2
Browse files

modifed docker file

parent c6a86649
No related branches found
No related tags found
No related merge requests found
...@@ -9,11 +9,11 @@ ENV PYTHONUNBUFFERED 1 ...@@ -9,11 +9,11 @@ ENV PYTHONUNBUFFERED 1
WORKDIR /ccc-assignment2-team69/web_app_django/ WORKDIR /ccc-assignment2-team69/web_app_django/
# Install dependencies # Install dependencies
RUN pip install pipenv RUN pip3 install pipenv
COPY Pipfile Pipfile.lock /ccc-assignment2-team69/web_app_django/ COPY Pipfile Pipfile.lock /ccc-assignment2-team69/web_app_django/
COPY requirements.txt /ccc-assignment2-team69/web_app_django/ COPY requirements.txt /ccc-assignment2-team69/web_app_django/
RUN pipenv install --system RUN pipenv install --system
RUN pip install -r requirements.txt RUN pip3 install -r requirements.txt
# Copy project # Copy project
COPY . /ccc-assignment2-team69/web_app_django/ COPY . /ccc-assignment2-team69/web_app_django/
\ No newline at end of file
...@@ -17,12 +17,11 @@ def index(request): ...@@ -17,12 +17,11 @@ def index(request):
if error == "no": if error == "no":
docs = SERVER['tweet_results'] docs = SERVER['tweet_results']
print(docs) print(docs)
print(docs['0f664afca04e2b25008526baf10008ed']) for doc in docs:
print(docs[doc])
context = {'file':docs[doc]}
context = {'file':docs['0f664afca04e2b25008526baf10008ed']}
else: else:
context = {'file':error} context = {'file':error}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment