Arturo
Not, blank is for the validations in forms, null put Null variables in DB fields.
Bryan
yes
Ghorz
Last warning
坂田銀時
坂田銀時
If default value is given, django calls get_default on model field if blank field is submitted, blank check is done later, which would throw field error, if default value itself is empty string.
Rσуαℓ geeк
Hello members... Has anyone ever tried implementing a django-admin reusable app with a different layout from the default one ? If there's one please provide a link
Rσуαℓ geeк
google.com
I'm asking cause the ones I've tried seem not to work
Rσуαℓ geeк
cj
maybe try jet (beware of its license) or grappeli
Rσуαℓ geeк
maybe try jet (beware of its license) or grappeli
Okay👍 I'll looked it up Seems to be what I was looking since it's universal let me try it.. thanks
Rσуαℓ geeк
Jet**
Anonymous
django portfolio project i have one home page & one project page when i try to render project page to home using css its giving error Forbidden CSRF token missing or incorrect http 403 error
Day
Hey,,am working on a custom user model and is it important for me to create a registration form or should I just import the user creation form in the views and use it
Anonymous
can someone please tell me why its saying: 2019-11-02T14:07:35.482843+00:00 app[web.1]: bash: gunicorn: command not found i am trying to deploy a simple hello world page
Anonymous
to heroku
Anonymous
heres the app: https://radiant-lowlands-18367.herokuapp.com/
Anonymous
and there is gunicorn==19.9.0
cj
and there is gunicorn==19.9.0
then you're not activating the environment before running it
Anonymous
in my venv
cj
already did that too bro
check and double check, if the error is telling you that, is because you're doing something wrong or skipping some step; also I'm not your bro
Anonymous
check and double check, if the error is telling you that, is because you're doing something wrong or skipping some step; also I'm not your bro
(*bro)sure. the app is pushed to bitbucket, i hooked heroku, pushed the project to that as well and all was fine but when i execute heroku open there is tje application error
cj
in my venv
is it on your localhost? or in heroku?
Anonymous
is it on your localhost? or in heroku?
i have it locally and i even stackoverflowed🤷‍♂️ it but their solutions doesn't work
cj
i have it locally and i even stackoverflowed🤷‍♂️ it but their solutions doesn't work
ok so... you have the package installed on your localhost, but you want it to magically run in a remote server... 🙄
Anonymous
is it on your localhost? or in heroku?
and trust me i followed each and every step in the book i am reading
S
Did you change host on settings.py?
cj
i pushed it there too
how are you deploying it?
Anonymous
Did you change host on settings.py?
i changed the allowed host to ['*']
cj
Did you change host on settings.py?
that does nothing to do with a package not being installed in the remote server 🤷🏻‍♂
Anonymous
heroku
S
And make sure that you have given right path of your project
cj
cli
can you share your procfile?
cj
what do u mean by that?
don't listen to him, he doesn't know what he is talking about
cj
web: gunicorn myapp:app --log-file -
is that everything you have in the Procfile?
S
don't listen to him, he doesn't know what he is talking about
Seems like we a an expert to solve our problems,, let's see you are able to solve that error or not..
Anonymous
is that everything you have in the Procfile?
yes, its just a simple hello world page with no static files
cj
Seems like we a an expert to solve our problems,, let's see you are able to solve that error or not..
tell me, how doing the things you're talking about messing the setting.py file will help him to install a package in the environment in a remote server?
cj
yes, its just a simple hello world page with no static files
that's the problem, you're not telling heroku to install the dependencies you need for your project to run, you're trying to run a command that doesn't exist yet in the server
Fuad
what do u mean by that?
Bro. Show us your requirements.txt, is gunicorn listed on the requirements?
Manish
can u guyz chill
Group is being hot 😂
Anonymous
Bro. Show us your requirements.txt, is gunicorn listed on the requirements?
i don't have requirements file, the book says nothing about that
Anonymous
cj
i see, then how do i install gunicorn and all the dependencies in the heroku server
do you have a requirements.txt file where you list all the dependencies you need?
Fuad
i don't have requirements file, the book says nothing about that
In heroku, you have to run" pip freeze > requirements.txt "
Manish
i don't have requirements file, the book says nothing about that
Seriously bro. U don't have requirements.txt file?
cj
i don't have requirements file, the book says nothing about that
just create it, that's why gunicorn and other packages (like django) are not being installed
Manish
Anonymous
project root folder
so all i have to is pip freeze > requirements.txt and git add -A and git commit and push the app again??
Fuad
Requirements.txt file is very important, without it heroku won't know what kind of language you use and what kinds of package you use
Fuad
heroku cli or website(account)??
In your local , just be sure that you have Requirements.txt file
cj
heroku cli or website(account)??
run that in your local environment, so it will take the packages needed for you project
Fuad
Then push it to github
Anonymous
run that in your local environment, so it will take the packages needed for you project
can u please suggest a book on django because the current one is a headache
Doragonsureiyā
can u please suggest a book on django because the current one is a headache
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls