Re: Role based Authentication

2021-07-07 Thread DJANGO DEVELOPER
can you please give me a example? so that I can understand it well. thanks in advance. Virus-free. www.avast.com

Re: Role based Authentication

2021-07-07 Thread Avi shah
you can normally do it using fbv's , just make sure while saving the model , you also save the user model also parallely with the student model(in reference with my repo) On Thu, Jul 8, 2021 at 7:44 AM DJANGO DEVELOPER wrote: > Avi Shah I have just visited your github repo. is there any other co

Free Django lessons and open source projects to improve your skills

2021-07-07 Thread Symaxx
Hi there, I have a newly created Python and Django Bootcamp where I cover a lot of the basics and I think this will be a great way to learn for beginners. Link to the playlist: Youtube I also have some open so

Re: Role based Authentication

2021-07-07 Thread DJANGO DEVELOPER
Avi Shah I have just visited your github repo. is there any other code where you have performed multi-user sign up with FBV's? On Thu, Jul 8, 2021 at 4:53 AM sum abiut wrote: > From the admin site you can create different groups and then assign > specific users to specific groups. > then filter

[Solved]: Unit testing migrations [Was: Related model 'company.user' cannot be resolved]

2021-07-07 Thread Mike Dewhirst
On 7/07/2021 9:56 am, Mike Dewhirst wrote: It seems I have to meddle with history and persuade the testing harness that my custom user model has been in the company app from the beginning of time. See story below. Upside is that testing will (might) start working again. Downside is I'll go ma

Re: Role based Authentication

2021-07-07 Thread sum abiut
>From the admin site you can create different groups and then assign specific users to specific groups. then filter users' roles based on the specific group that you have assigned them to. On Thu, Jul 8, 2021 at 3:53 AM Lalit Suthar wrote: > you can extend User model and have a role field in

Re: ProgrammingError - relationship does not exist

2021-07-07 Thread Stathis Angelou
Good evening all and thank you for your messages, as suggested i did delete all migrations in my shops project and did do them again, but i'm getting the same error message, i did use again makemigrations and migrate. show migrations show everything applied ok. if it makes it easier for you

Re: Authentication with Multiple User

2021-07-07 Thread Ridwan Adeyemo
Thanks a lot for this I would try it as soon as possible. Best Regards. On Tue, Jul 6, 2021, 9:39 PM Joel Tanko <7thog...@gmail.com> wrote: > If what you're trying to do is have two types of user accounts, then you'd > have to create a base user model and have personal and business inherit > from

Re: i have a picture field in my model that was not stored properly in django database and i can't retrive that picture

2021-07-07 Thread dapsyn
Try check your model On Wednesday, July 7, 2021 at 3:07:55 PM UTC+1 mohansar...@gmail.com wrote: > please check below view Function -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from i

Re: Role based Authentication

2021-07-07 Thread Lalit Suthar
you can extend User model and have a role field in default User model https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html On Wed, 7 Jul 2021 at 20:47, Avi shah wrote: > https://github.com/Avishah123/Multi-user-auth1 > > On Wed, Jul 7, 2021 at 8:16 PM DJ

Re: i have a picture field in my model that was not stored properly in django database and i can't retrive that picture

2021-07-07 Thread Lalit Suthar
this can help https://simpleisbetterthancomplex.com/tutorial/2016/08/01/how-to-upload-files-with-django.html On Wed, 7 Jul 2021 at 20:25, DJANGO DEVELOPER wrote: > you're doing well but it is not the right way o ask the question. you need > to describe all of your problem and what you have done

Re: ProgrammingError - relationship does not exist

2021-07-07 Thread Jacob Greene
Oh actually, it looks like the table doesn't exist. I misread the SQL. Something is wrong with your migrations. Are you sure you ran "makemigrations" after creating the shop model? On Wed, Jul 7, 2021, 11:03 AM Jacob Greene wrote: > Do you have any other attributes set in the modeladmin? Somethi

Re: ProgrammingError - relationship does not exist

2021-07-07 Thread Jacob Greene
Do you have any other attributes set in the modeladmin? Something is telling the ORM to do a query on the "shop" field, and that field doesn't exist in the DB and it's not defined in the model. Possibly a filter field in the ModelAdmin class? A full back trace might help illuminate where you have t

Re: Role based Authentication

2021-07-07 Thread Avi shah
https://github.com/Avishah123/Multi-user-auth1 On Wed, Jul 7, 2021 at 8:16 PM DJANGO DEVELOPER wrote: > f > > On Wed, Jul 7, 2021 at 7:07 PM LokRaj Kumar Vuppu < > lokrajkumarvu...@gmail.com> wrote: > >> How to assign a role to user when registered into our application. >> >> -- >> You received

Re: i have a picture field in my model that was not stored properly in django database and i can't retrive that picture

2021-07-07 Thread DJANGO DEVELOPER
you're doing well but it is not the right way o ask the question. you need to describe all of your problem and what you have done to resolve it, then may be someone will be able to help you. On Wed, Jul 7, 2021 at 7:07 PM Hugh Frost wrote: > please check below view Function > > -- > You received

Re: Role based Authentication

2021-07-07 Thread DJANGO DEVELOPER
f On Wed, Jul 7, 2021 at 7:07 PM LokRaj Kumar Vuppu < lokrajkumarvu...@gmail.com> wrote: > How to assign a role to user when registered into our application. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group

Role based Authentication

2021-07-07 Thread LokRaj Kumar Vuppu
How to assign a role to user when registered into our application. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To

i have a picture field in my model that was not stored properly in django database and i can't retrive that picture

2021-07-07 Thread Hugh Frost
please check below view Function -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web vi

Re: ProgrammingError - relationship does not exist

2021-07-07 Thread Samin Serge
in admin.py put this code to see. @admin.site.register (shop) Le mer. 7 juil. 2021 à 00:16, Stathis Angelou a écrit : > Good evening all, i have created a new app and added a model. Added the > app under installed apps, and run python manage.py makemigrations and > migrate and everything worked

Re: Django Help | Counting word frequency in Django using dictionary.

2021-07-07 Thread Lalit Suthar
you can try moving to postgres if possible On Wed, 7 Jul 2021 at 10:28, DJANGO DEVELOPER wrote: > I am using sqlite3. so only needs to store the data in django > admin/database but in the form of dictionary or in the form of counted > words. > > On Wed, Jul 7, 2021 at 9:09 AM Lalit Suthar > wro

Re: ProgrammingError - relationship does not exist

2021-07-07 Thread Lalit Suthar
If this is your personal project delete all migrations inside shops app and run makemigrations, migrate again Not sure but this may work I had similar error some time ago On Wed, 7 Jul 2021 at 14:19, Stathis Angelou wrote: > Good morning Jacob and thank you for your reply, i really do appreciate

Re: ProgrammingError - relationship does not exist

2021-07-07 Thread Stathis Angelou
Good morning Jacob and thank you for your reply, i really do appreciate your time in looking into this, I am attaching my models.py: # Create your models here. from django.contrib.gis.db import models class Shop(models.Model): name = models.CharField(max_length=100) location = models.Po