Ayy
Make USE_SSL True in settings.py (key name might be slightly different)
Ganesh
Why After submitting the page still the page is not refreshing
Nikolay
Hey if we don't use upload_to argument in filefield will It work?
by default upload_to=None, and i dunno how it works, maybe it doesn't save at all or save files in the root directory of the project
Ganesh
there might be issue with submit button
<input type = "submit" value = "Submit">
Ganesh
This button I given
Anonymous
Did you use form tag?
Shivam
In django, How to generate a weekly and monthly reports from daily basis entry of user expenses ?? Please help me out with this!
Mirco
So how to do that??
Have a look on Django doc about Aggregation queries
Mirco
And you will understand how to do it
Shivam
I have try using django filter but it didn't work out
K
Can Anyone pls help me out ?
K
I m getting the error maximum recursion depth exceeded while calling a python object ,while running python manage.py runserver command can anyone pls help me?
Mirco
I have try using django filter but it didn't work out
Study the Aggregation topic on doc and try to play with it When you are so stuck, share the query you are trying to do and people can help u better
Mirco
!search
Doragonsureiyā
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 firsts results
Anonymous
How can I solve this error "no such table" as the table is already created?
Anonymous
Without deleting any files
Anonymous
I have tried run syncdb n make migration n migrate also
Ganesh
It will create table
Ganesh
Try one time and see
Anonymous
Ganesh
Is there any other way?
I think it may works
Anonymous
By using sql commeds
Anonymous
I think it may works
Yeah it works i think...Im searching is there any other way
Ganesh
Yeah it works i think...Im searching is there any other way
You know how to refresh a page after submitting the form
Anonymous
You know how to refresh a page after submitting the form
U mean reset the data in the form after submitting the form?
Ganesh
Ya the form is submitting and data is stored in data but the page is not refreshing
Neeraj
Python manage.py makemigrations -- fake
python manage.py makemigrations python manage.py migrate Run this two command in terminal then runserver.
Neeraj
python manage.py makemigrations python manage.py migrate Run this two command in terminal then runserver.
Before this make sure you created you model in right way and registered also in admin.py
bikrant
Anyone using flutter
bikrant
I have a doubt?
Kotlina²⁰22
Anyone using flutter
I used before but am not perfect in but I can introduce a gp abt this for you .. want it ?
bikrant
Yes sure
Knight
How can I get the latest data of each filtered row. Like: obj Model.objects.filter(id__in=list_of_ids).latest()
Knight
I want to get the query set wich has filtered and latest data of each id
Knight
Thanks in advance!
Knight
result = Model.objects.filter(id__in=list_of_ids).latest('updated_at')
Knight
This is what I have tried so far
Anonymous
Please i need someone to recommend a free hosting website that support domain for django i really need this now
Nimesh
Hi all, I need one help i want to get all values in one key from django rest api Current output I am getting
Nimesh
{ Name: Asia } { Name: North America } Expected output: { Name:[Asia, North America] }
Nimesh
Can someone please help me how to get this data
Mindru
def mergeDict(dict1, dict2): ''' Merge dictionaries and keep values of common keys in list''' dict3 = {**dict1, **dict2} for key, value in dict3.items(): if key in dict1 and key in dict2: dict3[key] = [value , dict1[key]] return dict3 # Merge dictionaries and add values of common keys in a list dict3 = mergeDict(dict1, dict2)
Neeraj
Help with this please
Heroku free hosting
Shanky
i am sending email i have configure SMTP i am using my gmail account. I have also on less secure option. But i am still getting SMTP error
Shanky
can any one guide me in this why i am getting this.
Neeraj
Pythonanywhere also good
Yes pythonanywhere is also good option, but only for 3 mounths its limit. While Heroku is unlimited.
Neeraj
Yes Heroku is unlimited time Pythonanywhere is for only 3 month then after they ask for payment and plans.
Dharmil
in init raise TypeError("%s() got an unexpected keyword argument '%s'" % (cls.__name__, kwarg)) TypeError: Product() got an unexpected keyword argument 'proudct_name'
Dharmil
How can i solve it
Dharmil
Okay i will improve
Root
Okay i will improve
Hey check name proudct_name
Root
Hey check name proudct_name
I think there is error in name you used for defining model and then in implementing it
Roman
Hi guys I how can I do it , I need to order DESC then take limit 10 and order it ASC ?
Bunty chhatri wala..
Hi guys I how can I do it , I need to order DESC then take limit 10 and order it ASC ?
Id Data is coming from Db? Then use meta class and set Ordering in that. And in views u can filter by using order_by and limit can be set by [ :10] in the query..
Anonymous
Mail send code for template pls
Anonymous
Schools management System Relate the below models: 1. School 2. Class 3. Teacher (User model) 4. Student 5. Subject Note: 1. Use Postgres Database 2. Each student must be mapped to a single class 3. Single Teacher can be mapped with multiple subjects 4. Do not map Teacher - Student models 5. Have created_at and updated_at fields in all the models to record when the row is updated or created (You should not explicitly modify these fields in the views or serializers). 6. Follow RESTFul standards while designing APIs To Do: 1. Write services that provide basic CRUD operations (GET, POST, PUT, DELETE) for all the models Additional APIs needed apart from basic CRUD: 2. List classes along with the list of students in each class E.g. [ { "id": 1, "name": "class 1", "students": [ { "id": 1, "first_name": "Firstname", "last_name": "Lastname" }, { ..., ... } ] }, ..., ... ] 3. List students for a particular teacher and class
Harsh
Can anyone share an adb advanced django project to study and learn?
Anonymous
Can any one tell how to child serilizer and serilizer validation
Shahed Khan
Hello, can anyone give a good articla or tutorial about django with ajax dropdown (onchange) method
Nayan
Hi can anyone help me how can i select date from filter ( start date - end date ) basically i want date selector widget and want to apply changes to the tables below . for showing data in tables and filter i am using class based view . Can some one help me or what can i refer to to select date which i can used with class based views
Anonymous
Can anyone share an adb advanced django project to study and learn?
checkout creative commons backend repo on github..
Anonymous
link
https://github.com/creativecommons/cccatalog-api you could have googled it btw