How do I create two independent admin sites in Django? – Page 2 – Enpatika
Skip to content
Yeni Enpatika Logo

Enpatika

En Güncel Oyun ve Sistem Gereksinimleri Sitesi

  • Ana Sayfa
  • Gizlilik Politikası
  • Telif Hakları
  • İletişim
  • taraftar tv apk

How do I create two independent admin sites in Django?

How do I create a separate login for administrator and user in Django?

1 April 2022 Enpatika.com Genel

auth import authenticate, login def my_view(request): username = request. POST[‘username’] password = request. POST[‘password’] user = authenticate(username=username, password=password) if user is not None: if user. is_active: login(request, user) # Redirect to a success page.

Read more

How do I create two independent admin sites in Django?

1 April 2022 Enpatika.com Genel

auth appliaction in my project tree, naming it differently and using separate admin. site . register() calls for both of them. This way I can have other models available in each one of them, diffrent looks, etc.

Read more

Posts pagination

«Previous Posts 1 2
WordPress Theme: Gridbox by ThemeZee.