Re: Broken?

2018-05-01 Thread Kevin O'Gorman
It is indeed a string. The string happens to represent an integer, a key of an item in another table. It is not an external reference because there are dated versions of the table and the referent may or may not exist in any one of them. It existed in the table in use at the time the record w

null=True and blank=False within model fields

2016-08-03 Thread Kevin Brown
Within Django REST framework a discussion sparked about how the combination of null=True and blank=False should be handled with validation. What side is right in the discussion isn't the question here. Are there cases where it m

Re: Best Learning Resources

2019-01-17 Thread kevin goemaere
I learned the basics through this course: https://www.udemy.com/python-django-dev-to-deployment/ It's verry wel structured and you make a whole project and see all the basics of Django. Op woensdag 16 januari 2019 14:20:15 UTC+1 schreef cale...@gmail.com: > > Hi All, > > I'm just starting out

Adding default rows to Django admin inlines

2019-01-18 Thread Kevin Olbrich
ke a dynamic (support) contact form where you get different inputs if you choose a different topic.* Is this possible with the admin? The relation (which JobActions needs which JobAttributes) is available. Thank you very much. Kevin -- You received this message because you are subscribed to th

Disable autoescape globally

2019-01-21 Thread Kevin Olbrich
Hi! I am using the template engine to build e-mail templates but the autoescape function breaks quotes. Is it possible to disable autoescape globally or in the render function using a parameter? Thank you. Kevin -- You received this message because you are subscribed to the Google Groups

Logging of full trace with Debug set to False

2019-01-28 Thread Kevin Olbrich
them. This would allow me to fix bugs, that only occur once every month (because nobody is able to reproduce). Similar approach was the case with Testflight on iOS, where I got a message for every App-crash. How can I handle this? Kind regards Kevin -- You received this message because you

Re: Adding default rows to Django admin inlines

2019-01-28 Thread Kevin Olbrich
hoose / change the Action type. Pseudo: With HTML and JS I would listen for a change event, then AJAX an API for the attributes. Then I would clear the inline-area and add new rows for each mandatory attribute. I wonder if this is possible with Django alone, without building a view. Kind regards

Re: Logging of full trace with Debug set to False

2019-01-28 Thread Kevin Olbrich
Hi Michal, looks very promissing. I read the SDK guide for Django and I realy like it. Thank you! Kevin Am Montag, 28. Januar 2019 12:20:35 UTC+1 schrieb Michal Petrucha: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > On Mon, Jan 28, 2019 at 02:53:55AM -0800, Kevi

Re: Logging of full trace with Debug set to False

2019-01-28 Thread Kevin Olbrich
tasks and Django admin commands. Thank you very much for your reply! Kevin Am Montag, 28. Januar 2019 13:25:17 UTC+1 schrieb Anirudh Jain: > > You can setup a logging and debugging logging system using gunicorn in > production using flags :- > > --log-level debug > --access-lo

Re: Logging of full trace with Debug set to False

2019-01-29 Thread Kevin Olbrich
Exceptions (broke some things to test it). Thanks for the hint to this excellent tool! Kevin Am Montag, 28. Januar 2019 13:55:29 UTC+1 schrieb Michal Petrucha: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > On Mon, Jan 28, 2019 at 04:45:44AM -0800, Kevin Olbrich wrote:

Django 1.11.19 .whl failing with error

2019-02-11 Thread Kevin Carrogan
The Django 1.11.19 .whl release file appears to erroneously contain a file that appears to be from the 2.x release (it contains Py3 only code). The file in question is django.contrib.admin.templatetags.base which shouldn't exist in the 1.11.19 release. This file doesn't appear to exist in the .

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.

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: 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 cl

Custom forms in Django admin?

2019-04-08 Thread Kevin Olbrich
Hi! Is it possible to add a form to the Django admin? Models are no problem but I have a slightly more complex requirement (still less than a full view with templates, etc.). Kind regards Kevin -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: Issues with editing Django files?

2019-04-30 Thread Kevin Weinberg
Awesome, thank you very much! On Sat, Apr 27, 2019 at 4:19 PM André Toscano wrote: > Hi Kevin, > You shouldn't put your files inside the Program Files directory, it's > protected by the system. Instead, you should create a directory (my > suggestion) 'git' in

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: 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
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: 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 > problem

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

Re: CORS policy issue when using with JSON and DJANGO

2019-07-08 Thread Kevin McGraw
Consider you should not use absolute path in your request. Place your file in your static folder. Request the file relative to this static location. This would be similar to requesting other resources, such as css and js files...like this: {% load staticfiles i18n %} or in javascript: const d

Raw SQL - How to approach paging and lazy fetching

2017-06-15 Thread Kevin Yu
Hi All, I am using raw sql to connect to database. The reason we used raw sql instead of the Django model is because the database is legacy and is being shared by multiple applications... I have one use case that I'm struggling right now. Basically I have a page that fetch more than 1000 resul

Re: Raw SQL - How to approach paging and lazy fetching

2017-06-16 Thread Kevin Yu
> leverage full power of ORM [1]. > > Just create models and in their Meta set managed = False and there you go. > > And what comes to paging - you need to somehow pass offset and limit to > your query. > > [1] https://docs.djangoproject.com/en/1.11/howto/legacy-databases/ > &

Re: Raw SQL - How to approach paging and lazy fetching

2017-06-21 Thread Kevin Yu
egacy database. When defining fkey > you need to point it to corresponding field in fkey attributes in your > model if it isnt your target model pk. > > And you can join nonmanged models with managed just fine. > > 16.6.2017 19.26 "Kevin Yu" > kirjoitti: > > Hi Ja

Need help for defining foreign key based on value from another table

2017-06-21 Thread Kevin Yu
I'm working with a legacy database so I have to set managed=False in the model. Here's the 3 related tables: class Branches(models.Model): name = models.CharField(max_length=128) branchpoint_str = models.CharField(max_length=255) dev_lead_id = models.IntegerField(blank=True, null=Tru

Re: Need help for defining foreign key based on value from another table

2017-06-21 Thread Kevin Yu
, June 21, 2017 at 2:49:40 PM UTC-7, Kevin Yu wrote: > > I'm working with a legacy database so I have to set managed=False in the > model. Here's the 3 related tables: > > > class Branches(models.Model): > name = models.CharField(max_length=128) >

Would old version of mysql caused performance issue in Django

2017-07-18 Thread Kevin Yu
Hi All, I'm rewritting an web application using Django 1.11. When i hooked up to my test mysql database (version 5.7), the performance is amazing. The page renders within 1 second. However, when I connect to the existing production mysql (version 5.1), the page takes more than 10 seconds. I

Re: Would old version of mysql caused performance issue in Django

2017-07-18 Thread Kevin Yu
roment, probably is your network. > > 2017-07-18 15:00 GMT-03:00 Kevin Yu >: > >> Hi All, >> >> I'm rewritting an web application using Django 1.11. When i hooked up to >> my test mysql database (version 5.7), the performance is amazing. The page >> re

Re: Would old version of mysql caused performance issue in Django

2017-07-18 Thread Kevin Yu
I've eliminated the possibility of mysql performance issue by directly running the query on the database. It's not network issue either since my ping is just fine. On Tuesday, July 18, 2017 at 11:00:58 AM UTC-7, Kevin Yu wrote: > > Hi All, > > I'm rewritting an w

Re: Would old version of mysql caused performance issue in Django

2017-07-18 Thread Kevin Yu
ver is noticeably slower. What I mean is here: kevin@kevin-OptiPlex-7020:~/repo/Infosite_Django/app$ python manage.py runserver Performing system checks... System check identified no issues (0 silenced). July 18, 2017 - 19:00:12 Django version 1.11.2, using settings 'infosite.settings' Star

Re: Would old version of mysql caused performance issue in Django

2017-07-18 Thread Kevin Yu
nd run localy in your workstation? 2017-07-18 16:05 GMT-03:00 Kevin Yu : > > <https://lh3.googleusercontent.com/-jIXPWhwHNUw/WW5biPCMzlI/De4/BnmWrwpKd88NFW-PswfbXcBNZSN04c36ACLcBGAs/s1600/Screenshot%2Bfrom%2B2017-07-18%2B12-03-18.png> > > I even noticed when i do runser

Re: Would old version of mysql caused performance issue in Django

2017-07-18 Thread Kevin Yu
elli de Andrade < > fbrua...@gmail.com > wrote: > >> It seems like some thing in your app view. >> >> Did you try to dump real database and run localy in your workstation? >> >> 2017-07-18 16:05 GMT-03:00 Kevin Yu >: >> >>> >>> <h

Re: Active Open Source Project to contribute to

2020-03-11 Thread Kevin Dublin
I'm interested as well. Do you have a discord channel? Or Hangouts group? Or slack? And is there a link to the repo? On Wed, Mar 11, 2020, 9:10 AM ranjan jha wrote: > Hey Guys > > We are small startup called Rebataur(https://rebataur.com) and we have > been working on a "Product Management Tool"

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 impo

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: CSRF cookie not set issue

2015-09-10 Thread Kevin Anyanwu
base_1.html goals Cirriculmn Notes Collaborte On Thu, Sep 10, 2015 at 8:49 AM, monoBOT wrote: > show us the base_1.html > > 2015-09-10 16:18 GMT+01:00 : > >> By the way, I am using Django 1.8.3 (final) >> >

Re: CSRF cookie not set issue

2015-09-11 Thread Kevin Anyanwu
Can anyone help ? On Thu, Sep 10, 2015 at 8:34 PM, Kevin Anyanwu wrote: > base_1.html > > > > > > > goals > > > > > > > > > > > > > Cirriculmn > Notes > Collaborte >

Re: CSRF cookie not set issue

2015-09-12 Thread Kevin Anyanwu
hen submitting via JS though. > > -James > On Sep 11, 2015 7:56 PM, "Kevin Anyanwu" wrote: > >> Can anyone help ? >> >> On Thu, Sep 10, 2015 at 8:34 PM, Kevin Anyanwu >> wrot

Possible bug with forms and arrays? Multiple forms on one view and Array fields in Models ---: Django and Postgres

2015-12-01 Thread Kevin Geyer
I get a strange error and I can't find the solution. The view is used to create data entries for a user but with an option to go back and edit hence the singular view to deal with an update... The code works with only one form being pulled into the view but not with several, then it gives a non

External DB layout, two column as PK, modification not possible

2018-08-01 Thread Kevin Olbrich
+ lineid is PK and I have to keep it like this (foreign table). Is there a workaround for this? Is it still impossible to define such PK on latest Django? Kind regards Kevin -- You received this message because you are subscribed to the Google Groups "Django users" gr

Show FK as input instead of drop down in admin

2021-01-27 Thread Kevin Olbrich
accomplish this? Thank you! Kind regards Kevin -- 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...@googlegroups.com. To view this dis

can I use django authentication in already created mysql database with user data?

2021-03-10 Thread Kevin Thomas
I am creating a web app and I need to authenticate the login. The username and password is already stored in mysql database. Can I use django for authentication of existing data? It will be great help if anyone knows the answer. -- You received this message because you are subscribed to the Go

Book

2024-01-31 Thread Kevin Tuo
Hello, Please can I get a book for building a portfolio website with django? Envoyé à partir de Outlook pour Android -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emai

Re: Book

2024-02-03 Thread Kevin Tuo
il.com>> wrote: why don't you learn directly from a tutor? On Thu, Feb 1, 2024 at 3:14 AM Kevin Tuo mailto:tuokev...@gmail.com>> wrote: Hello, Please can I get a book for building a portfolio website with django? Envoyé à partir de Outlook pour Android<https://aka.ms/AAb9ysg>

Re: Book

2024-02-03 Thread Kevin Tuo
t you learn directly from a tutor? On Thu, Feb 1, 2024 at 3:14 AM Kevin Tuo mailto:tuokev...@gmail.com>> wrote: Hello, Please can I get a book for building a portfolio website with django? Envoyé à partir de Outlook pour Android<https://aka.ms/AAb9ysg> -- You received this

[no subject]

2024-02-03 Thread Kevin Tuo
Ô Envoyé à partir de Outlook pour Android -- 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...@googlegroups.com. To

Re: Exciting Opportunity: Join Our Django WhatsApp Bulk Messaging Project!

2024-02-18 Thread Kevin Tuo
I agree to join the Django group! On Sun, 18 Feb 2024, 4:48 pm SURAJ TIWARI, wrote: > 🚀 Join Our Django WhatsApp Bulk Messaging Project! > > 👋 Hello everyone, > > Are you looking for an exciting opportunity to gain hands-on experience in > Django development? Do you want to work on a meaningful

Re: Candidacy for the Contract Full Stack Django Engineer role

2024-07-01 Thread Kevin Anand
No worries! On Sat, Jun 29, 2024 at 9:20 PM Gobi Dasu wrote: > I am so sorry for sending this to the wrong email address. Please forgive > me. I meant to send it to the individual. > > On Sat, Jun 29, 2024 at 11:18 PM wrote: > >> Hi Bernard, >> >> We commend your dedication to pioneering AI-ena

Re: Freelance Opportunity : Django Developer for building A Dialer

2024-08-29 Thread kevin kipruto
Hello, is the opportunity still available? On Mon, 29 Jul 2024, 15:49 yaamoussa-solution, wrote: > Je suis interesse > > Le mar. 2 avr. 2024 à 17:20, Abhishek J a > écrit : > >> Dear Developers, >> >> I need to build an android and IOS phone dialer similar to Truecaller. >> >> We are seeking e

how can i update one model field and save that data into an other model

2019-09-06 Thread kevin irankunda
Hi i'm Kevin and i'm new in python and django i want if one between student suggestion and staff suggestion's status == "approved" that data to be sent in appointment model my models are: statuses=[ ('accepted','Approve'), ('den

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 Dj

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: 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,

Django save all data

2019-11-03 Thread kevin trinidad
I have this code in my html Required Documents: {% for d in doc %} {{d.Description}} {% endfor %} This is my code in **views.py** V_insert_data = StudentsEnrollmentRecord( Student_Users=studentname, Payment_Type=payment,

Re: Djangorest framework tutorial

2019-11-04 Thread kevin trinidad
Django Signals: The QuerySet value for an exact lookup must be limited to one result using slicing i have this code in my models.py (post_save) class StudentsEnrolledSubject(models.Model): Students_Enrollment_Records = models.ForeignKey(StudentsEnrollmentRecord, related_name='+', on_

Re: Does the "manifest_strict" attribute on "ManifestFilesMixin" work?

2019-11-14 Thread Kevin Dublin
Hi Chris, DId you ever find a solution to this? Because I'm encountering a very similar error. --Kevin On Monday, October 1, 2018 at 4:29:45 AM UTC-7, Chris Bergstresser wrote: > > Hi all -- > >For some reason, I get a "Missing staticfiles manifest entry" e

Re: SPA websites with Django

2019-11-14 Thread Kevin Dublin
Hi Inna, Yes. You can setup Django with a single view and page, then use a frontend framework like Vue, React, or anything else to manipulate that single page as your application. I hope this helps! Cheers, Kevin On Thu, Nov 14, 2019, 4:49 AM Michael Thomas wrote: > Django is a back

Re: Problem django-allauth

2019-11-15 Thread Kevin Dublin
Are you in your virtual environment? And installing with virtualenv or pipenv vs just pip? On Fri, Nov 15, 2019, 11:06 AM Nemanja Marković wrote: > I want to install django-allauth however it throws me a code error: > > Traceback (most recent call last): > File "c:\program files\python37-32\li

Re: Link a .css to a Html template

2019-12-02 Thread Kevin Dublin
Hi Leo, Make sure that you point to the exact directory where the CSS file is located. If it's in static/pages/frame.css, then point to {% static "pages/frame.css" %} Cheers, Kevin On Mon, Dec 2, 2019, 11:15 AM Leó Horváth wrote: > hi! i still cant make it work. this is m

Re:

2019-12-04 Thread Kevin Dublin
Hmm, do you mean that you would like to post a get response with a message and it pass through the URL? Are you trying to pass it to another view? I want to clarify because it involves changing the view, template & urls.py. On Wed, Dec 4, 2019, 12:23 AM Karan Mittal wrote: > I think he wants to

Re: Static files configuration

2019-12-18 Thread Kevin Dublin
Hey, try this: In settings: # If running collectstatic STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') # make sure if you have multiple apps that you want to direct to specific location of static files STATIC_DIRS = ( os.path.join(BASE_DIR, '../apps/core/static'), ) Finally if you're us

Re: send data to database

2019-12-24 Thread Kevin Dublin
orms/modelforms/ This is a pretty thorough guide: https://simpleisbetterthancomplex.com/article/2017/08/19/how-to-render-django-form-manually.html Cheers! Kevin Kevin Dublin Etched Press Editor Author of *How to Fall in Love in San Diego <http://kevindublin.com/how-to-fall/>* Foll

Re:

2020-01-14 Thread Kevin Dublin
against a working example. Cheers, Kevin On Tue, Jan 14, 2020, 12:39 PM Kasper Laudrup wrote: > Hi Yusuf, > > On 14/01/2020 16.31, yusuf abdul wrote: > > why is my carousel not changing veiw > > > > Try spinning it around a bit. That usually gives some new pe

Has anyone ever deployed a Django project that uses Pyo to Heroku?

2020-02-13 Thread Kevin Dublin
_linux_wheel_fix_symlinks File "/app/.heroku/python/lib/python3.6/site-packages/pyo/_linux_wheel_fix_symlinks.py", line 88, in libasound = ctypes.CDLL(libasound, mode=ctypes.RTLD_GLOBAL) File "/app/.heroku/python/lib/python3.6/ctypes/__init__.py", line 348, in __i

Re: Log out problems

2007-04-24 Thread Kevin Hoang Le
Please see the solution in my blog : http://pragmaticobjects.org/index.php?itemid=23 Let me know if that doesn't work for you. Kevin Hoang Le On Apr 11, 4:39 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 4/11/07, jeffhg58 <[EMAIL PROTECTED]> wrote: > &g

django-admin.py startproject mysite

2013-04-12 Thread Kevin Le Bouthillier
django-admin.py startproject mysite unrecognized command. Why is the python+django setup instructions so unclear? -- 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 emai

<    1   2   3   4   5