Tapdiq
hi everyone. i have question. how can i django admin redirect after login to another html ?
julesc00
Manuel
What do you suggest me the most for an API viewsets or something else
Manuel
Is it better to use viewsets or apiview
Manuel
What do y'all suggest me most
Agent Q
Agent Q
I guess depends on what you're trying to build.
Manuel
Ahh ok
Riswandi
https://del.dog/supaisosat.txt
Cat
I want to pool snowflake database connection. (in python, django)
Has anyone done this?
Anonymous
Hey, i want to store dynamically created image of matplotlib to get stored in my django project, where do you suggest me to store it and how can i send url or path of it in api
Tukhtamurod
Description of the problem: The MainPage model must have an SEO record. Therefore, the view checks to see if the .seo (FK) field has a record number. If not, it creates an SEO record, adds it to the MainPage record, and saves the MainPage. It seems that everything is saved, printed in the view, but when I send in the form with the context to the page, the MainPage record does not have an SEO record number. Also, when returning (POST method) when saving, it is clear that I receive a new object from the form.
Shorthand: dpaste
Full view in project: github
Add in the template following code
<script>
console.log({{form}});
</script>
And check what fields and values you are getting there, try to debug the code
Tukhtamurod
꧁❦ I'm Farooq ❦꧂
Is it possible to connect two database for django application..?q
Cat
Zinu
How and where to sync my project to another project environment.
Has anyone know this?
Firdaus
Harish
https://docs.djangoproject.com/en/3.1/topics/db/multi-db/
While using multi-db why do migrations cause it to replicate creation of tables across each database
Like if I create a my_custom_model_1 and model_2
Both database connections will have created both models
Even though it was specified that model_1 goes to first db and model_2 goes to second
Firdaus
Harish
Yes I'm using database routers
Harish
And have configured the same
Owolabi
Please guys 🙏🙏🙏 i need a Django and DRF dev to mentor me on a simple assessment task
Tenebris
Hello everyone, I ran into a problem, I'm trying to deploy a site on django to hosting, but error 500 appears, looked at the logs, and it seems like an error with the wisg file, I use python 3.7, django 3.0.9, if someone encountered such an error and knows how to write the wisg file correctly, please tell me
Owolabi
Tenebris
Timeweb
Tapdiq
hi everyone. i have question. how can i django admin redirect after login to another html ?
Owolabi
Timeweb
Can you share what's on the logs
Anonymous
When we call obj.image, how does it return the url, does it happens for every filefield object?
Remsha'`
Hi!
is there a data type in django for storing a time interval for example from 09: 00 to 12: 00 to call a client
or do you need to create your own table with
stat_time : DurationField
end_time : DurationField
Azat
Azat
Or DateTime field if you need to store datetime objects :)
Rajni
Hey guys, I'm stuck in one problem.
Anybody, please help me.
I have two fields in django model. I registered that model in admin.
Now I want to get values in second field(many to many field) based on selection of first field while creating new or adding new entry.
I tried lot of ways. But didn't get anything bright.
Tukhtamurod
Rajni
But save method will work after click on save button on django admin form. But I want on selecting field and before clicking on save
🏁 🏁 🏁
how to make sure that due to one error in a file, only the file in which the error is not started, and not the entire site?
M
do django supports any type field in model.py so that it can be datetype kind of selection. i see many topic on internet about date range picker with external JS .. wondering if django don't have an in built one
M
Camille
Does django use MVT or MVC architecture?
cj
Camille
Model View Template or Model View Controller?
cj
Camille
🤦♀Bro
cj
🤦♀Bro
listen guy... django doesn't use/follow neither MVC neither MVT
Camille
Anyone else with a different opinion?
cj
Anyone else with a different opinion?
why don't you read Django documentation? they said there, Django doesn't follow MVC (neither MVT)... are you gonna argue against Django's core developers?
Ghorz
cj
cj
cj
https://docs.djangoproject.com/en/3.1/faq/general/#django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names
Ghorz
The argument isn't necessary, as long as one understands and use the framework to achieve a result
Ghorz
꧁❦ I'm Farooq ❦꧂
cj
MVT
read the previous messages please
Uday
so im being provided with image url instead of image on post request, how can i get the image from the url and save it in the serializer?
Uday
矢田
hey guys, i am having problems with the pinax project
矢田
is anybody having problems with old dependancies?
Anonymous
How can I search from two models and return the results in django rest framework
Anonymous
Using listapiview
Anonymous
Is it good to join to override get_queryset method of view and join two querysets using itertools.chain
Anonymous
Is it a good approach?
Sai
Anonymous
Sai
Hey any good tutorial to integrate azure.
Sai
I googled for yourself and I swa this quick video. Thanks I also learner something new. Cheers!!
Navya
When I'm doing Django-admin startproject newchat
It is showing error please help me
Navya
Can you tell me how to download django files
Doragonsureiyā
Can you tell me how to download django files
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
^C^C^C^C^C^C^C^C
Hi friends:)
how can i get all pull requests?
f'https://api.github.com/search/issues?q=type:pr+is:public+author:{}&per_page=300'
it is right?
Navya
Doragonsureiyā
Okay
Looking for Django tutorials? you can follow these three recommended ones:
* Official documentation and tutorial
* Tutorial from MDN
* Tutorial from django-girls
Navya
Doragonsureiyā
Navya
*Django-admin startproject newchat*
Navya
After this there is file downloaded called manage.py
cj
cj
django-admin startproject <foobar>
doesn't download files from anywhere
Navya
What they do then?