Re: Apple M1 Silicon + Django = weird results

2021-01-09 Thread Lane Campbell
I'd put the code up on an x64 virtual machine and see if it behaves as expected. If the issues are still present then you know it's not M1 related. On Sat, Jan 9, 2021 at 11:57 PM Mike Dewhirst wrote: > In principle, Django and Python and anything else you can program incuding > the database a

Re: Apple M1 Silicon + Django = weird results

2021-01-09 Thread Mike Dewhirst
In principle, Django and Python and anything else you can program incuding the database are completely independent of the lower layers of the IP stack. I would restore the infrastructure to manufacturer's defaults and test again.  Removing unknowns is always a good start in debugging.Good luckMik

Re: Apple M1 Silicon + Django = weird results

2021-01-09 Thread Benjamin Schollnick
Okay, a further update. While rewrite the code, did seem to make a marginal difference, the corruption issue persisted intermittently. Just today, I did some more digging, and I remembered that I turned on Jumbo Frames for my ethernet port on the M1 Mac Mini. Turning that off, at first glanc

Re: CRUD Generator

2021-01-09 Thread David Nugent
Actually, this might help: https://github.com/pydanny/cookiecutter-djangopackage Cookiecutter is very simple to use, and this is a template you use with it that generates a boilerplate entire (reusable) django app. There's also a django project generator that I've recently started to use becau

how to install pyenv-virtualenv on windows

2021-01-09 Thread Sohail Tanveer
im facing difficulty to install pyenv-virtual env on my windows 10 i googled it several times but it directs me to a git repo where there is an installation process but is of no use because, the command that is displayed is not working in my cmd please help me out -- You received this message

Re: CRUD Generator

2021-01-09 Thread David Nugent
Well, yes, sure you can. But I think the OP had something in mind like https://pypi.org/project/drf-generators/ (which is awsome btw) but targeted at crud views / forms. I must admit this is one of the nice things that rails scaffold provides in the RoR world. The code generated by that is cer

Re: hello guys, how can I upload multiple images using single button? help me please

2021-01-09 Thread Joseph Wayodi
Post your code here, and someone will help you figure out why it does not work like you expect. On Sat, 9 Jan 2021 at 22:07, Chelsea Fan wrote: > > I tried it, it works but it saves last file twice, for example if I upload 2 > file it saves 3 > > On Sat, Jan 9, 2021 at 7:53 PM Joseph Wayodi wro

Re: hello guys, how can I upload multiple images using single button? help me please

2021-01-09 Thread Chelsea Fan
I tried it, it works but it saves last file twice, for example if I upload 2 file it saves 3 On Sat, Jan 9, 2021 at 7:53 PM Joseph Wayodi wrote: > The Django docs show how to do this: > < > https://docs.djangoproject.com/en/3.1/topics/http/file-uploads/#uploading-multiple-files > >. > > On Thu,

Stack Overflow Question

2021-01-09 Thread Joel Tanko
Hey, guys any ideas on how to get about this? Django CMS in Django https://stackoverflow.com/q/65645573/12957767?sem=2 -- 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 ema

Re: hello guys, how can I upload multiple images using single button? help me please

2021-01-09 Thread Joseph Wayodi
The Django docs show how to do this: . On Thu, 7 Jan 2021 at 15:24, Chelsea Fan wrote: > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsub

Re: UserManager creation for AbstractUserModel extended MyUser

2021-01-09 Thread 'Amitesh Sahay' via Django users
Did you happen to remove the private method "def _create_user" from your models.py? Regards, Amitesh  On Saturday, 9 January, 2021, 08:08:16 pm IST, Vishesh Mangla wrote: Oops I guess, my bad messaging style made you miss the last few pieces of my messages. Thanks, but that problem

Re: UserManager creation for AbstractUserModel extended MyUser

2021-01-09 Thread Vishesh Mangla
Oops I guess, my bad messaging style made you miss the last few pieces of my messages. Thanks, but that problem is resolved as written in my previous message with the working code. Now I require help with the Migrations problem. On Saturday, January 9, 2021 at 8:00:55 PM UTC+5:30 Amitesh Sahay

Re: UserManager creation for AbstractUserModel extended MyUser

2021-01-09 Thread 'Amitesh Sahay' via Django users
Hello Vishesh,  Below is from my models.py: models.py-from django.contrib.auth.base_user import BaseUserManager from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin from django.utils.translation import gettext_lazy as _ class AccountManager(BaseUserManager): d

Re: UserManager creation for AbstractUserModel extended MyUser

2021-01-09 Thread Vishesh Mangla
I did paste my `models.py` with the help the help of a dpaste link. ``` class UserManager( BaseUserManager): def _create_user(self, PAN_ID, password=None, **extra_fields): """ Creates and saves a User with the given email, date of birth and password. """

Re: UserManager creation for AbstractUserModel extended MyUser

2021-01-09 Thread 'Amitesh Sahay' via Django users
Could you please paste your models.py Sent from Yahoo Mail on Android On Sat, 9 Jan 2021 at 18:36, Vishesh Mangla wrote: https://dpaste.org/Zz5Z (venv) PS C:\Users\Dell\OneDrive\Desktop\djangodev\mass> python manage.py createsuperuser PAN ID: 6785 Email: s@g Error: Enter a valid email ad

Re: UserManager creation for AbstractUserModel extended MyUser

2021-01-09 Thread Vishesh Mangla
Another thing is that my "employees" group has an additional CharField requirement. Only the employees group.How can I add specifically a field to that group? Something this this:https://stackoverflow.com/questions/16407217/add-extra-fields-to-django-to-django-auth-groups On Saturday, January 9

Re: UserManager creation for AbstractUserModel extended MyUser

2021-01-09 Thread Vishesh Mangla
Hi, please help me create this UserManager child class. I 'm stuck up on this. I also need to divide my users into three groups. For this I extended the migrations file. https://dpaste.org/9VSd. But running `makemigrations` gives no changes detected. Please help with this issue too. Thanks i

UserManager creation for AbstractUserModel extended MyUser

2021-01-09 Thread Vishesh Mangla
https://dpaste.org/Zz5Z (venv) PS C:\Users\Dell\OneDrive\Desktop\djangodev\mass> python manage.py createsuperuser PAN ID: 6785 Email: s@g Error: Enter a valid email address. Email: s...@gmail.com Name: fjghg Type: fg Error: Value 'fg' is not a valid choice. Type: ADM Holding: 568 Password: Pass

muliple queryset result

2021-01-09 Thread Soumen Khatua
Hi Folks, Actually I have one *Primary *Table called *CustomUser *and I'm extending this model as *Foreign *Key in *UserContactDetails model*. So now basically *one user have multiple contact details.* But whenever I'm applying *filter *on *Primary Table field* as well as *Foreign Key table* field

Re: Redirect one page to another on Django tremplate

2021-01-09 Thread Luciano Martins
Put your github repo Em sábado, 9 de janeiro de 2021 às 08:11:31 UTC-3, Joel T escreveu: > You can try using the javascript window.locqtion.href('redirect-url') > > On 7 Jan 2021 10:07 pm, "pankaj palmate" wrote: > >> can you elaborate it more means are you taking about Response? >> >> >> On Thu

Re: Redirect one page to another on Django tremplate

2021-01-09 Thread Joel Tanko
You can try using the javascript window.locqtion.href('redirect-url') On 7 Jan 2021 10:07 pm, "pankaj palmate" wrote: > can you elaborate it more means are you taking about Response? > > > On Thursday, January 7, 2021 at 10:48:33 PM UTC+5:30 amanmo...@gmail.com > wrote: > >> Hello Django Lover,