How to change the prefix of a formeset's empty_form?

2022-10-19 Thread Hércules Lopes
I'm working on a page with nested formsets, it works fine with static inline formsets, but when I try to create forms dynamically I get a problem. The prefix generated for a nested formset is its parent's one + its own, like: student-0-address-0. But for empty_form both are just '__prefix__, li

Warning about filtering queryset in ClassBasedViews

2022-10-19 Thread DaniBoy
Following the example in https://docs.djangoproject.com/en/4.1/topics/class-based-views/generic-display/#viewing-subsets-of-objects I try the following class BookListView(ListView): model = Book queryset = Book.objects.filter(publication_date__lte=timezone.now()) I found that this code

Django devs, reverse job board

2022-10-19 Thread tomaž Ovsenjak
Greetings! I present to you a new platform for you to find django gigs/job https://djangodevs.com You can: 1. create developer profile 2. show off your work 3. get contacted by businesses Join now at https://djangodevs.com Br -- You received this message because you are subscribed to th

Re: Job Request As A Software Developer

2022-10-19 Thread tomaž Ovsenjak
Greetings! I present to you a new platform for you to find django gigs/job https://djangodevs.com You can: 1. create developer profile 2. show off your work 3. get contacted by businesses Join now at https://djangodevs.com Br On Friday, September 2, 2022 at 4:50:48 AM UTC+2 go...@gobidas

Re: PLEASE HELP ME KNOW HOW TO ARRANGE INSTALLED APPS.

2022-10-19 Thread johnpaul mulongo
You need to give the django apps you created unique names (try to see them as separate entities), in your case this would be 'core' and 'store', then you need to add them to the INSTALED_APPS list like so in the settings file: [..., 'core.apps.CoreConfig', 'store.apps.StoreConfig', ] On Wed, Oct

Re: Combining django apps

2022-10-19 Thread Jun Tanaka
Also, some website says something like INSTALLED_APPS = [ 'todo.apps.TodoConfig', You say, INSTALLED_APPS = [ 'todo', I am confused. Which is proper? And the difference? 2022年10月19日水曜日 13:49:41 UTC+9 eupaulo...@gmail.com: > First of all, you need to add all your apps in INSTALED APPS

Re: Combining django apps

2022-10-19 Thread Jun Tanaka
Thank you for your answer. I can not see below "Let me show you an example". Probably, some of last sentences got cutoff. And I want to see an example. 2022年10月19日水曜日 13:49:41 UTC+9 eupaulo...@gmail.com: > First of all, you need to add all your apps in INSTALED APPS into the > project > set