Ghorz
Troy Barnes
Alpha numeric value for room number
Anonymous
Ghorz
Learn to query search engines
Troy Barnes
Im sorry about that
I did try searching but could not find anything helpful
May I'm bad at searching
Thanks for helping and sorry for being silly
Anonymous
Ghorz
Anonymous
If you can find all the files that creates that error, you can fix it or at least understand why it caused that error
Anonymous
Django is a big beast to fix if you do things wrong
Troy Barnes
Anonymous
I have deployed my project on heroku server
Anonymous
But it's throws error
Anonymous
No module named crypto
Anonymous
It's give above error
Anonymous
But all things work on my local host server
Anonymous
When I deploy my project it's gives that error
Ingvar
Tell me how to transfer data from forms to django stored procedure
Anonymous
Erik
Anonymous
Anonymous
It's working on my local host
Anonymous
But when I deployed my site on heroku server it's gives error
Erik
Your local environment != Production
Anonymous
Anonymous
I do not know what wrong with this
Erik
Ok go to dm
Anonymous
Solved it
Anonymous
Actually I have not updated pip freeze requirements.txt file command
Anonymous
That's why it's throws error
Erik
👍
Mad Man
How to install django in juypter notebook help needed!
Anonymous
Anonymous
And check whether Django is install or not
Anonymous
Troy Barnes
Guys this may be silly but I haven't used Django ever before
I wished to learn Django but I'm stuck
I need a system with registration page taking room number and email
The password link is sent to user through mail and user sets password though link
The user then logs in through room number and password using login page
I referred few tutorials and I can am not able to modify default user model
Anonymous
Anonymous
Rahulraj
https://docs.djangoproject.com/en/2.2/topics/auth/customizing/
Rahulraj
Андрей
Hi guys, i create view, which generetes and return file based on request.query_params here:
https://pastebin.com/RdA8dBh9
Андрей
And on my front page i want to download it, like this
https://pastebin.com/qpgH75dg
Андрей
Its okay, but , i want to handle json with error if something went wrong and create alert with error message
Андрей
I guess that more JS question, but maybe one of you can help me to solve that
Mad Man
Anonymous
Anyone knows Tornado Python channel, if knows please share channel join url
Manik
Anonymous
guys Hello I need help
Anonymous
anyone here for help me ? 5 munites
Anonymous
ok guys ı hace model and form py
Anonymous
on model datefield reay and form reasy to
class OrderCreateForm(forms.ModelForm):
calender = forms.DateField(
localize=True,
widget=forms.DateInput(format='%Y-%m-%d', attrs={'type': 'date', 'class': 'form-control'}),
)
class Meta:
model = Order
fields = ['day','first_name', 'last_name','phone', 'email', 'address', 'postal_code', 'city','big_city']
Anonymous
my form this
Anonymous
ı want to save to model
⟨ Simon |
Anonymous
yeah ı used nbow ım add to model datefiled and after ı create onfrm calend widget
Anonymous
ı wnat to say calender field
Денис
ı wnat to say calender field
Put this form to a template with a submit button.
That button sends a POST to some URL.
In your view connected to this URL you should get this form, like this
form = OrderCreateForm(request.POST)
and execute form.save() to save the form data into database.
More about this process here: https://docs.djangoproject.com/en/2.2/topics/forms/modelforms/
And please google before asking. This was the last time I googled that for you.
Anonymous
ı must commimt save beacur ı need user
Денис
Hey! There were no TG links!
Anonymous
Hey Guys, I need your help.
I have a model in Django app which I have accidentally deleted through DB browser for Sqlite. While running app it was throwing table not found error.
I have deleted migration files in app and made changes to the model and try to migrate again...
But it was still throwing error.
Anonymous
Anonymous
Yes it is development environment, so do I drop database it self and try to migrate again?
Anonymous
Anonymous
But what if this happens in client environment ? Is there any other way?
Андрей
Felipe
Hey guys! Hope you're all good! I've an model user with a boolean field. Always that this field was updated I've to put the user in a list, if bool=True or delete from list, if boll=False. I guees the better way to do it is using signals and check everytime that User was save. What do you guys think? Any other idea?