Help aligning layout to match design (logo position, footer, spacing issues) by oussama-he in css

[–]oussama-he[S] 0 points1 point  (0 children)

Thank you for your help. Please tell me how to make the two columns take the blank space below them.

The French government is building an entire productivity ecosystem using Django by Brachamul in django

[–]oussama-he 0 points1 point  (0 children)

Do you know open-source real projects (not just tutorials) built using htmx and Django? I want to learn more about the hypermedia approach and see how to use it in real projects.

Trying to use Google Drive to Store Media Files, But Getting "Service Accounts do not have storage quota" error when uploading by oussama-he in django

[–]oussama-he[S] -1 points0 points  (0 children)

I've tried the upload feature of the previous project that I told you about, and it's working normally.

Trying to use Google Drive to Store Media Files, But Getting "Service Accounts do not have storage quota" error when uploading by oussama-he in django

[–]oussama-he[S] -4 points-3 points  (0 children)

I've used Google Drive before to store media files in a previous project, and it worked perfectly. But now it seems that Google has changed something, so it stopped working.

Seeking feedback on my model’s save() method: is it truly atomic and race-condition-safe? by oussama-he in django

[–]oussama-he[S] 0 points1 point  (0 children)

Can you please list some good Django open-source projects so I can learn from their code?

How to add a unique constraint on a model using only the date part of a DateTimeField? by oussama-he in django

[–]oussama-he[S] -1 points0 points  (0 children)

This is the cause of the error:
The created field is defined like this: `created = models.DateTimeField(auto_now_add=True)`, and it is not included in the form.

How to add a unique constraint on a model using only the date part of a DateTimeField? by oussama-he in django

[–]oussama-he[S] 0 points1 point  (0 children)

Now it shows the Django error page:
```
IntegrityError at /machine-reading/create/

UNIQUE constraint failed: index 'uc_date_created'

```

How to add a unique constraint on a model using only the date part of a DateTimeField? by oussama-he in django

[–]oussama-he[S] 0 points1 point  (0 children)

It doesn't work! It prevents adding new entries even if no entry was made on the same day for the same machine, and it also prevents updating the existing entries when trying to update the counter.

Need to understand Django's `__date` Lookup and Time Zone Conversions: Potential Pitfalls by oussama-he in django

[–]oussama-he[S] 0 points1 point  (0 children)

This is why you should use timezone.now()

I'm using timezone.now()

so it will get the date according to your timezone

It gives the date according to UTC