Re: Search & replace an object in the database

2022-01-24 Thread jools
Thanks! I’ll consider this. The whole thing is supposed to be a tool for everyday work (although: a very dangerous one!), so the “fix the database once” strategy isn’t going to work for me. I’ve added some tests for checking different relation types (m2m, fk, one-to-one, generic relation, pare

Re: Lack of tutorials and explanations about channels

2022-01-24 Thread lone...@gmail.com
You and me both are on the same page about documentation about Channels. I tried to follow: Django Channels Tutorial 🔥: the most minimal Real Time app (not Chat) | Django WebSockets on YouTube, but I kept running into issues. If you can follow thi

create super user

2022-01-24 Thread Prashanth Patelc
im getting this error == match = date_re.match(value) TypeError: expected string or bytes-like object this is my user profile model === class UserManager(BaseUserManager): use_in_migrations = True def _create_user(self, email, password, **extra_fi

relations

2022-01-24 Thread frank dilorenzo
I have tried several different ways but I cannot seem to get this right. What I have is a list of suppliers. Each supplier can have many shipments and each shipment can have many species. Seems simple enough but apparently I must be more simple. I need a suggestion of how to relate these tab

django module not found

2022-01-24 Thread 'Delvin Alexander' via Django users
Hello, I am new and just started to learn Django. I am attempting to create my first application and ofcourse progress to a website but i am having difficulty at the moment. here is whats going on: ["Import "django.shortcut" could not be resolvedPylancereportMissingImports

Re: django module not found

2022-01-24 Thread Lakshyaraj Dash X-D 25
Try restarting your code editor or reinstall python. On Mon, Jan 24, 2022, 19:28 'Delvin Alexander' via Django users < django-users@googlegroups.com> wrote: > Hello, > > I am new and just started to learn Django. I am attempting to create my > first application and ofcourse progress to a website

Re: django module not found

2022-01-24 Thread Lakshyaraj Dash X-D 25
If you're using virtual environment then try creating a new virtual environment and install django again in your virtual environment. On Mon, Jan 24, 2022, 19:28 'Delvin Alexander' via Django users < django-users@googlegroups.com> wrote: > Hello, > > I am new and just started to learn Django. I a

Re: django module not found

2022-01-24 Thread Kasper Laudrup
On 24/01/2022 15.11, Lakshyaraj Dash X-D 25 wrote: Try restarting your code editor or reinstall python. How would that change anything? Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

Re: django module not found

2022-01-24 Thread Kasper Laudrup
On 24/01/2022 05.18, 'Delvin Alexander' via Django users wrote: No module named 'django.shortcut' Typo. It should be "django.shortcuts" Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

Re: django module not found

2022-01-24 Thread Dawda Borje Kujabi
Thank you, it worked. On Mon, Jan 24, 2022, 2:16 PM Kasper Laudrup wrote: > On 24/01/2022 05.18, 'Delvin Alexander' via Django users wrote: > > > > No module named 'django.shortcut' > > Typo. It should be "django.shortcuts" > > Kind regards, > > Kasper Laudrup > > -- > You received this message

Re: Lack of tutorials and explanations about channels

2022-01-24 Thread Steve Smith
I am a huge fan of Django. But I will agree that the documentation is most areas beyond the absolute basics is abysmal. I have a lot written in Django in Class Based Views because I read early on they were the way to go. I'm not going to tell you how much research and time it took me but it w

Looking for Recommendations for a Django Photo Gallery

2022-01-24 Thread Mark Phillips
I have been using a very old PHP based photo gallery called Gallery3 as a photo gallery with about 10 years of photos. Gallery3 is on life support, so I need to move to something else. I am looking for a simple photo gallery application that uses file system based storage for the photos. Gallery3 h