Re: runserver not working

2022-03-26 Thread Kevin Jay
Did you activate your virtual environment? Sent from my iPhone > On Mar 22, 2022, at 10:32 PM, 'Delvin Alexander' via Django users > wrote: > > i did that but the problem still remains :( > >> On Tuesday, March 22, 2022 at 2:09:33 AM UTC-7 sebasti...@gmail.com wrote: >> Hey, >> >> I think

Re: Static not working on unix while working on windows

2020-07-07 Thread Kevin Jay
You also need to close your quote. On Tue, Jul 7, 2020 at 11:54 AM Kevin Jay wrote: > I’ve had the same issue in the past. I fixed it by removing > *rel="stylesheet * > > > On Mon, Jul 6, 2020 at 1:20 PM ashish goyal > wrote: > >> Hi All, >> >> I h

Re: Static not working on unix while working on windows

2020-07-07 Thread Kevin Jay
I’ve had the same issue in the past. I fixed it by removing *rel="stylesheet * On Mon, Jul 6, 2020 at 1:20 PM ashish goyal wrote: > Hi All, > > I have created a django app on windows and have used bootstrap navbar n > other functions which are working good on windows. > > Same files I have

Re: Fedora 30 server (Configuring Postgresql with Django)

2019-10-29 Thread Kevin Jay
I meant to type ‘harish.b’ On Tue, Oct 29, 2019 at 11:37 PM Kevin Jay wrote: > Does the user ‘garish.b’ have a system password? > > On Tue, Oct 29, 2019 at 10:38 PM hari49pf wrote: > >> Hi sir, >> I didn't understood, can u elaborate, I am new to django, Plz, help

Re: Fedora 30 server (Configuring Postgresql with Django)

2019-10-29 Thread Kevin Jay
Does the user ‘garish.b’ have a system password? On Tue, Oct 29, 2019 at 10:38 PM hari49pf wrote: > Hi sir, > I didn't understood, can u elaborate, I am new to django, Plz, help me out. > > regards. > Harish.Bheemanpaly > > On Wednesday, October 30, 2019 at 1:21:50 AM UTC+5:30, sacrac wrote: >>

Re: Python +django

2019-09-13 Thread Kevin Jay
I also prefer text over video. However, Corey Schafer has an excellent video series that is really well done. He doesn’t waste time babbling or stumbling over words. He also provides a link to his github repo so you can let ok over the code. On Tue, Sep 10, 2019 at 8:19 PM 'Nicholas Hatch' via

Re: Write urls without regex in DRF

2019-05-22 Thread Kevin Jay
kevin@kjay,net On Wed, May 22, 2019 at 10:19 AM Rounak Jain wrote: > > I am using DRF Viewsets to auto-generate URLs for different views. Is it > possible to write the code below without using regex? > Thanks > > from .views import TaskViewSet > from rest_framework.routers import DefaultRouter

Re: Django wsgi apache Deploy project

2019-05-07 Thread Kevin Jay
Remove the spaces in the paths: WSGIPythonPath / var / www / html / ecommerce / should be WSGIPythonPath /var/www/html/ecommerce/ Do the same for the other paths On Tue, May 7, 2019 at 8:57 AM N'BE SORO wrote: > > Hi I'm a beginner in python and I realized a project in Django. I have >

Re: ORM help with INNER JOIN and GROUP BY

2019-05-06 Thread Kevin Jay
You are correct. Django creates a primary key of 'id' for each table as an integer by default. So foreignkey will reference that primary key which by default is an integer. If the primary key is changed to some other type, Django can still handle it. Apparently using integers is the more efficient

Re: ORM help with INNER JOIN and GROUP BY

2019-05-06 Thread Kevin Jay
Maybe that was a typo? The foreignkey relationship would look like this: object = models.ForeignKey(FacePng'', max_length=128, blank=False, null=False, unique=True) On Mon, May 6, 2019 at 12:44 PM wrote: > Just want to make sure I understand. ForeighKeys need to be integers? > > Only integers?

Re: ORM help with INNER JOIN and GROUP BY

2019-05-06 Thread Kevin Jay
The field within your class should be set to ForeignKey. Try this: Object = models.ForeignKey(‘FacePng’, on_delete=SET_NULL, max_length= some_int) on_delete and max_length need to be set based on your requirements Sent from my iPhone > On May 6, 2019, at 11:28 AM, b...@tanners.org wrote: >

Re: BaseModelFormSet > _construct_form

2019-04-02 Thread Kevin Jay
ke...@kjay.net On Tue, Apr 2, 2019 at 4:12 PM nikolaysm wrote: > Hello, > > In function _construct_form variable "pk_key" is generated as: > pk_key = "%s-%s" % (self.add_prefix (i), self.model._meta.pk.name) " > > So pk_key is not flexible. Because if I overwrite function "add_prefix" > from

Re: Using signals to populate another model based on new registered user

2019-03-10 Thread Kevin Jay
Disregard...Wrong thread. On Sun, Mar 10, 2019 at 2:47 PM Kevin Jay wrote: > > Here is the relevant template from the link provided > >> >>1. >>2. >>3. >>4. >>5. Employee Records >>6. {% load static

Re: Using signals to populate another model based on new registered user

2019-03-10 Thread Kevin Jay
Here is the relevant template from the link provided > >1. >2. >3. >4. >5. Employee Records >6. {% load staticfiles %} >7. >8. >9. >10. >11. >12. >13. Employee ID >14. Employee Name >15.