Re: Unable to write to database

2023-05-23 Thread William Nash (Bill)
The system permission solved the issues. Thank you. On Monday, May 22, 2023 at 10:51:13 AM UTC-5 Dev Femi Badmus wrote: > I have similar error is due to system permission are you running on Linux? > > chown www-data:www-data /home/username/project-folder > > chown www-data:www-data /home/userna

Re: Unable to write to database

2023-05-22 Thread William Nash
I can get the website to come up, but I can't save anything to the database. Django is installed in a .venv folder and activated with source .venv/bin/activate. William Nash Padi Instructor#367103 (972) 372-4557 | wrna...@gmail.com Website: http://ascubadiving.com/ Texas Mason A.F.& A.

Re: Unable to write to database

2023-05-21 Thread William Nash (Bill)
I do not see any error messages. On Sunday, May 21, 2023 at 12:56:45 PM UTC-5 Abdulrahman Abbas wrote: > Send your error message > > On Sun, May 21, 2023, 18:54 William Nash (Bill) wrote: > >> I'm new to django and I'm trying to learn as I program a small web

Unable to write to database

2023-05-21 Thread William Nash (Bill)
I'm new to django and I'm trying to learn as I program a small website for my scuba diving business. I'm running into a error that when I try to add a diver the database does not update. When I goto http://localhost:8000/add_diver/add_diver/ I'm able to add a diver. My code is located at:

Re: Django Themes help

2023-05-02 Thread William Nash (Bill)
Thanks for your help. On Tuesday, May 2, 2023 at 10:24:28 AM UTC-5 ALBERT ASHABA AHEEBWA wrote: > I have centered the items and made a pull request. > > You can merge and see how it looks. > > > > Best Regards, > > Albert > > On Tue, 2 May 2023, 17:20 Will

Re: How to show image(static) files.

2023-05-02 Thread William Nash (Bill)
Try this. I'm still learning myself In your HTML file, you can use the img tag to display the image. To check if the QR code is true or false, you can use Django's views.py file. In your views.py file, write a function that will check the validity of the QR code. The function should redirec

Django Themes help

2023-05-02 Thread William Nash (Bill)
I'm working on a small program that will help me in my dive shop. Since I'm trying to learn to program in Python using Django, I wanted to create something to help me. My issue is I cannot figure out how to center items on my page. For example (see screen shot) My code is located on Github:

Django Tutorial

2020-03-19 Thread Eddie Nash
I am going through the tutorial yet when I check to see if it is working, I get this error code. Please help me fix this! Exception in thread django-main-thread: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 932,

Re: Filter object by calculating duration from start and end time

2016-01-19 Thread Steven Nash
That's fine as am using Postgres on centos 7 Cheers Steve Sent from my iPhone > On 19 Jan 2016, at 21:19, Simon Charette wrote: > > Hi Steve, > > It looks like it might only work on PostgreSQL unti this bug is fixed. > > Simon > > Le mardi 19 janvier 20

Re: Filter object by calculating duration from start and end time

2016-01-19 Thread Steven Nash
n__gte=timedelta(minutes=time_in_minutes) > > > Cheers, > Simon > > Le mardi 19 janvier 2016 13:01:36 UTC-5, Steven Nash a écrit : >> >> Hi, >> >> Given an object such as: >> >> class Entry(models.Model): >> start = models.Ti

Filter object by calculating duration from start and end time

2016-01-19 Thread Steven Nash
Hi, Given an object such as: class Entry(models.Model): start = models.TimeField() end = models.TimeField() I'd like to be able to say something like: Entry.objects.filter(F('end')-F('start')__gt=time_in_minutes) Is there a way of doing this without implementing a separate duration field

Re: Django project for multiple clients

2015-03-26 Thread Steven Nash
application > which isolate each tenant in it's own PostgreSQL schema. > > You could also build you own solution using a middleware and a database > router. > > Simon > > Le jeudi 26 mars 2015 12:23:38 UTC-4, Steven Nash a écrit : >> >> We are design a DJan

Django project for multiple clients

2015-03-26 Thread Steven Nash
We are design a DJango based application to be used my multiple clients. Each client will have there own database but share the same code base. In the past, when I've done something like this, I have configure a separate virtual host for each client. This time we are thinking about using URL r

Re: name 'request' is not defined

2009-11-10 Thread nash
rlpatterns = patterns('', # Example: # (r'^foo/', include('foo.urls')), (r'^work/$', 'portfolio.views.work'), # Uncomment this for admin: # (r'^admin/', include('django.contrib.admin.urls')), ) On Nov 11, 4:

name 'request' is not defined

2009-11-10 Thread nash
ne have any idea what is wrong ? cheers nash --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this gro

Re: How to create a newforms label unattached to an input field?

2009-05-12 Thread Nash-t
et(attrs={'class':'special'}) On May 11, 9:15 pm, George Song wrote: > On 5/11/2009 12:29 PM,Nash-twrote: > > > I apologize if this is a dumb newbie question... > > I am trying to create a newform label that doesn't have an associated > > input field.

How to create a newforms label unattached to an input field?

2009-05-11 Thread Nash-t
I apologize if this is a dumb newbie question... I am trying to create a newform label that doesn't have an associated input field. This label is used as a title for a set of input fields. I don't want to use django templates because of the way the form/data is passed around and saved on the serv

Re: contrib admin and admindocs problem

2008-10-12 Thread Nash
I get this error, you can see a paste here: http://dpaste.com/83932/ The admin site doesn't work on production at all, on the testserver it works after a refresh. On Oct 11, 4:40 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Fri, Oct 10, 2008 at 4:45 PM, Michael Graz <[EMAIL PROTECTED]>wrote

Re: Validation Implementation (architectural question) with newforms

2008-07-18 Thread Nash
Yesh, this looks like the fix. Thanks alot Karen! On Jul 18, 8:01 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Fri, Jul 18, 2008 at 10:47 AM, Nash <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > There are loads of places to validate your data

Validation Implementation (architectural question) with newforms

2008-07-18 Thread Nash
Hi all, There are loads of places to validate your data in django. You can do it at the Model's field, at the Model.save() at the form's field level clean_FIELD_NAME(), at the form level clean_data() etc. If I have an Model with an email field, where do I write the validator for it? Considering

REAL BRUTAL RAPE VIDEOS HERE.SEE IT AND ENJOY. ALL THE GIRLS WERE

2008-04-14 Thread nash . coccer
REAL BRUTAL RAPE VIDEOS HERE.SEE IT AND ENJOY. ALL THE GIRLS WERE SCREAM .BUT IT IS SWEAT.THE LINK IS BELOW http://onlinemillionare.blogspot.com/ ENJOY HOW SWEET IT IS --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Date Problem

2007-07-17 Thread Nash
Dear all, I am running django pre-0.97 on a linux box. the date command on linux and in python datetime.now() both give me the correct times. However, in one of my models, there is a datetime attribute 'created_on' with default=datetime.now(). The default value going is is not the same as that of

How can I group fields in admin view of edit_inline foreign models?

2007-06-25 Thread Nash
How can I group fields in admin view of edit_inline foreign models? The fields tuple in admin takes fields; can I specify foreign models which have edit_inline in them? Thanks for your help as always --~--~-~--~~~---~--~~ You received this message because you ar

New Django (& Python) user. FormPreview Question

2007-06-24 Thread Nash
Hi All, I've been studying Django over this weekend and so far its really amazing and the kind of thing which makes you say its about damn time someone made something so cool :) However, I was saddened a bit to know that some of the very very cool features have not been released yet and are unde