in the view of the query set.
Thanks
Gabriel
On Friday, 6 December 2024 at 00:28:38 UTC Ryan Nowakowski wrote:
> Add super at the top of your __init__ like this:
> <
> https://docs.djangoproject.com/en/5.1/topics/forms/modelforms/#changing-the-queryset
> >
>
>
> On Decem
Hi wise Django fellows
I have been trying to create a field that refers to a Foreign Key, which
needs to be filtered by the user. I feel this should be something common,
and I cannot find a way through it.
I found a solution in a forum and stack overflow and a tutorial that uses
the __init__ a
t;
On Monday 23 September 2024 at 15:18:52 UTC+1 Gabriel Soler wrote:
> Yup, that's the problem; I am trying to test something that comes from a
> third-party app called Allah. And I cannot get it right :/
>
> On Monday 23 September 2024 at 13:44:21 UTC+1 RANGA BHARATH JINKA wrot
logic.
>
> ### Conclusion
> For most scenarios in Django TDD, you don’t need to pass the CSRF token in
> tests since Django’s test client ignores CSRF by default. However, if you
> do need to simulate it, you can explicitly add the CSRF token from the
> response context to your form su
e_test/',self.data, follow=True)
self.assertEqual(self.client.session['linked'],"false")
response = self.client.post(reverse('account_login'),data=self.login_data)
#self.assertRedirects(response=response,expected_url='/')
#self.client.login(username='
Hi all,
Thanks for reading. I am at a stage where I am needing to do my testing,
and its is hard!
I managed to add a function after sign up and log in, using the signals of
allauth. As I am trying to add my tests as I work, I have added a little
change to the Session, to mark if my functions h
Hola, soy bastante nuevo también. Debug true significa que te va a decir
que problemas tiene tu código al hacer runserver.
Eso es normal y es bueno hasta que lo publicas.
La segunda parte tiene que ver con que cambiaste en urls.py. ahí tienes que
registrar el admin y alguna página. Como lo cambi
Hi, I am curious how do you deploy on a function base system with Django,
when you need to much to access the manage.py?
How do you deploy in vercel? Does it have a way to reach the command line?
Gabriel
On Friday 14 June 2024 at 15:17:34 UTC+2 Augusto Domingos wrote:
> Hey, sorry for the late
Dear all
I am doing my first deployment and using heroku. I am using the eco tier
and connected a postgres database.
When I try to run tests with heroku CLI it tells me I am not allowed to
create a database. As Django creates a database and destroys it after, I
wonder how you have solved this i
9 matches
Mail list logo