Troy Barnes
Alpha numeric value for room number
Anonymous
Make a new Django project or share your error traceback
the traceback shows ModuleNotFoundError which is obvious. I know I can delete the files under migrations folder but that is not a good practice and also creates issues with the database on the server side
Troy Barnes
Custom user model
Any link or source would be very helpful
Anonymous
Alpha numeric value for room number
Username is also alphanumeric
Ghorz
Alpha numeric value for room number
Dockduckgo.com startpages.com Google.com
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
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
Anonymous
Traceback also tells you where it triggers the ModuleNotFoundError. Hence why it's called traceback.
I do understand this. I can follow the traceback error. I just wanted to ask whether I can get around this issue without deleting the migration files?
Anonymous
Where do I edit it?
You didn't read the Django docs for auth?
Anonymous
I do understand this. I can follow the traceback error. I just wanted to ask whether I can get around this issue without deleting the migration files?
I didn't say delete the files. But if you think it's the migration files are the problem without sharing us the details, then I can't help
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
https://pastebin.com/PNLV6gPZ
I have removed the markupfield package and replaced it with another package
Erik
When I deploy my project it's gives that error
Can you give the more information.
Anonymous
Can you give the more information.
I am texting you screenshot
Erik
No module named crypto
Maybe you have different Python version or some ?
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
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
And check whether Django is install or not
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
Rahulraj
https://docs.djangoproject.com/en/2.2/topics/auth/customizing/
Андрей
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
Anonymous
Anyone knows Tornado Python channel, if knows please share channel join url
Aamin
**Very IMP question******* What is the ORM to SQL query generation time? does it affect performance on database fetching.
In my experience the time to convert the Python query syntax whatever the orm is to SQL is pretty quick........the latency is always lies with the DB design and data model. In some cases writing a stored procedure is more helpful than the transactional query itself. But it totally depends on the scenario and the system architecture.
Anonymous
guys Hello I need help
Anonymous
anyone here for help me ? 5 munites
R
anyone here for help me ? 5 munites
More than 400 online users, just ask
Anonymous
ok guys ı hace model and form py
⟨ Simon |
More than 400 online users, just ask
that's just people that have Telegram open
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
R
that's just people that have Telegram open
I know, but I mean that he can just drop the question directlly instead of asking if someone is here for help
R
ı want to save to model
Use the form with a Create/Update view then
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
Yes it is development environment, so do I drop database it self and try to migrate again?
Anonymous
yes, give it a try.
👍 it's working. Thanks for your help.
Anonymous
But what if this happens in client environment ? Is there any other way?
Anonymous
But what if this happens in client environment ? Is there any other way?
then u need to add manually which part is missing using Shell. e.g. Mongo Shell or Posrgres Shell. or whatever db client u used if it possible.
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?