Leonardo
now i found it! 😂
Jimmies San
😂😂
Leonardo
ok what i do here?
Leonardo
what a crap of image
Jimmies San
you can use "os only" for a "clean one" or use a pre-installed image
Jimmies San
i never use it, but i think nginx it's ok... or you can use a "os only" and we will install all by ourself
Leonardo
os only amazon linux right?
Leonardo
ok
Leonardo
i would like to do it by a free plan
Leonardo
can't i?
Jimmies San
no idea about that :\ sorry
Leonardo
because i'm using my own aws account, my customer's account need some account info update to use some resources
Jimmies San
with the free plan it is easy to get over it. aws immediately charges additional fees if you're not careful
Jimmies San
weel, i have to write better this. wait :D
Carl
I'm trying to disable a field of my form at the template level but django 2.1 keeps telling me it's required even if the value is set in the html. I tried to define a title = forms.CharField(disabled=True) in the myapp/forms.py but no success for now
Carl
@JimmySan my model field is title = models.CharField(max_length=300, default=''), I don't have it required
Rajjix
add required=False as another parameter
Carl
add required=False as another parameter
if I use title = forms.CharField(disabled=True, required=False) the content of the input is just ignored while validating the form and the database field is empty
Carl
it's ignored but I see how to do it in my view, thanks @Rajjix
Rajjix
if I use title = forms.CharField(disabled=True, required=False) the content of the input is just ignored while validating the form and the database field is empty
You mean you can’t validate the input of a user if he submits a non-required field in the model? Seems kinda strange if so
Carl
You mean you can’t validate the input of a user if he submits a non-required field in the model? Seems kinda strange if so
I think I was considering the problem from the bad angle, not requiring the field solved my issue, thanks for your help
Kraden marley
Django crud?
Rajjix
is this a yes/no question?
Kraden marley
can you give me an example django crud?
Rajjix
Google has around 100,000,000+ examples, i think you need to improve your search patterns and understand what crud is to find what you need
George
hi, has anyone used django_select2? I am not able to generate a working form, it doesn't query database in any way, the fields appear empty https://pastebin.com/9zR3MwW4
Anonymous
Any django template available for building classified website?
Ronald
Any django template available for building classified website?
Or you talking about the front end? In that case there's definitely some bootstrap templates or something for a classifieds website
Anonymous
Please help
Mirco
Run migrations
Ismael
yes
Ismael
look the error
Ismael
no such table auth_user
Ismael
all models must be included in database
Ismael
django is a ORM based system
Anonymous
I don’t have yet🌚
Anonymous
database
Mirco
I don’t have yet🌚
Again, run manage.py migrate If you didn't change your settings, it will create sqlite3 file And obv, study better the docs 💪
Ismael
database
sqlite
Anonymous
python manage.py makemigrations, followed by python manage.py migrate, then python manage.py createsuperuser USER
Rajjix
Having inherited from the AbstractBaseUser model and added USERNAME_FIELD=‘email’, and the unique=True parameter to the email field, shouldn’t that be enough to login in with an email address or is there something else i need to edit or add?
Rajjix
the website works fine for registration and all is good just not accepting the email as a login instead of username
Mr. Rude
You are showing a username field
Mr. Rude
It won't accept emails
Mr. Rude
Give a email field in the form
Mr. Rude
I may be wrong tho
Rajjix
I will try and do my own login form when i return home, but now i’m using the LoginView which should update to an email field if my assumptions where right about the “USERNAME_FIELD”.
Rajjix
and it still accepts and authenticates users by username which should also not happen
Mirco
CM
I can see here are good people who know what they do. Is there a good site developer to contact me?
Anonymous
Hi
Anonymous
Every one
Hardik
Hey
Anonymous
What does Django really do!!🌚💔 What I need beside python to create a website , For example website shows a grid of movies such as yts.am
Daniel
hi people, I am from Colombia and I am new in Django
Maz
What does Django really do!!🌚💔 What I need beside python to create a website , For example website shows a grid of movies such as yts.am
Django can do nearly anything you can imagine. And if the feature is not built-in, there are many django packages available to extend functionality.
Anonymous
I'm strong in python but don't know where to start in django
Anonymous
Any prefered tutorial ??
inchidi
Any prefered tutorial ??
you can find https://t.me/pythonres/21 at pinned message
Leonardo
who's there want a challange?
Leonardo
@Inchidi
inchidi
Leonardo
i made the machine again, and no static files :D
Leonardo
no nginx error log
Leonardo
and no uwsgi error log too
Mirco
Settings ?
Leonardo
Leonardo
Settings ?
base.py settings: https://pastebin.com/KVYeAkB2
Leonardo
python manage.py collectstatic119 static files copied to '/home/ubuntu/ambiente_er/static_cdn'.
Leonardo
nginx settings: https://pastebin.com/Wvghtmb2
Leonardo
my_project.sock file location makes difference to serve static files?
Mirco
I still don't have so much experience about deployment but have you tried to add /ubuntu/ to the location static_cdn ?
Mirco
Now is home/ambiente_er/static_cdn But collectsatic says the path is home/ubuntu/ambiente_er/static_cdn
Leonardo
yeah you're right about that, but still not working
Leonardo
i ran daemon-reload and restarted nginx and uwsgi services