Having issues trying to deploy my Django application to Heroku and suggestions as to where I should deploy instead? And that has good documentation. it is totally screwed up there. The issue is that it purportedly can’t find my wsgi.py file. And documentation for deploying to Heroku is including deprecated packages etc. This is an app I want as part of my portfolio. I do not want to pay through the nose for something I have no intention of making money on right now. Thanks!
I’ve seen people recommend https://www.pythonanywhere.com/ as a simple, inexpensive place to host Django apps (but I haven’t tried it myself).
Or if you can describe more about your project that’s on Heroku, maybe someone can help you get that up and running.
Below are two platforms you can consider, which aim to be Heroku-like.
You might want to ask about the problem you’re having (copy paste errors!). Not finding wsgi.py sees like it’s probably a simple configuration issue, that you will have for all such platforms.
@boxed I did solve that issue on Heroku. And I managed to get the pages (two) that don’t require authentication. However, I was not able to render the signup page or login page. And I can’t seem to access views that require authentication. Which means that I have not correctly synched my local db with my remote one. Still trying to figure this out.
Heroku (so far) is the only hosting that uses the latest version of python (3.13.0) which is what I am using and it also lets me use Django 5.1 (I think that is the 5.x version I have). Render does not and PythonAnywhere does not. FYI. I cannot downgrade my application.
It’s unusual to “sync” local and remote databases.
If you have data in your local database, and you want to copy that to the live one (replacing the live one) that’s possible. Is that what you want?
Unless you’re using an SQLite database, which isn’t going to work on Heroku, because it will periodically be replaced with whatever its original state was, thanks to Heroku’s ephemeral filesystem.
Just seen your next comment: if you mean you can’t downgrade Django version, Django 5.1 will work on Python 3.10 to 3.13.
I am not trying to use the sqlite database. I created one on Heroku. I am not starting from scratch. I wanted to host my local project. According to various bits and pieces of information I came across, in order for the same project to work locally (Heroku local) and remotely (Heroku remote), the databases should be 'synched". Otherwise I can’t understand why I can’t access the signup page (that I really can’t figure out because that does not require authentication), the login page, and therefore all the other pages which require authentication.
Can you link to the information about syncing local and live databases? That might help explain what you’re trying to do.
Can you be more specific about not being able to “access” pages? What exactly happens when you try to visit one in your browser?
This is what my home page on Heroku looks like:
This is what the single Board page looks like:
tThis is what happens when I click on New topic (requires authentication):
And this is what happens when I click on the Sign in page:
I will try and find the information re syncing. It might take a while as I was not successful. But I will try to find it!
And this is what I am getting in my logs:
2024-11-17T15:19:17.530071+00:00 heroku[web.1]: Restarting
2024-11-17T15:19:17.581273+00:00 heroku[web.1]: State changed from up to starting
2024-11-17T15:19:18.104198+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2024-11-17T15:19:18.119647+00:00 app[web.1]: [2024-11-17 15:19:18 +0000] [10] [INFO] Worker exiting (pid: 10)
2024-11-17T15:19:18.119660+00:00 app[web.1]: [2024-11-17 15:19:18 +0000] [9] [INFO] Worker exiting (pid: 9)
2024-11-17T15:19:18.119661+00:00 app[web.1]: [2024-11-17 15:19:18 +0000] [2] [INFO] Handling signal: term
2024-11-17T15:19:18.320062+00:00 app[web.1]: [2024-11-17 15:19:18 +0000] [2] [INFO] Shutting down: Master
2024-11-17T15:19:18.391619+00:00 heroku[web.1]: Process exited with status 0
2024-11-17T15:19:20.862882+00:00 heroku[web.1]: Starting process with command `gunicorn django_boards.wsgi --log-file -`
2024-11-17T15:19:21.352496+00:00 app[web.1]: Python buildpack: Detected 512 MB available memory and 8 CPU cores.
2024-11-17T15:19:21.352566+00:00 app[web.1]: Python buildpack: Defaulting WEB_CONCURRENCY to 2 based on the available memory.
2024-11-17T15:19:21.539220+00:00 app[web.1]: [2024-11-17 15:19:21 +0000] [2] [INFO] Starting gunicorn 23.0.0
2024-11-17T15:19:21.539465+00:00 app[web.1]: [2024-11-17 15:19:21 +0000] [2] [INFO] Listening at: http://0.0.0.0:56821 (2)
2024-11-17T15:19:21.539497+00:00 app[web.1]: [2024-11-17 15:19:21 +0000] [2] [INFO] Using worker: sync
2024-11-17T15:19:21.541446+00:00 app[web.1]: [2024-11-17 15:19:21 +0000] [9] [INFO] Booting worker with pid: 9
2024-11-17T15:19:21.545366+00:00 app[web.1]: [2024-11-17 15:19:21 +0000] [10] [INFO] Booting worker with pid: 10
2024-11-17T15:19:21.966962+00:00 heroku[web.1]: State changed from starting to up
2024-11-17T15:52:44.318436+00:00 heroku[web.1]: Idling
2024-11-17T15:52:44.323118+00:00 heroku[web.1]: State changed from up to down
2024-11-17T15:52:44.804236+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2024-11-17T15:52:44.820501+00:00 app[web.1]: [2024-11-17 15:52:44 +0000] [10] [INFO] Worker exiting (pid: 10)
2024-11-17T15:52:44.820526+00:00 app[web.1]: [2024-11-17 15:52:44 +0000] [2] [INFO] Handling signal: term
2024-11-17T15:52:44.820526+00:00 app[web.1]: [2024-11-17 15:52:44 +0000] [9] [INFO] Worker exiting (pid: 9)
2024-11-17T15:52:45.020927+00:00 app[web.1]: [2024-11-17 15:52:45 +0000] [2] [INFO] Shutting down: Master
2024-11-17T15:52:45.071428+00:00 heroku[web.1]: Process exited with status 0
2024-11-17T16:03:39.541387+00:00 heroku[web.1]: Unidling
2024-11-17T16:03:39.593571+00:00 heroku[web.1]: State changed from down to starting
2024-11-17T16:03:42.798154+00:00 heroku[web.1]: Starting process with command `gunicorn django_boards.wsgi --log-file -`
2024-11-17T16:03:43.276998+00:00 app[web.1]: Python buildpack: Detected 512 MB available memory and 8 CPU cores.
2024-11-17T16:03:43.277067+00:00 app[web.1]: Python buildpack: Defaulting WEB_CONCURRENCY to 2 based on the available memory.
2024-11-17T16:03:43.462439+00:00 app[web.1]: [2024-11-17 16:03:43 +0000] [2] [INFO] Starting gunicorn 23.0.0
2024-11-17T16:03:43.462697+00:00 app[web.1]: [2024-11-17 16:03:43 +0000] [2] [INFO] Listening at: http://0.0.0.0:13974 (2)
2024-11-17T16:03:43.462739+00:00 app[web.1]: [2024-11-17 16:03:43 +0000] [2] [INFO] Using worker: sync
2024-11-17T16:03:43.464481+00:00 app[web.1]: [2024-11-17 16:03:43 +0000] [9] [INFO] Booting worker with pid: 9
2024-11-17T16:03:43.551712+00:00 app[web.1]: [2024-11-17 16:03:43 +0000] [10] [INFO] Booting worker with pid: 10
2024-11-17T16:03:43.888022+00:00 heroku[web.1]: State changed from starting to up
2024-11-17T16:03:44.792034+00:00 app[web.1]: 10.1.18.49 - - [17/Nov/2024:16:03:44 +0000] "GET / HTTP/1.1" 200 7723 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
2024-11-17T16:03:44.795141+00:00 heroku[router]: at=info method=GET path="/" host=django-boards-072580a03fc2.herokuapp.com request_id=422aea01-2729-4195-9b8e-9319554e56fb fwd="71.247.18.216" dyno=web.1 connect=0ms service=119ms status=200 bytes=8154 protocol=https
2024-11-17T16:03:44.927010+00:00 app[web.1]: 10.1.18.49 - - [17/Nov/2024:16:03:44 +0000] "GET /static/css/styles.b06234b608c7.css HTTP/1.1" 200 0 "https://django-boards-072580a03fc2.herokuapp.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
2024-11-17T16:03:44.927483+00:00 heroku[router]: at=info method=GET path="/static/css/styles.b06234b608c7.css" host=django-boards-072580a03fc2.herokuapp.com request_id=f7ece0f5-2f37-4622-856c-46c7ef4a5229 fwd="71.247.18.216" dyno=web.1 connect=0ms service=1ms status=200 bytes=1199 protocol=https
2024-11-17T16:03:44.994113+00:00 app[web.1]: 10.1.25.95 - - [17/Nov/2024:16:03:44 +0000] "GET /static/js/app.a0e19aa3d6f9.js HTTP/1.1" 200 0 "https://django-boards-072580a03fc2.herokuapp.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
2024-11-17T16:03:44.994673+00:00 heroku[router]: at=info method=GET path="/static/js/app.a0e19aa3d6f9.js" host=django-boards-072580a03fc2.herokuapp.com request_id=f315c992-f307-43fe-b371-54474990300b fwd="71.247.18.216" dyno=web.1 connect=0ms service=1ms status=200 bytes=577 protocol=https
2024-11-17T16:03:44.996333+00:00 app[web.1]: 10.1.85.126 - - [17/Nov/2024:16:03:44 +0000] "GET /static/css/app.2351c703cf1a.css HTTP/1.1" 200 0 "https://django-boards-072580a03fc2.herokuapp.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
2024-11-17T16:03:44.996618+00:00 heroku[router]: at=info method=GET path="/static/css/app.2351c703cf1a.css" host=django-boards-072580a03fc2.herokuapp.com request_id=e20aa359-0b92-41c1-b5af-fb1ddb676ebf fwd="71.247.18.216" dyno=web.1 connect=0ms service=1ms status=200 bytes=1920 protocol=https
2024-11-17T16:03:45.044850+00:00 app[web.1]: 10.1.25.95 - - [17/Nov/2024:16:03:45 +0000] "GET /static/js/copy-button.js HTTP/1.1" 200 0 "https://django-boards-072580a03fc2.herokuapp.com/static/js/app.a0e19aa3d6f9.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
2024-11-17T16:03:45.045221+00:00 heroku[router]: at=info method=GET path="/static/js/copy-button.js" host=django-boards-072580a03fc2.herokuapp.com request_id=856e6d89-efa6-4451-88d4-33492d6d5242 fwd="71.247.18.216" dyno=web.1 connect=0ms service=1ms status=200 bytes=433 protocol=https
2024-11-17T16:03:45.047268+00:00 app[web.1]: 10.1.85.126 - - [17/Nov/2024:16:03:45 +0000] "GET /static/js/scroll-top.js HTTP/1.1" 200 0 "https://django-boards-072580a03fc2.herokuapp.com/static/js/app.a0e19aa3d6f9.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
2024-11-17T16:03:45.047681+00:00 heroku[router]: at=info method=GET path="/static/js/scroll-top.js" host=django-boards-072580a03fc2.herokuapp.com request_id=fdd8f4c9-ec6d-4349-a87f-1d01d9b8465b fwd="71.247.18.216" dyno=web.1 connect=0ms service=1ms status=200 bytes=510 protocol=https
2024-11-17T16:03:45.332741+00:00 app[web.1]: 10.1.85.126 - - [17/Nov/2024:16:03:45 +0000] "GET /favicon.ico HTTP/1.1" 404 179 "https://django-boards-072580a03fc2.herokuapp.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
2024-11-17T16:03:45.333270+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=django-boards-072580a03fc2.herokuapp.com request_id=8b898914-2e3f-43d5-a410-c8769054ea32 fwd="71.247.18.216" dyno=web.1 connect=0ms service=16ms status=404 bytes=467 protocol=https
2024-11-17T16:39:06.291712+00:00 heroku[web.1]: Idling
2024-11-17T16:39:06.344180+00:00 heroku[web.1]: State changed from up to down
2024-11-17T16:39:06.809649+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2024-11-17T16:39:06.825163+00:00 app[web.1]: [2024-11-17 16:39:06 +0000] [9] [INFO] Worker exiting (pid: 9)
2024-11-17T16:39:06.825177+00:00 app[web.1]: [2024-11-17 16:39:06 +0000] [10] [INFO] Worker exiting (pid: 10)
2024-11-17T16:39:06.825180+00:00 app[web.1]: [2024-11-17 16:39:06 +0000] [2] [INFO] Handling signal: term
2024-11-17T16:39:07.025586+00:00 app[web.1]: [2024-11-17 16:39:07 +0000] [2] [INFO] Shutting down: Master
2024-11-17T16:39:07.096443+00:00 heroku[web.1]: Process exited with status 0
2024-11-19T18:25:25.042567+00:00 heroku[web.1]: Unidling
2024-11-19T18:25:25.090832+00:00 heroku[web.1]: State changed from down to starting
2024-11-19T18:25:28.606044+00:00 heroku[web.1]: Starting process with command `gunicorn django_boards.wsgi --log-file -`
2024-11-19T18:25:29.077457+00:00 app[web.1]: Python buildpack: Detected 512 MB available memory and 8 CPU cores.
2024-11-19T18:25:29.077556+00:00 app[web.1]: Python buildpack: Defaulting WEB_CONCURRENCY to 2 based on the available memory.
2024-11-19T18:25:29.263328+00:00 app[web.1]: [2024-11-19 18:25:29 +0000] [2] [INFO] Starting gunicorn 23.0.0
2024-11-19T18:25:29.263584+00:00 app[web.1]: [2024-11-19 18:25:29 +0000] [2] [INFO] Listening at: http://0.0.0.0:14920 (2)
2024-11-19T18:25:29.263613+00:00 app[web.1]: [2024-11-19 18:25:29 +0000] [2] [INFO] Using worker: sync
2024-11-19T18:25:29.265544+00:00 app[web.1]: [2024-11-19 18:25:29 +0000] [9] [INFO] Booting worker with pid: 9
2024-11-19T18:25:29.345846+00:00 app[web.1]: [2024-11-19 18:25:29 +0000] [10] [INFO] Booting worker with pid: 10
2024-11-19T18:25:29.713679+00:00 heroku[web.1]: State changed from starting to up
2024-11-19T18:25:31.290067+00:00 app[web.1]: 10.1.27.218 - - [19/Nov/2024:18:25:31 +0000] "GET / HTTP/1.1" 200 7723 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15"
2024-11-19T18:25:31.290467+00:00 heroku[router]: at=info method=GET path="/" host=django-boards-072580a03fc2.herokuapp.com request_id=08b09f31-d23c-43f7-b996-cd073e2e6f20 fwd="104.28.55.228" dyno=web.1 connect=0ms service=120ms status=200 bytes=8154 protocol=https
2024-11-19T18:25:31.423404+00:00 app[web.1]: 10.1.29.183 - - [19/Nov/2024:18:25:31 +0000] "GET /static/css/app.2351c703cf1a.css HTTP/1.1" 200 0 "https://django-boards-072580a03fc2.herokuapp.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15"
2024-11-19T18:25:31.423696+00:00 heroku[router]: at=info method=GET path="/static/css/app.2351c703cf1a.css" host=django-boards-072580a03fc2.herokuapp.com request_id=8df2ffc1-affd-44f7-be13-4d1dc69a83f3 fwd="104.28.55.232" dyno=web.1 connect=0ms service=1ms status=200 bytes=1920 protocol=https
2024-11-19T18:25:31.424618+00:00 app[web.1]: 10.1.27.218 - - [19/Nov/2024:18:25:31 +0000] "GET /static/css/styles.b06234b608c7.css HTTP/1.1" 200 0 "https://django-boards-072580a03fc2.herokuapp.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15"
2024-11-19T18:25:31.424881+00:00 heroku[router]: at=info method=GET path="/static/css/styles.b06234b608c7.css" host=django-boards-072580a03fc2.herokuapp.com request_id=4eee8f06-11d5-4196-b5b4-842321ae4292 fwd="104.28.55.228" dyno=web.1 connect=0ms service=1ms status=200 bytes=1199 protocol=https
2024-11-19T18:25:31.533913+00:00 app[web.1]: 10.1.29.183 - - [19/Nov/2024:18:25:31 +0000] "GET /static/js/copy-button.js HTTP/1.1" 200 0 "https://django-boards-072580a03fc2.herokuapp.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15"
2024-11-19T18:25:31.534362+00:00 heroku[router]: at=info method=GET path="/static/js/copy-button.js" host=django-boards-072580a03fc2.herokuapp.com request_id=84a9d57c-d283-4e3b-98be-12ca0086539d fwd="104.28.55.232" dyno=web.1 connect=1ms service=1ms status=200 bytes=433 protocol=https
2024-11-19T18:25:31.534954+00:00 app[web.1]: 10.1.27.218 - - [19/Nov/2024:18:25:31 +0000] "GET /static/js/scroll-top.js HTTP/1.1" 200 0 "https://django-boards-072580a03fc2.herokuapp.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15"
2024-11-19T18:25:31.535288+00:00 heroku[router]: at=info method=GET path="/static/js/scroll-top.js" host=django-boards-072580a03fc2.herokuapp.com request_id=ec742f11-557a-4b3e-80f3-b5d78327d279 fwd="104.28.55.228" dyno=web.1 connect=0ms service=1ms status=200 bytes=510 protocol=https
2024-11-19T18:25:35.507843+00:00 app[web.1]: 10.1.27.218 - - [19/Nov/2024:18:25:35 +0000] "GET /boards/1/ HTTP/1.1" 200 7948 "https://django-boards-072580a03fc2.herokuapp.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15"
2024-11-19T18:25:35.508294+00:00 heroku[router]: at=info method=GET path="/boards/1/" host=django-boards-072580a03fc2.herokuapp.com request_id=ed7dc8f6-1eea-4221-baf8-6266eb0175c5 fwd="104.28.55.228" dyno=web.1 connect=0ms service=17ms status=200 bytes=8379 protocol=https
2024-11-19T18:25:37.964926+00:00 app[web.1]: 10.1.27.218 - - [19/Nov/2024:18:25:37 +0000] "GET /boards/1/topics/1/ HTTP/1.1" 302 0 "https://django-boards-072580a03fc2.herokuapp.com/boards/1/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15"
2024-11-19T18:25:37.965317+00:00 heroku[router]: at=info method=GET path="/boards/1/topics/1/" host=django-boards-072580a03fc2.herokuapp.com request_id=b47880bb-9cc6-44dd-ac7e-64e2ec3a8c2e fwd="104.28.55.228" dyno=web.1 connect=0ms service=14ms status=302 bytes=340 protocol=https
2024-11-19T18:25:38.010479+00:00 app[web.1]: 10.1.27.218 - - [19/Nov/2024:18:25:38 +0000] "GET /login/?next=/boards/1/topics/1/ HTTP/1.1" 500 145 "https://django-boards-072580a03fc2.herokuapp.com/boards/1/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15"
2024-11-19T18:25:38.010958+00:00 heroku[router]: at=info method=GET path="/login/?next=/boards/1/topics/1/" host=django-boards-072580a03fc2.herokuapp.com request_id=1e599920-9386-4e5d-bc14-5c49a639d54d fwd="104.28.55.228" dyno=web.1 connect=0ms service=12ms status=500 bytes=445 protocol=https
2024-11-19T18:26:14.370620+00:00 app[web.1]: 10.1.27.218 - - [19/Nov/2024:18:26:14 +0000] "GET / HTTP/1.1" 200 7723 "https://django-boards-072580a03fc2.herokuapp.com/boards/1/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15"
2024-11-19T18:26:14.370916+00:00 heroku[router]: at=info method=GET path="/" host=django-boards-072580a03fc2.herokuapp.com request_id=3ad01f37-9cdd-477f-9f8a-e5326ab49d2d fwd="104.28.55.228" dyno=web.1 connect=0ms service=15ms status=200 bytes=8154 protocol=https
2024-11-19T18:27:38.981464+00:00 app[web.1]: 10.1.86.201 - - [19/Nov/2024:18:27:38 +0000] "GET /boards/1/ HTTP/1.1" 200 7948 "https://django-boards-072580a03fc2.herokuapp.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15"
2024-11-19T18:27:38.982032+00:00 heroku[router]: at=info method=GET path="/boards/1/" host=django-boards-072580a03fc2.herokuapp.com request_id=7a4aff72-b353-42bd-9ba9-e34229d41f84 fwd="104.28.55.233" dyno=web.1 connect=0ms service=14ms status=200 bytes=8379 protocol=https
2024-11-19T18:27:39.051182+00:00 app[web.1]: 10.1.19.119 - - [19/Nov/2024:18:27:39 +0000] "GET /static/js/copy-button.js HTTP/1.1" 304 0 "https://django-boards-072580a03fc2.herokuapp.com/boards/1/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15"
2024-11-19T18:27:39.051485+00:00 heroku[router]: at=info method=GET path="/static/js/copy-button.js" host=django-boards-072580a03fc2.herokuapp.com request_id=0a1f2d39-bc95-435b-8827-ae422f28b96d fwd="104.28.55.228" dyno=web.1 connect=0ms service=1ms status=304 bytes=182 protocol=https
2024-11-19T18:27:39.051932+00:00 app[web.1]: 10.1.86.201 - - [19/Nov/2024:18:27:39 +0000] "GET /static/js/scroll-top.js HTTP/1.1" 304 0 "https://django-boards-072580a03fc2.herokuapp.com/boards/1/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15"
2024-11-19T18:27:39.052306+00:00 heroku[router]: at=info method=GET path="/static/js/scroll-top.js" host=django-boards-072580a03fc2.herokuapp.com request_id=ca406432-18f3-45a4-8465-d329f294b9f1 fwd="104.28.55.233" dyno=web.1 connect=0ms service=1ms status=304 bytes=183 protocol=https
2024-11-19T18:28:54.186735+00:00 app[web.1]: 10.1.32.167 - - [19/Nov/2024:18:28:54 +0000] "GET /boards/1/new/ HTTP/1.1" 302 0 "https://django-boards-072580a03fc2.herokuapp.com/boards/1/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15"
2024-11-19T18:28:54.187097+00:00 heroku[router]: at=info method=GET path="/boards/1/new/" host=django-boards-072580a03fc2.herokuapp.com request_id=9672872d-cedf-4a7e-8b6b-50600c69433c fwd="104.28.55.233" dyno=web.1 connect=1ms service=1ms status=302 bytes=335 protocol=https
2024-11-19T18:28:54.234101+00:00 app[web.1]: 10.1.95.93 - - [19/Nov/2024:18:28:54 +0000] "GET /login/?next=/boards/1/new/ HTTP/1.1" 500 145 "https://django-boards-072580a03fc2.herokuapp.com/boards/1/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15"
2024-11-19T18:28:54.234480+00:00 heroku[router]: at=info method=GET path="/login/?next=/boards/1/new/" host=django-boards-072580a03fc2.herokuapp.com request_id=eca8765b-b932-44ea-9414-698769ecaa87 fwd="104.28.55.234" dyno=web.1 connect=0ms service=3ms status=500 bytes=445 protocol=https
2024-11-19T18:29:42.606254+00:00 app[web.1]: 10.1.59.72 - - [19/Nov/2024:18:29:42 +0000] "GET /login/ HTTP/1.1" 500 145 "https://django-boards-072580a03fc2.herokuapp.com/boards/1/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15"
2024-11-19T18:29:42.606665+00:00 heroku[router]: at=info method=GET path="/login/" host=django-boards-072580a03fc2.herokuapp.com request_id=9253231a-9389-403e-8525-086fc32d9cf5 fwd="104.28.55.227" dyno=web.1 connect=0ms service=2ms status=500 bytes=445 protocol=https
With the superuser that I created through the Heroku python shell, I can get in via the admin site and then can get around via the various pages. However, I don’t want to have to get into the site via the admin. I would like to be able to use all those views that I created especially and firstly the signup and login pages. I don’t understand why they are not working.
Do they work in your local development environment?
It would probably help to add the Sentry add-on which will give you a lot more information about Internal Server Errors, because there’s not enough to go on at the moment - you need to be able to see the full traceback of the error. Sentry - Add-ons - Heroku Elements
Not completely, Same as on Heroku. Heroku local web renders the same, And as for regular local, also the same, I did something and then it no longer worked completely. Only through admin etc. I guess I could create another django application instance, but this then would be the third one. I am tempted to try render, but I would have to roll back to django 4.2.1 and python 3.8.x. They have much better docs, but something will break. But maybe I will try again just because at this point my settings.py is a mess. I will just have to write everything down as I change something even more carefully. I really think it has something to do with the CSRF tokens. I’m continuing to investigate., But In might try something somewhere else as a test to see what happens.
Sorry, you need to describe things more precisely, and in more detail, because I can’t tell from this exactly what works where, and what’s different on Heroku versus your development site. Give some examples of URLs, whether they should require a log in or not, and whether they work on Heroku and whether they work locally.
I am tempted to try render, but I would have to roll back to django 4.2.1 and python 3.8.x.
Why do you think this? Render’s current default version is 3.11.10: https://docs.render.com/python-version