Closed AlexMcBex closed 11 months ago
Make sure your django is installed in your pip environment. It's having an issue with where your django is installed, I think, based on this: Could not find a version that satisfies the requirement Django==4.1.7
I already reran it with pipenv install django
.
If I run it with pip instead I get this:
(django-env) ➜ django-env pip install django
Requirement already satisfied: django in /home/alexmcbex/.local/share/virtualenvs/django-env-3fOLF7ra/lib/python3.8/site-packages (4.1.7)
Requirement already satisfied: asgiref<4,>=3.5.2 in /home/alexmcbex/.local/share/virtualenvs/django-env-3fOLF7ra/lib/python3.8/site-packages (from django) (3.6.0)
Requirement already satisfied: sqlparse>=0.2.2 in /home/alexmcbex/.local/share/virtualenvs/django-env-3fOLF7ra/lib/python3.8/site-packages (from django) (0.4.3)
Requirement already satisfied: backports.zoneinfo in /home/alexmcbex/.local/share/virtualenvs/django-env-3fOLF7ra/lib/python3.8/site-packages (from django) (0.2.1)
Anything else I could try to do?
Do you currently have a pipfile and a piplock file inside your project or only in your django environment folder?
only in the environment folder, not in the project one
When you deploy, do you have that requirements.txt file?
yes, it contains this:
asgiref==3.6.0
backports.zoneinfo==0.2.1
boto3==1.26.84
botocore==1.29.84
dj-database-url==1.2.0
Django==4.1.7
django-environ==0.10.0
gunicorn==20.1.0
jmespath==1.0.1
psycopg2-binary==2.9.5
python-dateutil==2.8.2
s3transfer==0.6.0
six==1.16.0
sqlparse==0.4.3
urllib3==1.26.14
whitenoise==6.4.0
does the fact that Django is spelled with a capital D in requirements important?
Have you installed Django or only django? Also were you able to run your app before?
I followed the instructions in here https://git.generalassemb.ly/sei-ec-remote/django-render-deployment I installed the dependencies listed in the readme
install django with a capital D, sometimes it matters. Hopefully that works since everything else looks installed, then you'll need to delete your requirements.txt and add it again
Before following the instructions in the settings.py the app server runs normally, I have a development branch with the original settings.py file that I'm using to work on the code.
I ran pipenv install Django
in the env folder and with pip freeze > requirements.txt
I made a new requirements file.
It's identical to the one I deleted and there's no new code to push, the deployment still gives me the same error...
If you follow the deploy instructions and comment out your old database and add the new one, youre code will not work locally and will only work in production, but the databases section should be the only thing that affects your code. I would say to keep working in the development branch and when thats done push all your code to main since you know it's working then re follow the deploy instructions. AT least your development branch will stay working if you run into errors again
Yeah, that's how I worked on the code since yesterday, working locally is not the problem, the problem is the error that I receive when I try to deploy the app in the deploy branch
Has anyone figured this out? I'm running into the same issue when I try to deploy, even though it worked just fine with the finchcollector app.
What stack are you using?
(ex: MERN(mongoose + react), DR(django + react), PEN, etc.)
Django Views
What's the problem you're trying to solve?
I can't deploy the app with render and bit
Post any code you think might be relevant (one fenced block per file)
settings.py
If you see an error message, post it here. If you don't, what unexpected behavior are you seeing?
I get this log when I try to deploy or run the server
What is your best guess as to the source of the problem?
I accidently ran pipenv install django in the project folder, I may have messed up...
What things have you already tried to solve the problem?
rerun the install dependencies in the django env folder
Paste a link to your repository here https://github.com/AlexMcBex/Xketchez