Anonymous
Hi I couldn't create django app in Windows 10. Getting error
Anonymous
Anyone help me
Anonymous
Which book is best for developing django app in Windows 10? Pls suggest me
👻
Django Girls - start your journey with programming https://djangogirls.org/
Anonymous
Okay
ken
anyone working on some kind of document management system and would like to share?
Doragonsureiyā
anyone working on some kind of document management system and would like to share?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z" Just ask about your problem directly! With ~80,000 people here, the probability that someone will help is pretty high. How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
Haleem
One Question Please.... for the Select/Choices Field, is it a good practice to keep same for both value and name like [('First Value', 'First Value'), ('Second Value', 'Second Value')] instead of [('fv', 'First Value'), ('sv', 'Second Value')]
Faisal
How can i modify a style of template which're generate with django.contrib.auth.forms.
By creating Same name template with correct directory structure and that template override the previous one
Doragonsureiyā
Thanks It worked Thanks 🙂🙏
You're welcome! 😊
Vikas Singh
Failed to build cryptographic
Haleem
Yes, you can do that but its upon you if you want to save the same value in db vs which you have used for human readable string. Generally we use short abbreviations for the choice or numbers
Yes exactly, normally we use short abbreviations. But I am thinking if we keep both same, its good for readable in admin panel and in database plus less code.. Also there is no issue in doing it.
Haleem
Yes, we can but the only problem is you will always have to write the whole choice in every queries
Normally I am calling it using a function so that will be fine. There is any issue in get or post ?
Anonymous
Normally I am calling it using a function so that will be fine. There is any issue in get or post ?
Again you will have to send the whole choice in post req. , other then than that nothing...
Haleem
Again you will have to send the whole choice in post req. , other then than that nothing...
We are just sending a particular select value in the Post. Not the complete list. Do you think it will consume anything ? I just want to make it as a easy readable code in the admin panel and in db.
Anonymous
I need a teacher for free of charge)
Doragonsureiyā
I need a teacher for free of charge)
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Asadbek
Reverse for 'index' with arguments '('',)' not found. 1 pattern(s) tried: ['$']
Asadbek
i have this error
Mirco
With pastebin!
Asadbek
ok
Paŭlo
Hello guys In DRF, can I do somthing like this? SomeModelSerializer(data=[], many=True)I have a view which in request.data can have a json representation of a list of SomeModel, but that list can be empty. If its empty, the serializer raises an exception
Asadbek
Share the code
https://pastebin.pl/view/7ccddc83
RENGANATHAN
what can i do
RENGANATHAN
from django.shortcuts import render from django.http import HttpResponse # Create your views here. def home(request): return render (request, 'index.html', {'name':'Rengan'}) def sum(request): val1 = request.GET["num1"] val2 = request.GET["num2"] res = val1 + val2 return render (request, 'result.html', {'result' : 'res'})
Asadbek
Reverse for 'index' with arguments '('',)' not found. 1 pattern(s) tried: ['$'] Code👇 https://pastebin.pl/view/7ccddc83
RENGANATHAN
it is not brother
RENGANATHAN
ok brother
RENGANATHAN
ok
Haleem
how to return the multiple field value without tuple which we normally use like values_list('FirstField', flat=True) but I want to return two field data using values_list('FirstField', 'SecondField', flat=True). Its giving TypeError that flat cannot be used for multiple values. I am using this query set in ModelChoiceField.
Prashant
How mature fastApi is to replace django in production?
Mirco
How mature fastApi is to replace django in production?
they are just different, it's not about how mature it is
Mirco
it's like Flask vs Django, they are different and you should choose one based on the project needs
Vikas Singh
When we run python manage.py migrate command
Vikas Singh
In database only 3 tables stored
Vikas Singh
Why this happend
Vikas Singh
???
Mirco
if u add more context we can understand better
Vikas Singh
When we run python manage.py migrate command
Vikas Singh
Only 3 tables stored in database
Vikas Singh
Total 10 tables should be stored in db
Mirco
do u have 10 models ?
M
i have a url which is showing not found even i have defined and coming in to debug .. anyone can suggest please what is wrong show_error_modal/<title> [name='error-modal'] refresh_plotly [name='refresh_plotly'] show_plotly_chart [name='show-plotly-chart']
M
i am just hitting http://127.0.0.1:8000/refresh_plotly/
M
urls.py is path('refresh_plotly',views.refresh_chart,name='refresh_plotly'),
Naol
are you using apache or the shipped with web server
Mirco
i am just hitting http://127.0.0.1:8000/refresh_plotly/
remove the trailing slash or add it into the urlspattern
RENGANATHAN
How to set static files in django
RENGANATHAN
I mean CSS files
RENGANATHAN
JavaScript files
Doragonsureiyā
Hey guys, how to config LDAP login for my Django webapp?
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
Doragonsureiyā
How to set static files in django
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
John
Is its possible to convert django model to Raw SQL queries ?
M
remove the trailing slash or add it into the urlspattern
yes thank you it worked problem in browser even i don't type it was taking i tried in icognito and it worked thank you
Tony
Alright kul
makeover
Can anyone suggest best YouTube channel for learn complete djanjo with projects? english are Telugu
makeover
Python life in telugu
I think those channel not a free of cost bro🤔
Jamal
Is anyone done a project for supermarket, or any one come across such application based on django
StarLorD
Plz suggest me some projects with explainations
John
Yes
so what the process