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

2022-02-28 Thread Abeer Eltanawy
The way I do it is to add any env variables in a .env file in the same directory level as settings.py and then use decouple.config to extract the value from the file like this: SECRET_KEY = config("DJANGO_SECRET_KEY") On Sun, Feb 27, 2022 at 9:18 PM Val

Re: Deploy Django app with Apache2

2021-06-28 Thread Abeer Eltanawy
Could this article solve your problem? https://medium.com/@shivansht9211/how-to-deploy-django-applications-on-aws-ec2-using-apache-server-f6ae2e1effc4 On Thu, Jun 24, 2021 at 9:27 AM tristant wrote: > I was looking to turn a a laptop into a standing webserver to deploy a > Django app within an i

Re: ValueError: Field 'stufees' expected a number but got 'None'.

2021-07-01 Thread Abeer Eltanawy
Hi Waqar, Could you add your models.py and a screenshot or copy of the error you are observing? Thanks! On Thu, Jul 1, 2021 at 5:31 PM waqar khan wrote: > I have create model class and run success fully > But Issues add field like stufees , > stufess=models.FloatField(), > right value default

Re: roles and permissions

2021-08-13 Thread Abeer Eltanawy
I find this article (and the succeeding 2 articles in the post thread) is a great resource for how to manage roles and permissions with DRF. On Fri, Aug 13, 2021 at 3:28 PM Amit Vaghani wrote: > I want develop Custom Roles And Permission > Any one guide me > > -- > You received this message beca

Re: roles and permissions

2021-08-15 Thread Abeer Eltanawy
Sorry, this is the link: https://testdriven.io/blog/drf-permissions/#drf-permissions On Sun, Aug 15, 2021 at 6:26 AM Lalit Suthar wrote: > https://www.django-rest-framework.org/api-guide/permissions/ > > On Sat, 14 Aug 2021 at 04:35, Mike Dewhirst wrote: > >> Have you looked at ... >> >> https:

Re: Python code changes are not reflecting on Django-based web server.

2021-08-19 Thread Abeer Eltanawy
I have been using the apachectl command instead and it works without an issue. sudo apachectl stop sudo apachectl start sudo apachectl restart On Thu, Aug 19, 2021 at 2:54 PM Ryan Nowakowski wrote: > I'd verify that the systemctl commands are actually starting and stopping > httpd. Does the pid