ariankordi / closedverse

Miiverse clone (offdevice) in Django released in late 2017. Gross and ancient please don't look at this
21 stars 17 forks source link

Bad Request (400) #12

Closed stampylongr closed 5 years ago

stampylongr commented 5 years ago

OK, so I decided to move the server over to DigitalOcean. Problem is whenever I get everything setup, I keep getting Bad Request (400) whenever I try to go to any URL. Here's the log:

(closedverseenv) sammy@closedverse:~/closedverse$ python manage.py runserver 0.0.0.0:8000
Performing system checks...

System check identified no issues (0 silenced).
February 13, 2019 - 18:12:56
Django version 2.1.7, using settings 'closedverse.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
[13/Feb/2019 18:13:26] "GET / HTTP/1.1" 400 26
[13/Feb/2019 18:13:26] "GET /favicon.ico HTTP/1.1" 400 26
[13/Feb/2019 18:13:52] "GET /admin HTTP/1.1" 400 26
[13/Feb/2019 18:13:52] "GET /favicon.ico HTTP/1.1" 400 26
stampylongr commented 5 years ago

OK, I think I fixed it, but now I'm getting 404 errors in the console. It keeps saying that all the static files are not being found.

stampylongr commented 5 years ago

If it helps any, here's the console log when I don't get `Bad Request (400)'

(closedverseenv) sammy@closedverse:~/closedverse$ python manage.py runserver 0.0.0.0:8000
Performing system checks...

System check identified no issues (0 silenced).
February 14, 2019 - 07:58:14
Django version 2.1.7, using settings 'closedverse.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
[14/Feb/2019 07:58:21] "GET /admin/ HTTP/1.1" 200 8498
[14/Feb/2019 07:58:21] "GET /s/admin/css/base.css HTTP/1.1" 404 4467
[14/Feb/2019 07:58:21] "GET /s/admin/css/dashboard.css HTTP/1.1" 404 4467
[14/Feb/2019 07:58:21] "GET /s/admin/css/responsive.css HTTP/1.1" 404 4467
[14/Feb/2019 07:58:24] "GET / HTTP/1.1" 200 6923
[14/Feb/2019 07:58:24] "GET /s/closedverse.css HTTP/1.1" 404 4467
[14/Feb/2019 07:58:24] "GET /s/blueness.css HTTP/1.1" 404 4467
[14/Feb/2019 07:58:24] "GET /s/jslibs.js HTTP/1.1" 404 4467
[14/Feb/2019 07:58:24] "GET /s/closedverse.js HTTP/1.1" 404 4467
[14/Feb/2019 07:58:25] "GET /s/img/menu-logo.png HTTP/1.1" 404 4467
[14/Feb/2019 07:58:25] "GET /s//img/anonymous-mii.png HTTP/1.1" 404 4467
stampylongr commented 5 years ago

@ariankordi OK, I fixed it. The only problem left is that I have to keep it in debug mode.

A second question, how do you disable sign up?

OhHeyItsPip commented 5 years ago

Signup functions are on views.py, so I’d check there.