Hi, I am curious how do you deploy on a function base system with Django, when you need to much to access the manage.py? How do you deploy in vercel? Does it have a way to reach the command line?
Gabriel On Friday 14 June 2024 at 15:17:34 UTC+2 Augusto Domingos wrote: > Hey, sorry for the late reply, I had just gone to bed at that time > > Weird error... > > Try specifying the version of django-allauth in your requirements file, > then redeploy. Also, please check your Vercel logs carefully, or you can > try to install the library in a package like this: pip install > django-allauth -t . this can sometimes help with deploymnt issues by > ensuring all dependencies are available in the project directory > > If it still doesn't work, persists, it might be related to the Lambda > function in Vercel, as it uses AWS infrastructure. In that case, you may > need to investigate further or contact Vercel > Em quinta-feira, 13 de junho de 2024 às 20:23:13 UTC+2, ASAMOAH EMMANUEL > escreveu: > >> requirements.txt >> >> arrow==1.3.0 >> asgiref==3.8.1 >> binaryornot==0.4.4 >> certifi==2024.6.2 >> cffi==1.16.0 >> chardet==5.2.0 >> charset-normalizer==3.3.2 >> click==8.1.7 >> colorama==0.4.6 >> cookiecutter==2.6.0 >> crispy-tailwind==1.0.3 >> cryptography==42.0.7 >> defusedxml==0.7.1 >> Django==4.2.5 >> django-allauth >> django-browser-reload==1.12.1 >> django-crispy-forms==2.1 >> django-tailwind >> idna==3.7 >> install==1.3.5 >> Jinja2==3.1.4 >> markdown-it-py==3.0.0 >> MarkupSafe==2.1.5 >> mdurl==0.1.2 >> oauthlib==3.2.2 >> pillow==10.2.0 >> psycopg2-binary==2.9.7 >> pycparser==2.22 >> pycryptodome==3.20.0 >> Pygments==2.18.0 >> PyJWT==2.8.0 >> python-dateutil==2.9.0.post0 >> python-decouple==3.8 >> python-slugify==8.0.4 >> python3-openid==3.2.0 >> PyYAML==6.0.1 >> rave-python==1.4.0 >> requests==2.32.3 >> requests-oauthlib==2.0.0 >> rich==13.7.1 >> six==1.16.0 >> sqlparse==0.5.0 >> text-unidecode==1.3 >> types-python-dateutil==2.9.0.20240316 >> tzdata==2024.1 >> urllib3==1.26.6 >> whitenoise==6.6.0 >> >> >> vercel.json >> >> { >> "version": 2, >> "builds": [ >> { >> "src": "inshala/wsgi.py", >> "use": "@vercel/python", >> "config": { "maxLambdaSize": "15mb", "runtime": "python3.9" } >> }, >> { >> "src": "build_files.sh", >> "use": "@vercel/static-build", >> "config": { >> "distDir": "staticfiles" >> } >> } >> ], >> "routes": [ >> { >> "src": "/static/(.*)", >> "dest": "/static/$1" >> }, >> { >> "src": "/(.*)", >> "dest": "inshala/wsgi.py" >> } >> ] >> } >> >> >> build_file >> # build_files.sh >> pip install -r requirements.txt >> python3.9 manage.py collectstatic --noinput >> python3.9 manage.py migrate >> >> wsgi.py >> """ >> WSGI config for inshala project. >> >> It exposes the WSGI callable as a module-level variable named >> ``application``. >> >> For more information on this file, see >> https://docs.djangoproject.com/en/5.0/howto/deployment/wsgi/ >> """ >> >> import os >> >> from django.core.wsgi import get_wsgi_application >> >> os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'inshala.settings') >> >> app = get_wsgi_application() >> >> >> >> >> >> Allauth is already installed on vercel. >> >> Thanks in advance. >> >> On Thu, Jun 13, 2024 at 4:59 PM Augusto Domingos <augustodom...@gmail.com> >> wrote: >> >>> >>> Looks there's a problem with your module "allauth", have you installed >>> that in your Vercel environment? >>> >>> Try to install that, certify that your vercel.json file have some rules >>> to install your python requirements.txt >>> >>> If have some another question, please, let me know, I will try to help >>> you. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Django users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to django-users...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/041845f6-defc-41be-a996-d443a9341cebn%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/django-users/041845f6-defc-41be-a996-d443a9341cebn%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> >> >> -- >> I don't stop when I'm tired, I only stop when the job is done. >> > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/140b0cc2-944f-4dd5-82a7-9b3bbd161220n%40googlegroups.com.