Re: Django 5.0

2023-12-13 Thread Pete Doherty
Not yet, but database generated model fields look pretty compelling! On Wednesday, December 13, 2023 at 9:15:21 AM UTC-5 attah paul wrote: > any review on the Django from you guys -- You received this messag

Re: Django 4.2, PyPy and Postgres

2023-12-12 Thread Pete Doherty
Interestingly, I can confirm that using Psycopg 3 *does *seem to work. I only got it working a few minutes ago, so it has not been thoroughly tested but my test suite passes, which is very encouraging. Thanks for the nudge, Jason. On Tuesday, December 12, 2023 at 10:51:29 AM UTC-5 Pete Doherty

Re: Django 4.2, PyPy and Postgres

2023-12-12 Thread Pete Doherty
e a reason you're on psycopg2cffi? have you tried with regular > psycopg2? > > On Monday, December 11, 2023 at 3:19:11 PM UTC-5 Pete Doherty wrote: > >> I'm wondering if anyone is using Django 4.2, PyPy 3.10 and Postgres 15? >> >> I tried using psycopg2cff

Django 4.2, PyPy and Postgres

2023-12-11 Thread Pete Doherty
I'm wondering if anyone is using Django 4.2, PyPy 3.10 and Postgres 15? I tried using psycopg2cffi==2.9.0 and it works up until a point but eventually fails with a series of errors relating to imports. After adding the compatibility layer to the top of my settings.py script using: > from psyco

Detect and address Django/Graphene performance issues

2023-12-09 Thread Pete Doherty
s me hope that others have found ways around this problem. So, in summary, has anyone here encountered and addressed a similar issue? Are there more insights to be gained from deeper or better profiling? Is this performance overhead just the reality of trying to marshall 10k+ objects out of SQ

Displaying multiple documents

2014-08-08 Thread pete
Hi, I wondered if it's possible to display multiple word documents/ excel documents in a Django website look and feel? ie create a document highlevel name, then table of contents, and can move next item in the table of contents or previous. The ability to search. Cheers! Thanks -- You re

New to django,need help! just trying to retrieve values from a template to a view.py (ie user may input text, make choice selection, select a radio button value)

2013-10-30 Thread pete
Hi New to django,need help! just trying to retrieve values from a template to a view.py (ie user may input text, make choice selection, select a radio button value) like to know the poll list section, market selection, coupon code, and discount text, and poll choice selection from radio button

Re: multi model forms

2011-03-01 Thread Pete
Yeah, I bet that lastname is required=True (which is default). You probably want to redefine lastname to avoid that. On Mar 1, 5:25 am, David De La Harpe Golden wrote: > On 28/02/11 23:13, django wrote: > > > hi guys > > I am new to django. > > > I have got two model User(Django built in ) and a

Django include templates problem, from 0.96 to 1.2

2011-02-28 Thread Pete.
Hi folks, I using google app engine, in 0.96 I have no problem to include a template as following {% include "../header.html" %} However, in 1.2 the code above not functioning?? Any idea? -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Collaborative text editor with Django

2011-02-25 Thread Pete
I was looking into doing this too! Ethereal is written in java so we either need to port the code or use jython. Hookbox would be a good alternative. If anyone has done 'multiplayer' in Google docs or spreadsheet then they will see the value of this app On Feb 24, 12:35 pm, Piotr Zalewa wrote:

Re: Best DRY practices for a view function that will be used by all other views.

2011-02-05 Thread Pete Corsaro
hort, your form needs to POST to some URL (I.e. /login or something like that). You can post to that URL from any page. Just make sure your URL patterns maps the URL the form is posting to your login view code and it'll work like you want. Good luck, Pete On Feb 5, 7:58 pm, Ken Chida wrote: &g

Updates on DjangoCon US 2011?

2011-01-14 Thread Pete
DjangoCon Europe 2011 just got announced: http://www.djangoproject.com/weblog/2011/jan/14/djangocon-eu-2011-announced/ I was wondering if there are any updates on DjangoCon US 2011? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Re: ANN: PyMySQL 0.3

2010-09-04 Thread Pete Hunt
patch soon that tries to import MySQLdb but falls back to pymysql if it is not available. Pete On Sep 3, 5:20 pm, Andy wrote: > Pete, > > Would you recommend PyMySQL for production use? > > Which parts of Django do I need to modify in order to use it with > PyMySQL

ANN: PyMySQL 0.3

2010-09-03 Thread Pete Hunt
I’m proud to announce the release of PyMySQL 0.3. For those of you unfamiliar with PyMySQL, it is a pure-Python drop-in replacement for MySQLdb with an emphasis on compatibility with MySQLdb and for various Python implementations. I started working on the project due to my frustrations stemming fro

Re: rendering to template help

2010-05-27 Thread Pirate Pete
rawstars which works fine on other pages that dont require this individual selection. I don't quite understand this error: "Caught an exception while rendering: a float is required" thanks in advance On May 25, 7:58 pm, Daniel Roseman wrote: > On May 25, 10:30 am, Pirate Pe

Re: rendering to template help

2010-05-25 Thread Pirate Pete
7:10 pm, Daniel Roseman wrote: > On May 25, 9:52 am, Pirate Pete wrote: > > > Thank you very very much for your reply. > > > There is still a few things i need to grasp. > > > Firstly, why did you do this : > > annotate(rating_count=Count('rating')).annot

Re: rendering to template help

2010-05-25 Thread Pirate Pete
You sir have saved me many a headache, i can't honestly thank you enough All the best! On May 25, 7:10 pm, Daniel Roseman wrote: > On May 25, 9:52 am, Pirate Pete wrote: > > > Thank you very very much for your reply. > > > There is still a few things i need to grasp.

Re: rendering to template help

2010-05-25 Thread Pirate Pete
d passed into the render or just run like you stated above? thanks again! On May 25, 6:08 pm, Daniel Roseman wrote: > On May 25, 6:09 am, Pirate Pete wrote: > > > > > I have been trying to get some kind of kind response from django for a > > few days now and it has been ve

rendering to template help

2010-05-24 Thread Pirate Pete
I have been trying to get some kind of kind response from django for a few days now and it has been very unkind to me :P basically i need to create a page that has a video title (link) and an average rating with the amount of people that rated it in brackets. so it will look like ... Awesom video

Re: Setting User as foreign key

2010-05-17 Thread Pirate Pete
Turns out i simply had to drop all the tables in the database, flush then syncdb and everything worked fine. thanks for your help :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.

Setting User as foreign key

2010-05-17 Thread Pirate Pete
aught an exception while rendering: no such column: video_rating.user_id if anyone could point my in the right direction it would be much appreciated thanks in advance, pete -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send emai

Re: Can base.html template contain dynamic content if used by direct_to_template

2009-06-25 Thread Pete-Sitedesign
OK Thanks for that. I have worked out that the context_processors route is best for this one but the template_tags is ideal for another part I was working on. Thanks for the help. Regards Pete On Jun 25, 9:29 pm, Alex Gaynor wrote: > On Thu, Jun 25, 2009 at 3:27 PM, Pete-Sitedes

Django contract available (200 hours estimated) £6000 GBP

2009-06-25 Thread Pete-Sitedesign
We have a contract available for offer. We have been left with a project which our programmers started (about quarter way complete) for one of our clients. Our programmers have now left us so we are left with a client wanting the project finishing. It would need someone with quite a bit of Djang

Re: Can base.html template contain dynamic content if used by direct_to_template

2009-06-25 Thread Pete-Sitedesign
On Jun 25, 9:22 pm, Alex Gaynor wrote: > On Thu, Jun 25, 2009 at 12:23 PM, Pete-Sitedesign < > > peter.king.sitedes...@googlemail.com> wrote: > > > I want to build a site which has latest news on the side of all the > > pages, I wanted to build the pages

Can base.html template contain dynamic content if used by direct_to_template

2009-06-25 Thread Pete-Sitedesign
I want to build a site which has latest news on the side of all the pages, I wanted to build the pages using simple templates (static content) and then reference them using the direct_to_template in the urls file. Since each template extends base how can I get base to contain the latest news or d

Re: Access extra parameters in forms.py

2009-02-20 Thread pete
Fantastic! that fixed it. Thank you soo much, been driving me crazy for days now, Pete On Feb 20, 4:40 pm, Daniel Roseman wrote: > On Feb 20, 2:40 pm, pete wrote: > > > > > Hi Daniel, > > > This has got me closer but i'm now just getting an empty select box &g

Re: Access extra parameters in forms.py

2009-02-20 Thread pete
eason its not appending to the form. The following is a print out of all_users: (('Anyone', 'Anyone'), ('Pete Randall', 'Pete Randall'), ('Chris Smith', 'Chris Smith')) Could it have something to do with that list not being in the right

Re: Access extra parameters in forms.py

2009-02-20 Thread pete
when super() is called it build the form? Thanks again, Pete. On Feb 20, 12:30 am, Malcolm Tredinnick wrote: > On Mon, 2009-02-16 at 08:49 -0800, peterandall wrote: > > Hi all, > > > I'm trying to access a list of users in forms.py I'm creating two > > lists and

Re: Problems using mptt

2008-03-10 Thread Pete Crosier
Are you using 0.96 (you're using __str__ so I'd guess you are)? Django's ugettext was introduced in the unicode merge that occured after 0.96's release. On Mar 10, 12:18 am, Tim Adler <[EMAIL PROTECTED]> wrote: > Hey everybody, > > I'm trying to added mptt to my django project for managing a simp

Re: Using primary key ID in file upload location?

2008-03-10 Thread Pete Crosier
Currently, Django won't overwrite uploaded files, it'll append a "_" to the filename until it's unique. Django does let you organise files by strftime formatting - http://www.djangoproject.com/documentation/model-api/#filefield - it might be worth checking djangosnippets.org or searching in the b

Re: UTF-8 encoding

2008-03-10 Thread Pete Crosier
It's worth reading the notes on the database backends, which go into detail about how to setup your database for Django / Django for your database - http://www.djangoproject.com/documentation/databases/ On Mar 10, 5:51 am, "M.Ganesh" <[EMAIL PROTECTED]> wrote: > Hi All, > > I am using MySQL. How

Re: upload progress bar #2070

2008-03-08 Thread Pete Crosier
All the fun of middleware can be found here - http://www.djangoproject.com/documentation/middleware/ On Mar 8, 6:38 pm, binaryj <[EMAIL PROTECTED]> wrote: > hi group, > i have patched my cvs build of django with patch #2070. the patch > works well and is great except that it throws very little li

Re: MEDIA_ROOT, what am I doing wrong?

2008-03-05 Thread Pete Crosier
I think you're over-estimating Django a little when it comes to serving media - check out http://www.djangoproject.com/documentation/static_files/ for details, it requires a little more work. On Mar 5, 6:19 pm, "Monica Leko" <[EMAIL PROTECTED]> wrote: > In settings.py I have: > MEDIA_ROOT = 'C:/

Re: initial value not working when used with SelectDateWidget

2008-03-05 Thread Pete Crosier
Ganesh - http://groups.google.com/group/django-users/post - try again ;D On Mar 5, 2:32 pm, "M.Ganesh" <[EMAIL PROTECTED]> wrote: > Hi, > > I want to show the current date in the Date field. It works > 'SelectDateWidget' when I use the default widget. If I use > 'SelectDateWidget' then I always g

Re: Problem with SYNCDB

2008-03-05 Thread Pete Crosier
You need to make sure MySQL is up and running, and that the database settings in your settings file are correct - I've seen this error when I've simply forgotten to start MySQL. On Mar 5, 1:25 pm, "Nicola Greco di Notsecurity.com" <[EMAIL PROTECTED]> wrote: > I'm using debian, with apache (not ap

Re: problems with url tag

2008-03-05 Thread Pete Crosier
More than one match for one {% url view args %} doesn't sound right, you can name your patterns to clear up any ambiguity - http://www.djangoproject.com/documentation/url_dispatch/#naming-url-patterns On Mar 5, 2:30 am, msoulier <[EMAIL PROTECTED]> wrote: > So, my urlconf is > > urlpatterns = pat

Re: MEDIA_URL doesnt work

2008-02-22 Thread Pete Crosier
Have a look at the links below, I think you're over-estimating what MEDIA_URL does for you - http://www.djangoproject.com/documentation/static_files/ http://www.djangoproject.com/documentation/settings/#media-url On Feb 22, 7:54 pm, troeten <[EMAIL PROTECTED]> wrote: > Hi, > i have a problem with

Re: Two fields foreign key of same table

2008-02-13 Thread Pete Crosier
Read the message a little closer, it tells you what to do.. each ForeignKey field needs a related_name to distinguish it from the other. On Feb 13, 10:33 am, "Sairam Krishnamurthy" <[EMAIL PROTECTED]> wrote: > Hi, > > I have a table structure like this. > > class Componentdependencies(models.Mode

Re: AssertionError on a model

2008-02-06 Thread Pete Crosier
A model can only use one field as its primary key and Distributequeue.objects.get() should only return one object. http://www.djangoproject.com/documentation/model-api/#primary-key http://www.djangoproject.com/documentation/db-api/#get-kwargs Cheers, Pete. On Feb 6, 12:11 pm, Nader <[EM

Simple architecture question

2008-01-06 Thread Pete McVicar
some obvious other way that I've missed? Cheers, Pete -- www.menace.co.nz --~--~-~--~~~---~--~~ 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@googleg

Re: Links not working after svn 6915

2007-12-14 Thread Pete Crosier
I'd have a read of http://www.djangoproject.com/documentation/middleware/#django-middleware-common-commonmiddleware and http://code.djangoproject.com/changeset/6852/ - looks like it could be a change of behaviour. On Dec 14, 3:21 pm, "Matt Davies" <[EMAIL PROTECTED]> wrote: > Hello everyone > >

Advice for Rusty Python Programmer and New Django Consumer

2006-08-30 Thread Pete Abilla
Group:Any book Advice or good Sites to visit for a Rusty Python Programmer and New Django Consumer (aka - me)?-- Pete Abillablog: www.shmula.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q