PageView

Ask a Question


Have a question about Django, Web development or anything related to tech? Go ahead and ask it!

The best questions will be featured in future posts in a Q&A format.



Ask Vitor #4: WordPress or Self-Made Blog?

Ask Vitor #4: WordPress or Self-Made Blog?

Aviral Tiwari asks:

Is this blog made through Django or some blog engine like WordPress?

Read more



Ask Vitor #3: Mocking Emails

Ask Vitor #3: Mocking Emails

Phillip Ahereza asks:

I’m writing unit tests for my django app and I was wondering if there are any packages for mocking email or if there is any way I could mock sending and receiving of emails.

Read more



Ask Vitor #2: How to dynamically filter ModelChoice's queryset in a ModelForm?

Ask Vitor #2: How to dynamically filter ModelChoice's queryset in a ModelForm?

Michał Strumecki asks:

I just want to filter select field in a form, regarding a currently logged user. Every user has own categories and budgets. I want to display only a models related with a currently logged user. I’ve tried stuff with filtering before is_valid field, but with no result.

Read more



Ask Vitor #1: Getting form data to appear in URL and for use in the next view

Ask Vitor #1: Getting form data to appear in URL and for use in the next view

Devon Moore asks:

I want to have the user specify a date in a custom form. This date will append the current URL with the date value path/YYYY-MM-DD/ I then need to capture the date and use it to filter data from the database to display that date’s data.
I’m using class based views and for the report I’m using generic view since this view is a custom report I’m building using multiple db models.

Read more