Re: import *

2021-01-10 Thread David Nugent
On 11 January 2021 at 13:14:59, Peter of the Norse (rahmc...@gmail.com) wrote: I use multiple settings.py files to do this. Specifically, in my main one, I have what I consider the only acceptable instance of import *. Slightly off-topic (subject changed to reflect t

Re: How to securely store passwords used in backend code

2021-01-10 Thread Peter of the Norse
I use multiple settings.py files to do this. Specifically, in my main one, I have what I consider the only acceptable instance of import *. import os if (os.getenv('PRODUCTION')): from .prod_settings import * else: from .dev_settings import * While dev_settings.py is in my repo, prod_se

Re: ForeignKey with different queryset from manager

2021-01-10 Thread Peter of the Norse
This is an interesting question. Thank you for asking it. I wasn’t able to find exactly what you are asking for. The closest I could find was https://docs.djangoproject.com/en/2.2/topics/db/queries/#using-a-custom-reverse-manager

django admin site password changed every time user's attributes are changed

2021-01-10 Thread Vishesh Mangla
https://dpaste.org/bN7d Please see code at dpaste. I 'm trying to modify my admin site so that the admin can create new accounts there. After clicking save , to whatever email address which the admin has entered an email would bbe sent with a random password. It works perfectly but when I try

Re: how to install pyenv-virtualenv on windows

2021-01-10 Thread Kasper Laudrup
On 10/01/2021 17.27, Sohail Tanveer wrote: the git repo to which google directs me is https://github.com/pyenv/pyenv-virtualenv The first line of the readme says: "pyenv-virtualenv is a pyenv plugin that provides features to manage virtualenvs and conda environments for Python on UNIX-like sy

Re: how to install pyenv-virtualenv on windows

2021-01-10 Thread Sohail Tanveer
i was actually going through a tutorial where i specifically needed pyenv-virtualenv. but thanks for ur consideration @gerardo.palazuelos On Sunday, 10 January 2021 at 22:16:43 UTC+5:30 Gerardo Palazuelos wrote: > Hi Sohail, > I read your interest for pipenv in Windows. Seems are wasting precio

Re: how to install pyenv-virtualenv on windows

2021-01-10 Thread Kasper Laudrup
On 10/01/2021 15.59, Kunal Solanke wrote: Have a look at it. What do you think about pipenv Kasper? I don't think I've ever had a need for it. Using the standard venv python module has been fine for my needs so far, but I'll keep it in mind. Thanks. Kind regards, Kasper Laudrup -- You re

Re: how to install pyenv-virtualenv on windows

2021-01-10 Thread Gerardo Palazuelos Guerrero
Hi Sohail, I read your interest for pipenv in Windows. Seems are wasting precious time and not productive because of this pipenv tool, which is not even the point of Django. If that keeps resulting complicated, may I suggest you to use venv which comes integrated in recent Python installation.

Re: how to install pyenv-virtualenv on windows

2021-01-10 Thread Sohail Tanveer
the git repo to which google directs me is https://github.com/pyenv/pyenv-virtualenv the command it wants me to execute in my cmd is $ git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv and whenever i execute this it shows an error like fatal: T

Re: how to install pyenv-virtualenv on windows

2021-01-10 Thread ramadhan ngallen
Alternatively, You can use virtualenvwrapper-win On 10 Jan 2021, 18:00 +0300, Kunal Solanke , wrote: > I recently started using pipenv, but still I can say its best thing so far I > have used for storing env variables,creating venv and etc,with one simple > command your virtualenv will be activat

Re: how to install pyenv-virtualenv on windows

2021-01-10 Thread Kunal Solanke
I recently started using pipenv, but still I can say its best thing so far I have used for storing env variables,creating venv and etc,with one simple command your virtualenv will be activated,without having to worry about where your venv files are ,path and etc . Have a look at it. What do you thi

Re: how to install pyenv-virtualenv on windows

2021-01-10 Thread Kasper Laudrup
On 09/01/2021 19.27, Sohail Tanveer wrote: 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 It w

Re: how to install pyenv-virtualenv on windows

2021-01-10 Thread Atuma Samuel
I don't know if this answers your question, but you can try $ python -m venv env env is the name of the virtual environment and can be replaced with any name of your choice. On Jan 10, 2021 12:22, "Luciano Martins" wrote: > Look I gave up trying on windows and use virtualenv same. > > Em sábad

Re: CRUD Generator

2021-01-10 Thread Carles Pina i Estany
Hi, On Jan/08/2021, Noel Simela wrote: > Good day, > > I have explored several crud generator packages. > > I am looking for an opinion on the best package to adopt that has been > maintained for the past few months, > > If you have experience in django crud generators.Please let me know > th

Re: how to install pyenv-virtualenv on windows

2021-01-10 Thread Luciano Martins
Look I gave up trying on windows and use virtualenv same. Em sábado, 9 de janeiro de 2021 às 21:55:06 UTC-3, sohailta...@gmail.com escreveu: > 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 inst

Re: Template code tries to join a string to a WSGIRequest

2021-01-10 Thread Luna Tuna
Fixed it. I checked my app's views.py and I had the template name arg reversed with the request when passed to render() shortcut. On Sunday, January 10, 2021 at 12:46:19 AM UTC-8 Luna Tuna wrote: > Not sure what to do here. Have you run into this sort of error before? > [image: TemplateEngineJ