Suraj
âshîsh
S
Hi! can anyone tell me how to use avg in annotate expression F field?
S
or only the value of Avg?
Mister
Suresh🌞
I have DJANGO total topics covered training videos
Anyone wants message me
AMIT
Yes
AMIT
AMIT
Shubham
snk
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
TM
Swapnil
Aneesh
How to update a foreign key field
Aneesh
?
Mirco
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
Anonymous
Anonymous
â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.
Anonymous
â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
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 ?
Anonymous
Yash
I m right now using a raw python script to do this
Yash
But I want to do this inside django project
Anonymous
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
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
Ayobami
Naman
Jerome
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
Look in Django doc: save(commit=false) , it allows you to delay save while defining your instance, if that helps.
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?
Hikmet
Mirco
Mirco
You can pass 100 attrs if u prefer
Mirco
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
Hikmet
Mirco
Doragonsureiyā