Re: The SECRET_KEY setting must not be empty - os.environ.get('SECRET_KEY')

2022-03-01 Thread Carsten Fuchs
Am 02.03.22 um 04:23 schrieb Mike Dewhirst: > ... where you write get_secret_key() to pull it from the environment or a > file somewhere which is not in your repository. A variant of this that I like is to have a file like localconfig.example in the repository next to settings.py that contains e

Re: The SECRET_KEY setting must not be empty - os.environ.get('SECRET_KEY')

2022-03-01 Thread Adeyemi Deji
I used dotenv module installed with pip On Wed, 2 Mar 2022, 04:43 Adeyemi Deji, wrote: > I also get this error anytime I deploy. It works on developments mode. I > suspect the error coming as a result of adding .env to .gitignore, which > doesn't reflect on GitHub and heroku doesn't have access

Re: The SECRET_KEY setting must not be empty - os.environ.get('SECRET_KEY')

2022-03-01 Thread Adeyemi Deji
I also get this error anytime I deploy. It works on developments mode. I suspect the error coming as a result of adding .env to .gitignore, which doesn't reflect on GitHub and heroku doesn't have access to .env file. Pls how do I sort this out? Thanks in advance for your help On Wed, 2 Mar 2022,

Re: The SECRET_KEY setting must not be empty - os.environ.get('SECRET_KEY')

2022-03-01 Thread Mike Dewhirst
On 2/03/2022 9:00 am, Dev femibadmus wrote: Do u create the variable SECRET_KEY if no copy ur secret_key e.g "hdFgBv&$..." and create variable SECRET_KEY in ur env which could be or is ur hosting platform and give the value as ur secret_key On Sun, Feb 27, 2022, 21:19 Valdinia - Office wrote:

How to fix: Reverse for 'planner_day' not found. 'planner_day' is not a valid view function or pattern name.

2022-03-01 Thread Bujor Luciana
I am trying to create a menuplanner in Django but i have this error : Meal Plan NoReverseMatch at /planner/PlannerHomeView When i am going in Django/admin i can see my databasebut i can't see planner app. This is my first Django app, so definitely is a lot to learn but any advice will mo

How to save last IP address of admin user on administration page?

2022-03-01 Thread Edo
Hi guys, I'm trying to find a way to save last admin IP address in the admin panel and open a popup on login if the admin IP address is different from the last one saved. Any tips? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: The SECRET_KEY setting must not be empty - os.environ.get('SECRET_KEY')

2022-03-01 Thread Dev femibadmus
Do u create the variable SECRET_KEY if no copy ur secret_key e.g "hdFgBv&$..." and create variable SECRET_KEY in ur env which could be or is ur hosting platform and give the value as ur secret_key On Sun, Feb 27, 2022, 21:19 Valdinia - Office wrote: > On W10 I defined an environment variable: SE

need help

2022-03-01 Thread loic ngounou
Please i need a management medical record app of patients built in django using REST API -- 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..

Re: How to add object to users unique list?

2022-03-01 Thread raf sandwich
Hello. Thank you, I got it working! wooo :D On Tuesday, March 1, 2022 at 2:11:17 PM UTC guitard...@gmail.com wrote: > Hello. You need a corresponding URL for your link that's why you're > getting reverse error: > > path('add/anime///', views.MYVIEW, name='url-to-my-view'> > > and then return

Re: How to add object to users unique list?

2022-03-01 Thread David Crandell
Hello. You need a corresponding URL for your link that's why you're getting reverse error: path('add/anime///', views.MYVIEW, name='url-to-my-view'> and then return redirect to your success_url after your enter the data, not return render. On Monday, February 28, 2022 at 12:00:19 PM UTC-6 alla

How Notify Current user ,your insurance is going expiry within 5 days in django

2022-03-01 Thread Gautam Ankul
I am stuck in one problem and i want to notify current logged user for it's insurance will be expired within 5 days ago. class Vehicle(models.Model): vehicle_no = models.CharField(max_length=100, blank=False, null=False) chasis_no = models.

Re: How to add object to users unique list?

2022-03-01 Thread raf sandwich
Hi Antonis, Yes I saw that stackoverflow post also, but I was not able to resolve my issue with it. I do not need to update a model specific to the user when the user clicks a button, but I can't do it :( On Tuesday, March 1, 2022 at 6:52:04 AM UTC Antonis Christofides wrote: > Hello! > > Are

Django bugfix release: 4.0.3

2022-03-01 Thread Carlton Gibson
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2022/mar/01/bugfix-release/ -- 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