S
Hi! can anyone tell me how to use avg in annotate expression F field?
S
or only the value of Avg?
Suresh🌞
I have DJANGO total topics covered training videos Anyone wants message me
AMIT
Yes
Mohsen
Hello guys Im new in django I am trying to use a Persian/Arabic slug but I get internal error in my host Slug save nicely but when I trying to see article single page I get this error `Internal Error The server encountered an unexpected condition which prevented it from fulfilling the request.` Everything is work good in my localhost
Krishna
Bro I loved to learn django can any body help me buy providing docs or video it will be a great help thank you
Irteza
To get simple html skeleton in vscode is not working I tried ¡ And Html:5
Swapnil
I don't know how to get the primary key as parameter into above function. Please help
Swapnil
Aneesh
How to update a foreign key field
Aneesh
?
Doragonsureiyā
How to update a foreign key field
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
0x31c4ae1
!search
Don't search?
Hikmet
Hi everyone! During registration process I wanna check if user with given username already exists or not, but dynamically. Means when I type some username, then it shows red line or smth like that, not after I submit. How can I implement that in django?
Anonymous
Unable to acess admin page. It shows a page with "admin does not correspond to anything" in it
Anonymous
Please help
Giorbis
Do you create a superuser?
âshîsh
I think u removed admin URL from project>urls.py
âshîsh
Check settings.py and Installed apps
Anonymous
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('', include('main.urls')), path('admin/', admin.site.urls), path('tinymce/', include('tinymce.urls')), ] this is my urls.py
âshîsh
Add 'django.contrib.admin' and its dependencies - django.contrib.auth, django.contrib.contenttypes, django.contrib.messages, and django.contrib.sessions - to your INSTALLED_APPS setting.
âshîsh
its already there
Then just create a new Django project and compare with Ur code for the admin problem
Anonymous
okay will have to see I am actually very new
âshîsh
May be problem with django version (out dated) having commands for new version (unsupported)
Anonymous
If i DM you some of my codes,can you look into it?
Anonymous
How should we design a test framework
Anonymous
https://del.dog/yretenurus My code for views.py
Anonymous
https://del.dog/fucogrysig My code for urls.py of the app
Hikmet
Thanks!
Akhil
Can anyone tell me why my css file not affecting my index page
Akhil
Iam trying to change my css attributes but it's not working ... It's only showing that Elements which I first created
Yash
Hey , I want to upload my pandas dataframe to database , how this could be achieved ?
Yash
I m right now using a raw python script to do this
Yash
But I want to do this inside django project
Anonymous
I m right now using a raw python script to do this
U can use sqlalchemy in both places
Anonymous
But I want to do this inside django project
If you have a full n final structure set for output dataframe I'd suggest creating model with django orm or if you don't wanna create model... just make a connection with sqlalchemy and run df.to_sql
Yash
Ohk I will try and let you know ..m
Mayank
Hii
Mayank
I am unable to change my css background image in django
Mayank
Someone please help me. I changing the file name and even replace the file but nothing happens.
Mayank
I spent 1 hour in this but I didn't succeed can someone please help me
Anonymous
I spent 1 hour in this but I didn't succeed can someone please help me
Did you clear cache? for example in firefox use ctrl+f5 to clear cache and refresh
Anonymous
someone can help me? i cant write the code to populate database using bulk with relations, you can see more in my question in the reddit: https://www.reddit.com/r/djangolearning/comments/lhq4f4/how_to_use_bulk_with_csv_and_related_model/
Yash
Anonymous
how to add relation in model instanciation? for example, i have: Game( id=register_row_number, name=game_name, year=year, season=season, city=city, sport=sport, event=event, medal=medal, ) i cant use related_model=related_instance, so, i try use Game().related_model.add(related_instance), but not work, because the Game instance hasn't been saved to the database yet, because I'm using bulk, and it doesn't save anything until I run the bulk ... but I need to add this relation before running the bulk
Anonymous
Hey I simply want to make an application for uploading excel data Into database...excel headers are fixed and I want to load employees data..my query is how can I build this application such a way that when Insert duplicate record..my app should throw an error...but when there is an update in name and dob, my app should take that update...in this app I also want to add validations such as employee can't have more than one spouse or employee can't add add more than 2 parents or 2 child..I work in insurance and managing employees data is little difficult hence planning to make this app.any suggestion will be welcomed..thanks
Chikya
Today One company Give me the one task on Django Rest Framework.within. 2 3 days I want To Complete that task. Can Anyone Help me to soled this problem..
Anonymous
What is the problem? Ping seperately
Chikya
I don't know anything About Django framework because I am from Cloud department.
Anonymous
Send the project
Anonymous
Anonymous
i'm thinking that youre talking about save form method
Hikmet
Hey guys, how can I obtain data from previous post request in next ongoing url? I have two views, and after making POST request for 1'st view, it redirects to 2'nd view. I want to access the data from post request of view1 in second view. How can I do it?
Mirco
I know how to do it with HttpResponseRedirect() function using kwargs argument , but it is for small amout of attributes, i want to pass about 5-6x argument
Who told u it's for small amount of attributes args and kwargs are for "not defined" amount of params to pass
Mirco
You can pass 100 attrs if u prefer
Hikmet
Who told u it's for small amount of attributes args and kwargs are for "not defined" amount of params to pass
I thought about that, but then I saw that I want to pass password of user into the next view, but I don't want to password to appear inside url, as it requires
Hikmet
wtf ? Maybe you are going wrong from the beginning
Well, the need is this: when registering, I ask the user for data: username, phone number, mail and password. This is the first view I talked about. And in the second one, a one-time code is sent to the phone and the registration is thereby confirmed. But in order to save the user in the second view, I need data from the post request from the first view where I request registration data
Mirco
Well, the need is this: when registering, I ask the user for data: username, phone number, mail and password. This is the first view I talked about. And in the second one, a one-time code is sent to the phone and the registration is thereby confirmed. But in order to save the user in the second view, I need data from the post request from the first view where I request registration data
Nope, you can save the user in the first view by keeping is_active to False and then in the second view when you finish registration and the confirmation code is ok you can make it active otherwise you can remove it at all So you don't need any strange flow and you can just keep trace of its id instead of leaking info