Re: A learner following a Mosh Tutorial on Django and having a problem saving a product to SQLite

2020-05-30 Thread Iain Stewart
a2ad2f14-0144-4ce8-9100-c107b8b36d22%40googlegroups.com?utm_medium=email_source=footer> > . > -- Iain Stewart 2b Priestfield Road EDINBURGH EH16 5HH SCOTLAND iain.a.stew...@gmail.com telephone: 0044 131 662 9123 mobile: 0044 7728 752824 -- You received this message because you are subsc

Re: A learner following a Mosh Tutorial on Django and having a problem saving a product to SQLite

2020-05-30 Thread Iain Stewart
cr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/5cf0bf92-5773-43a3-a273-4ccfdb61734c%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/5cf0bf92-5773-43a3-a273-4ccfdb61734c%40googlegroups.com?utm_medium

Re: A learner following a Mosh Tutorial on Django and having a problem saving a product to SQLite

2020-05-06 Thread Iain Stewart
ot; group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/06d0ec9b-9860-4a90-ba93-031217256161%40googlegroups.com

Re: A learner following a Mosh Tutorial on Django and having a problem saving a product to SQLite

2020-05-04 Thread Iain Stewart
that is still not working, thanks for all your help though, any other ideas appreciated. Could it be that I need an older version of sqlite as this Mosh tutorial was in 2018? Iain On Mon, 4 May 2020 at 20:44, Iain Stewart wrote: > worked it out, it is: py manage.py sqlmigrate products 0

Re: A learner following a Mosh Tutorial on Django and having a problem saving a product to SQLite

2020-05-04 Thread Iain Stewart
worked it out, it is: py manage.py sqlmigrate products 0001 but I am still not being able to connect into the database from django admin. On Mon, 4 May 2020 at 20:41, Iain Stewart wrote: > HI Nomeh, > > Thanks for that. I have deleted the migration files, and made migrations > ag

Re: A learner following a Mosh Tutorial on Django and having a problem saving a product to SQLite

2020-05-04 Thread Iain Stewart
; -- > 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 discussion on the

Re: A learner following a Mosh Tutorial on Django and having a problem saving a product to SQLite

2020-05-03 Thread Iain Stewart
; > On Sat, May 2, 2020 at 10:33 PM Jorge Gimeno > wrote: > >> >> >> On Sat, May 2, 2020 at 7:43 AM Iain Stewart > > wrote: >> >>> Hi Folks, >>> >>> I am a learner and am enjoying learning Django so far (about a month >>&

Re: A learner following a Mosh Tutorial on Django and having a problem saving a product to SQLite

2020-05-03 Thread Iain Stewart
On Saturday, 2 May 2020 18:34:03 UTC+1, jlgimeno71 wrote: > > > > On Sat, May 2, 2020 at 7:43 AM Iain Stewart > wrote: > >> Hi Folks, >> >> I am a learner and am enjoying learning Django so far (about a month >> in). I am doing the Mosh Python Tutorial fo

A learner following a Mosh Tutorial on Django and having a problem saving a product to SQLite

2020-05-02 Thread Iain Stewart
Hi Folks, I am a learner and am enjoying learning Django so far (about a month in). I am doing the Mosh Python Tutorial for Begnniners on You Tube and in trying to save my first product on the Django admin/ products page and got the following error. I suspect the problem is between Django and

Re: Using forms to handle request.GET data?

2019-04-03 Thread Allen Stewart
On Tuesday, April 2, 2019 at 2:12:50 PM UTC-7, Carsten Fuchs wrote: > > Dear Django group, > > I would like to show users a form that they can use to customize the view, > for example a ChoiceField from which the year of the report can be chosen. > It seems straightforward to use a forms.Form

Re: Generating a list of available templates

2014-10-28 Thread William Stewart
I know this thread has been dead for over 2 years, but I've been trying to solve this problem or a similar problem today for a library I'm working on. I've only tested it with the filesystem and app_directories loaders, but the code I've got to so far looks like this: for loader in

could someone please help me with - http://stackoverflow.com/questions/18204733/django-taggit-prevent-overlapping-tags-across-different-models Thanks!

2013-08-22 Thread Andrew Stewart
-- 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 post to this group, send email to django-users@googlegroups.com.

could someone please help me with the following SO doubt on creating a db migration with south - http://stackoverflow.com/questions/18320225/migrating-an-existing-app-via-south Thansks!

2013-08-19 Thread Andrew Stewart
-- 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 post to this group, send email to django-users@googlegroups.com.

Processing uploaded file before save

2013-08-13 Thread Stewart Johnston
Hi all, I'm trying to put together a little site that handles document uploads. There needs to be a little bit of processing of the document I call save(). I'm putting this in as part of the model, since I want it to work in the admin interface as well as via a webform, so my code currently

selected admin actions for a user, who is owner of one of the tenants in a multi tenant django crm app

2013-06-19 Thread Andrew Stewart
Hi Group, could someone please help me with - http://stackoverflow.com/questions/17184386/providing-admin-actions-to-group-members-in-a-multi-tenant-django-crm-applicatio Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

creating a realtime push notification service as in facebook and stackoverflow using redis

2013-06-04 Thread Andrew Stewart
Hi Group, I am interested in replicating the notification as in facebook if something happens, or as happens in stackoverflow, when you see the red colored bubble. I understand that the redis pub-sub can be used. I do not want to use the Server Side Events. Could someone please guide me

help regarding celery implementation with django

2013-05-14 Thread Andrew Stewart
Hi Group, I want to do some stuff with redis for my django application, the backend is majorly PostgreSQL. I have a detailed question here - http://stackoverflow.com/questions/16537490/connecting-my-django-app-to-the-redis-installation Help would be appreciated, thanks! -- You received this

Pre-populating forms with foreign keys

2009-12-16 Thread Stewart
Disclaimer: This is my first Django adventure, please be gentle. I am currently working on a model that has a foreign key pointing to itself. This foreign key is not mandatory. Think of a post in a forum. The post will have a number of replies. The post itself will not have a foreign key however

Re: Inherit/Override custom Form class methods in a custom ModelForm class

2009-02-01 Thread Stewart
That's perfect. Thanks to both of you. --~--~-~--~~~---~--~~ 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 group, send

Inherit/Override custom Form class methods in a custom ModelForm class

2009-01-30 Thread Stewart
Hi. I have a subclass of Form with some of my own methods in it, what would be the best way of getting those methods into a ModelForm subclass. For example: class MyForm(forms.Form): def as_span(self): “format form in a html span” return self._html_output(u' %(field)s’, False) class

Re: Inheret/Override custom Form class methods in a custom ModelForm

2009-01-30 Thread Stewart
Opps :) Continued... class MyForm(forms.Form): def as_span(self): # format form in a html span How can I get the as_span method into ModelForm without rewriting it? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Inheret/Override custom Form class methods in a custom ModelForm

2009-01-30 Thread Stewart
Hi. I have a a subclass of Form with some of my own methods in it, what would be the best way of getting those methods into a ModelForm subclass. For example: class MyForm(forms.Form): --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: more study case on django

2008-03-31 Thread Stewart
I have found the Django project web site has been the best resource so far. It's fantastic, there is so much detail and everything I have needed to know is covered simple and clear way. Is there anything you are looking to specifically do? On Mar 31, 7:37 pm, Marco <[EMAIL PROTECTED]> wrote: >

Re: Site level data models

2007-09-14 Thread Stewart
t kind of stuff, like non-app > related views, forms, middleware, models... etc. > > El vie, 14-09-2007 a las 03:09 -0700, Stewart escribi?: > > > Hi > > > I'm considering writing an web application in Django but I'm a little > > confused about the Site-App model. >

Site level data models

2007-09-14 Thread Stewart
. Is it possible to have a site level models.py, is there a way for one application to reference another's models, or do both forum and blog have to be part of the same application in order to share data? Thanks, Stewart. --~--~-~--~~~---~--~~ You received this message

Manipulate a List

2006-08-30 Thread Stewart
How would you write a maniplulator for a list of objects of the same class? --~--~-~--~~~---~--~~ 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

Re: Multiple rows in a form

2006-08-23 Thread Stewart
Hi Thanks for the reply. I *think* I get the forms stuff generally, the bit I'm having trouble with is having a maniplator deal with a list of objects of the same type. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google