Doragonsureiyā
Hello guys, which Django lesson is the best in the YouTube? Thank you for replying as soon as possible
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Dima Mayfeed
Hello, how i can do multiple upload images in base ?
Saddam
Hlo good morning everyone
Saddam
I want fetch records between time.is the possible?
Saddam
If anybody knows please share me the code
Saddam
How to get records between time? For example time1 12:30 and time2 is 2:30 ... User given time is 1:00 I want to check user given time is in between or not
Saddam
How to do explain me?
Hian
How to do explain me?
User_time_in_dbgte=time1 and user_time_in_dblte=time2
Saddam
I didn't understand
kichu
Hello
Doragonsureiyā
Hello
Please move your "Hello" and other social talk to @PythonOfftopic.
Samprita
Hello everyone... I am trying to reduce the time of loading for APIs.... I have already used chache method... Any suggestions?
Д
Hello everyone... I am trying to reduce the time of loading for APIs.... I have already used chache method... Any suggestions?
first thing is to know what's causing the delay - don't optimize what's not worth optimizing
Samprita
Thank you for suggestions!!! 😁
Samprita
Yes yes 😅😂
Нормуродов
Hello everybody Where can i get a Python Backend Developer ROADMAP, in order to learn things with the order ?
ky
<div class="form-group col-md-3 mb-0"> {{ form.accounttype|as_crispy_field }} <div class="{% if form.accounttype.errors %} invalid{% endif %}"> {% if error in form.accounttype.errors %} <p class="help-block">{{ error }}</p> {% endif %} </div> </div>
ky
need to display only name
ky
this is select option
ky
this display code and name
ky
like C - Customer
ky
need to display only CUSTOMER
ky
accounttype = models.ForeignKey(LookUp,limit_choices_to={'keyname': 'AccountType'},related_name='OperationsTypes_accounttype', blank=True, null=True, on_delete=models.PROTECT, verbose_name=_("Account Type"))
Alexandr
Hi all need help! How i can convert list with dickt in list or str? I have now [{'яйца, шт': 2, 'молоко, л': 0.1, 'соль, ч.л.': 0.5}]
Д
Hi all need help! How i can convert list with dickt in list or str? I have now [{'яйца, шт': 2, 'молоко, л': 0.1, 'соль, ч.л.': 0.5}]
mix the milk, eggs and salt, add some flour and you have a nice batter for crepes — also it's not a django but a python question - as for the answer itself, dictionaries have three funtions called .keys() .values() and .items() - use .items()
Harry gorilla
db.sqlite3 file should also be in the .gitignore file right? I don't see any reasons why i should import my database on github
🌀
. I want to submit data from page1.html file to database after click submit from page2.html . I am using django . How can I??
Д
db.sqlite3 file should also be in the .gitignore file right? I don't see any reasons why i should import my database on github
yeah. don't add the database into the repository. the migrations should be there though, once you start making changes to a database with real data.
Д
What's the importance of making migrations available to the public?
not the public necessarily but once there is real data in the database, yours or theirs, the migrations are the way to make changes to the 'live' database
Harry gorilla
Thanks
Д
I always delete the full database and all the migrations when I CAN
Д
but if there's data in there already that can't be deleted, then migrations have to be used
Harry gorilla
And is it possible to revert back to previous commits from git locally?
Д
And is it possible to revert back to previous commits from git locally?
well git can do anything — but if you're asking whether it's possible to "unmigrate" that's a separate issue
Andrej
Is it a good combination to use Django on top of Kubernetes? Has someone best practice experience?
Harry gorilla
And is it possible to revert back to previous commits from git locally?
If it can do this, this means it will delete some of my codes and put me back to where i want to be
Prathmesh
How to create worker modal in authentication and authorization in django admin ??
Shubham
How to create login page in django
Hey It's
Does anyone have experiance, how to upload Image DRF (in my case it's avatar for profile user), using the library (gravar maybe or smth?)
Ulug'bek | Python Developer
Hi guys. I was working with rest-auth at Django rest freamwork. the password reset part did not work. path from stackowerflow path (r '^', include ('django.contrib.auth.urls')), I learned to add this path. The situation in the picture is changing when you enter the email address provided. no space is provided to update the password. how to fix it. Please help if you know. My YouTube and Google didn't help either
Альберт
Hi Django Human
Doragonsureiyā
Hi Django Human
Please move your "Hello" and other social talk to @PythonOfftopic.
Shubham
In django how to create login form
Shubham
With all views,model and template
Cat
Hello Folks, I am using celery in my Django project. Celery runs the task daily automatically. Does any one knows how to notify/send email when celery is stopped.
Алексей
Hello everyone, can you recommend some tool for profiling and load testing a django application?
Axror
Hi guys. Who did postgresql connect to django on aws server. Pls, help me.
Ulug'bek | Python Developer
excuse me..? this is from the urls.py which is meant for routing, correct?
yes it is urls.py(main urls). this path mean password-reset
Д
yes it is urls.py(main urls). this path mean password-reset
so you want the e-mail to be part of the URL?
Ulug'bek | Python Developer
so you want the e-mail to be part of the URL?
no. I want come field for password-reset. but now it come only wrong message
Д
no. I want come field for password-reset. but now it come only wrong message
do you know what the urls.py is for? that is for how to route things from the browser to django
Д
yes i know
are you sure the fix is in urls.py?
Ulug'bek | Python Developer
do you know what the urls.py is for? that is for how to route things from the browser to django
maybe I can't explain it to you properly because I don't know English well. perhaps I was asking the question incorrectly
Д
maybe I can't explain it to you properly because I don't know English well. perhaps I was asking the question incorrectly
yes, I'm not sure what the problem is. I don't know if urls.py has ANYTHING to do with your problem. you might be trying to solve the wrong problem, or from the wrong place.
Axror
What is the question?
Postgresql 5432 port cannot connect. And cannot create db on postgre
Антон
Hi there! I use django+mongodb in project and have data with leading whitespaces, that make sorting with OrderingFilter incorrect Does someone have any idea? For more information, I have created the topic on stackoverflow: https://stackoverflow.com/questions/71665200/how-to-trim-strip-leading-whitespaces-from-stringfield-for-list-view-in-django-m
Shabbir
How can I make a Progressive Web App with django??
Doragonsureiyā
How can I make a Progressive Web App with django??
These single steps will help you a lot: Step 1️⃣: Open a browser Step 2️⃣: Write down https://google.com or https://duck.com and press Enter Step 3️⃣: In the search box, write down the same words you asked here Step 4️⃣: Read the first results
Yury
Is there a library to generate django models code and possibly DRF controllers from OpenAPI spec, NOT the spec from the code? Googling gives the opposite.
Yury
I think about this workflow: 1. Design an API 2. Create mockups and verify interfaces between front-end and back-end devs 3. Generate service code, which, in turn, can generate the same documentation. 4. Work with code: implement logic and so on. Documentation stays maintainable, because it's now a part of code. The initial documentation serves as the point where you're to design, not implement. And we all know that design comes first, are we? 😉
Д
I think about this workflow: 1. Design an API 2. Create mockups and verify interfaces between front-end and back-end devs 3. Generate service code, which, in turn, can generate the same documentation. 4. Work with code: implement logic and so on. Documentation stays maintainable, because it's now a part of code. The initial documentation serves as the point where you're to design, not implement. And we all know that design comes first, are we? 😉
the only code you can realistically and reliably generate from an API spec for Django is 1 view class per view with 1 model per view, with 1 serializer per model. there can't be any relations between the models or serializers. if that's why you want to generate, just create some shortcuts\macros in your IDE to copypaste code.
Д
there is also lost the whole idea of TDD or BDD if you start creating code from the specs like that.
Д
if you want to design the API first, okay, but then you can write tests first. don't let some dumb automation create classes you don't want.
Yury
But I can generate relations between models by using models inside spec. And yes, you're right about the simplicity of initial result, still it looks like a starting point for a backend app when you have an API as an input.