File tree Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 1+ pip install -r requirements.txt
2+ python3.9 manage.py collectstatic --noinput
Original file line number Diff line number Diff line change 2424# SECURITY WARNING: don't run with debug turned on in production!
2525DEBUG = True
2626
27- ALLOWED_HOSTS = ['*' ]
27+ #ALLOWED_HOSTS = ['*']
28+ ALLOWED_HOSTS = ['.vercel.app' , '.now.sh' ]
2829
2930# Application definition
3031
Original file line number Diff line number Diff line change 1414os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'mysite.settings' )
1515
1616application = get_wsgi_application ()
17+
18+ app = application
Original file line number Diff line number Diff line change 11{
2+ "version" : 2 ,
23 "builds" : [
34 {
45 "src" : " mysite/wsgi.py" ,
5- "use" : " @vercel/python"
6+ "use" : " @vercel/python" ,
7+ "config" : {
8+ "maxLambdaSize" : " 15mb" ,
9+ "runtime" : " python3.9"
10+ }
11+ },
12+ {
13+ "src" : " build_files.sh" ,
14+ "use" : " @vercel/static-build" ,
15+ "config" : {
16+ "distDir" : " staticfiles"
17+ }
618 }
719 ],
820 "routes" : [
21+ {
22+ "src" : " /static/(.*)" ,
23+ "dest" : " /static/$1"
24+ },
925 {
1026 "src" : " /(.*)" ,
1127 "dest" : " mysite/wsgi.py"
1228 }
1329 ]
14- }
30+ }
You can’t perform that action at this time.
0 commit comments