Try-Django-1.11
Try-Django-1.11 copied to clipboard
get bad request on server
Hello, I cloned the project after the login view onto my Mac and did some checks like:
- running the shell and seeing if i.e. Restaurantlocation.objects.all() did show. OK
- ran the python manage.py makemigrations. No migrations were done
- ran the python manage.py migrate. No migrations to apply Then I ran the server which gave me "bad requests" or ""GET /admin HTTP/1.1" 400 26"
I did do in another project pretty much the same code following the tutorial on youtube which went OK.
I am a little lost as this is my first attempt into Django (I am more a Angular guy ;-)
Thanks
Hello roestigraben, Even i tried the HTTP even i got the same error can some one help with it since i am new to the django.
Also cloned and getting the same error when trying to access localhost:8000
Need to change settings from production to local
how i can do this? changing the settings from production to local?
show bad requset 404 to runserver 127.0.0.1:8000 ,tell me change pls tks
you need to use the muypicky/settings/base.py settings in the settings module comment out importing the production.py file like so ....
from .base import *
#from .production import *
try:
from .local2 import *
except:
pass
you will have to craft this file to suite your production environment. Watch the video to see how the author's production environment is set up and how he uses git to push the correct files to production.
actually, it is the file: muypicky/setting/init.py