Re: Keycloak & Django Setup Error - "UNIQUE constraint failed: auth_user.username" & usernames are being hashed

2021-10-05 Thread DJANGO DEVELOPER
you're facing this error because django receives nique usernames. so you are not allowed to create another username with the same username. On Wed, Oct 6, 2021 at 1:36 AM Ammon Quackenbush wrote: > > I am setting up keycloak for a django project and this is the error I > receive: > > >

Django Permission

2021-10-05 Thread Aadil Rashid
I am creating custom permission in my Django myapp's module with the follwing code; from myapp.models import BlogPost from django.contrib.auth.models import Permission from django.contrib.contenttypes.models import ContentType content_type = ContentType.objects.get_for_model(BlogPost)

Re: ModuleNotFoundError: No module named 'tempfile'

2021-10-05 Thread Kasper Laudrup
On 05/10/2021 17.20, Olalekan Alashe wrote: Pls ,How can i fixed this error (ModuleNotFoundError: No module named 'tempfile').i wanted to install Django with this command "python -m pip installs Django" .I have python 3.8,3.7.3.9 on my system. The tempfile module is part of the Python

ModuleNotFoundError: No module named 'tempfile'

2021-10-05 Thread Olalekan Alashe
Pls ,How can i fixed this error (ModuleNotFoundError: No module named 'tempfile').i wanted to install Django with this command "python -m pip installs Django" .I have python 3.8,3.7.3.9 on my system. Thank you. -- You received this message because you are subscribed to the Google Groups

Listing and Searching fields in another table

2021-10-05 Thread Iyanuoluwa Loko
Good day, I would like to use the list_display and search_fields functions in one table on the Django admin page to display and search for a field in another table. Could I please get any pointers on how to go about this? -- You received this message because you are subscribed to the

TemplateDoesNotExist at /catalog/books/

2021-10-05 Thread Никита Назаров
Hello! I’m beginner in Django. I do Django Tutorial from Mozilla. I get TemplateDoesNotExist at /catalog/books/ . Could you help me?. I don’t understand how to resolve it. */catalog/urls* from django.urls import path from . import views urlpatterns = [ path('', views.index,

Keycloak & Django Setup Error - "UNIQUE constraint failed: auth_user.username" & usernames are being hashed

2021-10-05 Thread Ammon Quackenbush
I am setting up keycloak for a django project and this is the error I receive: IntegrityError at /oidccallback/UNIQUE constraint failed: auth_user.usernameRequest Method: GET It looks like when I log in, keycloak tries to create my user again, even though my user is in the database. Also,

Re: How to port a Django web app in mobile (iOS & Android)

2021-10-05 Thread Ram
Thank you very much, Adeyemi & Princewill for suggestions. Best Regards, ~Ram On Tue, Oct 5, 2021 at 3:10 AM Adeyemi Deji wrote: > Hello, I'm not sure if this will work but it seems to relate to what you > are trying to achieve. follow link below > >

Re: Django bugfix release: 3.2.8

2021-10-05 Thread Dev femibadmus
Ok On Tue, Oct 5, 2021, 9:01 AM Carlton Gibson wrote: > Details are available on the Django project weblog: > > https://www.djangoproject.com/weblog/2021/oct/05/bugfix-release/ > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To

Re: How to show views when an endpoint is called

2021-10-05 Thread Adeyemi Deji
Hi, what you are trying to achieve isn't clear to me. Kindly elaborate pls On Sunday, October 3, 2021 at 4:30:31 AM UTC+2 iroegbu...@gmail.com wrote: > Hello guys, thanks for helping the last time. > I am trying to show course views on django admin. Django is serving as an > API to a flutter

Re: New to Django

2021-10-05 Thread Adeyemi Deji
Hi, I started roughly too. Began paying attention as it started getting interesting. Django documentation was actually wat got me started but before that I went through some pdfs, had a lot of that on my pc. The poll app in django documentation really helped, don't think I would be where I am

Re: How to port a Django web app in mobile (iOS & Android)

2021-10-05 Thread Adeyemi Deji
Hello, I'm not sure if this will work but it seems to relate to what you are trying to achieve. follow link below https://www.quora.com/How-do-we-convert-the-Django-web-application-into-an-Android-app On Tuesday, October 5, 2021 at 5:38:31 AM UTC+2 ram.mu...@gmail.com wrote: > Hi, > > We have a

Re: from excel to postgesql

2021-10-05 Thread Adeyemi Deji
Hello, sure the link below will solve your problem. https://pythoncircle.com/post/591/how-to-upload-and-process-the-excel-file-in-django/ On Tuesday, October 5, 2021 at 5:30:36 AM UTC+2 nader...@gmail.com wrote: > I have a site on heroku up and running, database postgresql, the models > have a

Re: How to port a Django web app in mobile (iOS & Android)

2021-10-05 Thread Princewill Kelechi
I think the best way to go about it is by creating an api endpoint with either django rest framework or django graphene, then consume this apis from your mobile app on android or iOS The mobile app can be developed in either react native or flutter On Tue, Oct 5, 2021, 4:37 AM Ram wrote: > Hi,

Re: Django Query

2021-10-05 Thread Adeyemi Deji
You can read up the documentation regarding MPTT, sure to be useful. https://django-mptt.readthedocs.io/en/latest On Tuesday, October 5, 2021 at 10:05:42 AM UTC+2 eugenet...@gmail.com wrote: > Is there any one with a typical example or tutorial (of Django mptt) that > tolks on the similar

Re: Django Query

2021-10-05 Thread Eugene TUYIZERE
Is there any one with a typical example or tutorial (of Django mptt) that tolks on the similar issue as mine and share with me? regards, On Tue, 5 Oct 2021 at 01:00, Sebastian Jung wrote: > Hello Eugene, > > I think that django mptt can Store and display such a tree. > > Regards > > Eugene

Django bugfix release: 3.2.8

2021-10-05 Thread Carlton Gibson
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2021/oct/05/bugfix-release/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To