Re: Book

2024-02-08 Thread Ruby
You are getting this because the database needs to have a value for existing row(s), you can set default value or make the new field nullable Either of these would work for you Transactions(models.Model): income = models.IntegerField(null=True, blank=True) expense = models.IntegerField(nul

Re: Django 5.0

2023-12-14 Thread Ruby
Consider reading the release notes On Wed, Dec 13, 2023 at 6:18 PM Pete Doherty wrote: > Not yet, but database generated model fields > > look pretty compell

Re: How to monitor content updates or deletion in Django web applications

2023-10-04 Thread Ruby
Hi there, I don't know if there's a library for that, but I believe you can build what you need using the built-in Django Content-Type I have used it a few times and Django admin site also uses it under the hood. On Wed, Oct 4, 2

Re: UpdateView and DeleteView

2023-08-26 Thread Ruby
> --- Original Message --- > On Saturday, August 26th, 2023 at 14:07, Ruby > wrote: > > You can simply set a test case using the built-in user passes test ( > https://docs.djangoproject.com/en/4.2/topics/auth/default/#django.contrib.auth.decorators.user_passes_test >

Re: UpdateView and DeleteView

2023-08-26 Thread Ruby
You can simply set a test case using the built-in user passes test ( https://docs.djangoproject.com/en/4.2/topics/auth/default/#django.contrib.auth.decorators.user_passes_test ) On Sat, Aug 26, 2023, 11:20 'Simon Connah' via Django users < django-users@googlegroups.com> wrote: > I want to make su

Re: Timezone issue in when storing in DB

2023-08-16 Thread Ruby
You seem to be reinventing the wheel, Django already has timezone support when you set USE_TZ to True, Note that your TIME_ZONE would be the default t

Re: Logout time

2023-07-28 Thread Ruby
I could barely understand what you meant, I believe you're looking for a way to set how to set a session cookie age, if that is the case, see SESSION_COOKIE_AGE If that is not the case, note that you also have `la

Re: NGINX PAGE NOT FOUND

2023-07-28 Thread Ruby
Hi, Have you checked the organization of your URL patterns?. On Thu, Jul 27, 2023 at 12:16 PM clas...@gmail.com wrote: > Dockerfile > > ### > # BUILDER # > ### > > # pull official base image > FROM python:3.11.2-slim as builder > > # set work directory > WORKDIR /app > > # set en

Re: Pls recommend a course or youtube channel to prepare me for interview coding challange.

2023-06-26 Thread Ruby Shell
Hi Alerechi, consider taking some demo challenges on codility ( https://www.codility.com/). On Mon, Jun 26, 2023 at 5:00 PM Alerechi Ordu wrote: > Hello django family, > > I am almost 1 year now in Backend development with django, i am looking > for a new role and has done some interviews, but i

Re: Dashboard with plotting graph

2023-06-22 Thread Ruby Shell
Most time, it is wise to fetch your data from Django backend and then visualize it with javascript libs such as Apex chart, chartJS, chartist (you name them). And if you still wish to do it in the python way, you may have to take a look at Ploty for python (https://plotly.com/python/) On Wednes

Re: User not Authenticating.

2023-04-24 Thread Ruby Shell
`authenticate` requires a positional argument (request) try userLogin = authenticate(request, username=username, password=password) On Monday, April 24, 2023 at 5:51:45 PM UTC+1 oluwafemi damilola wrote: > userLogin = authenticate(request, username=username, password=password) > > On Mon, 24 Apr

DO U WANT TO KNOW ABOUT SCIENTOLOGY?

2008-05-01 Thread ruby
HELLO FRIEND IAM SHALINI, DO U WANT TO KNOW ABOUT SCIENTOLOGY? PLS LOOK AT THE BELOW WEBSITE. www.bigconcern3.blogspot.com --~--~-~-

how to make django's sub dir rewritable?

2008-01-24 Thread ruby
can anyone give me a hint on how to add a rule to make the subdirectory redirect to a different directory under apache? where django mod_python using the same directory. suppose i have a dir "/dj" and have a subdir "/Web/js", my template's js src value is "js/myscript.js", I want the dir "/dj/js/