1
5
Django 6.0 released (www.djangoproject.com)
2
5
3
4

In a general push for removing Microsoft, Google and any US or other non-EU dependency, the French government has been rapidly creating an open source set of productivity tools called "LaSuite", in collaboration with the Netherlands & Germany.

LaSuite is allegedly being developed using Django.

https://lasuite.numerique.gouv.fr/

4
2
Why I Love Django (slicker.me)
5
8
6
4
7
14
Happy 20th birthday Django! (www.djangoproject.com)
submitted 6 months ago by nemeski@mander.xyz to c/django@programming.dev
8
4
9
10
submitted 8 months ago by neme@lemm.ee to c/django@programming.dev
10
6
11
7
submitted 9 months ago by neme@lemm.ee to c/django@programming.dev
12
4
13
5
14
16
Django 5.2 released (www.djangoproject.com)
15
7
16
3
17
4
18
7
submitted 10 months ago by 7EP6vuI@feddit.org to c/django@programming.dev

i'm completely new to the django eco system, coming from flask.

what i want (and don't know how to accomplish) is to put some restrictions to a set of urls: x/<uuid>/images x/<uuid>/imageupload and others should only work, if uuid can be found in the database and is still valid.

in flask i would probably use a blueprint, but this concept does not seem to exist in django, right?

what i like about the blueprint concept is, that it's not possible to add a url under the x/<uuid> "namespace" and forgetting about the auth mechanism, as this is handled for all urls in the blueprint.

how would you handle this in django?

i've already learned about apps and a custom middleware, but this looks quite complicated on first sight? as the middleware always intercepts all requests, and i would have to check on my own if this is a request to x/<uuid>?

i've also looked at existing apps, and django-rq uses the statt_member_required decorator for each view. i will probably build something like that, but i would be more confident if i could apply this to the whole app, instead of having to decorate each function.

19
1
20
1
21
1
22
1
23
1
Django 5.2 beta 1 released (www.djangoproject.com)
24
1
25
1
view more: next ›

Django

533 readers
5 users here now

Django Project

Django Community

Django Ecosystem

Jobs
Learning/Docs
Podcasts:
Related Fediverse communities
Feeds

founded 2 years ago
MODERATORS