Re: www.djangoproject.com

2010-07-12 Thread Nick Raptis
. Maybe it has something to do with it, maybe it doesn't. Haven't got any more trouble since I fixed it though. Glad I could help :) Nick -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Re: www.djangoproject.com

2010-07-14 Thread Nick Raptis
lse with the same problem here could provide you with the offending value. Nick -- 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.com. To unsubscribe from this gro

Re: www.djangoproject.com

2010-07-15 Thread Nick Raptis
p to the djangoproject.com and djangobook.com maintainers a heads-up on this is issue, so they can cater for it. Nick -- 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.com

Re: www.djangoproject.com

2010-07-15 Thread Nick Raptis
) your obliged new-guy, Nick -- 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.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com

Re: Django memory requirements

2010-07-19 Thread Nick Arnett
g time. It was only when I started doing some heavier analysis that I had to bump up to Shared 2. Nick -- 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.com. To un

Splitting LONGTEXT column to its own table?

2010-08-02 Thread Nick Arnett
ave to re-write every piece of code that uses those tables. In other words, I'm looking at vertical partitioning, but only across tables, not databases, as transparently as possible to the code that I've already written. Thanks in advance for any pointers. Nick -- You received thi

Re: Splitting LONGTEXT column to its own table?

2010-08-02 Thread Nick Arnett
;t think of views. Haven't used them in a while, but that's worth a shot, I think, since that way, I might not have to touch the Django code at all. Nick -- You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: Splitting LONGTEXT column to its own table?

2010-08-02 Thread Nick Arnett
rties in the original model > to map the names you have in your application. Interesting idea... anybody here ever tried anything like that? Nick -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Django IDE

2010-08-03 Thread Nick Arnett
On Sun, Jul 18, 2010 at 10:19 AM, Biju Varghese wrote: > Eclipse is the best IDE for python and django. > > I don't know if it is actually the best, but I'm happy with it. Nick -- You received this message because you are subscribed to the Google Groups "Django users

Querying in a loop - cached results?

2010-08-08 Thread Nick Arnett
he loop, but that didn't help - thought maybe if I explicitly deleted the data, that would work. Any ideas what's going on or how to solve this? TIA, Nick -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Querying in a loop - cached results?

2010-08-08 Thread Nick Arnett
On Sun, Aug 8, 2010 at 11:52 AM, Daniel Roseman wrote: > > > Where is this query running - in a view, or an external script? And > how is the data being added to the db? In both cases -- adding data and analyzing -- it is an external script, using the Django ORM. Nick -- You r

Re: Querying in a loop - cached results?

2010-08-08 Thread Nick Arnett
c06dfor >> more explanation. > > Ah, I didn't think of that. Didn't even think about the fact that there are transactions going on behind the curtain. I'll look into that. Nick -- You received this message because you are subscribed to the Google Groups "Django

Re: I did something wrong while registered

2010-08-09 Thread Nick Arnett
looked at the headers of a pair of messages to see if you are receiving them on different email addresses? If so, just unsubscribe with one of them. If not, well, you need further help! Nick -- You received this message because you are subscribed to the Google Groups "Django users&quo

Re: Ordering in the admin

2010-08-13 Thread Nick Serra
You can go two directions with this. First, you could use a intermediate model for the many to many join, which would allow you to specify extra field on the join, in this case the order. Read up on this here: http://docs.djangoproject.com/en/dev/topics/db/models/#extra-fields-on-many-to-many-relat

Re: How to check for m2m orphans before deleting an object?

2010-08-13 Thread Nick Serra
Look into the clear() method on many to many relations. Calling .clear() before a delete will remove all relations between the models and allow you to delete the category only. You might be fighting the django admin on this though, so this would be best implemented in a custom solution. Not sure if

Re: Ordering in the admin

2010-08-16 Thread Nick Serra
: > Thanks Nick, > I tried the first solution first. > You're right, the many to manys aren't editable on that page, but the > problem is, I'm not seeing another admin page for the new join model: > > class FilmmakerPosition(models.Model): >          fil

Re: Ordering in the admin

2010-08-16 Thread Nick Serra
bject has a first name and last name. > I'm not sure where to start on this one, any help would be greatly > appreciated. > Thanks, > Wendy > > On Aug 16, 12:45 pm, Wendy wrote: > > > > > Thanks, Nick, I just figured that out, doh!  So I got the first > > exa

Re: Ordering in the admin

2010-08-16 Thread Nick Serra
gt;                         {% for filmmaker in filmmakers %} >                            {% if filmmakers|length > 2 and not forloop.first > %}, {% endif > %} >                            {% if forloop.last and not forloop.first %}and {% > endif %} >                               {{filmmake

Re: Ordering in the admin

2010-08-16 Thread Nick Serra
trying to match the id. > > I'm going to read about filtering a little more, feels like it's > close... > (I also tried to put film_id in the parens after filter and got a "too > many values" error.) > So much to learn, thanks

Re: manage.py syncdb not working

2010-08-24 Thread Nick Arnett
ld table manually to match how Django would have done it automatically (and then drop the temporary table). Nick -- 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.com. To uns

Re: Strange problem accessing JS for admin

2010-08-25 Thread Nick Tankersley
Steve Holden wrote: > On 8/25/2010 9:54 AM, Nick wrote: > > Stranger still, I can get to the /media/js/admin/ > > RelatedObjectLookups.js but not the jquery library > > > > > > On Aug 24, 4:51 pm, Nick wrote: > >> I have a model set up to use collapsable inl

Re: Universal form

2010-09-24 Thread Nick Arnett
your users aren't allowed to see any page without logging in. See http://www.mail-archive.com/django-develop...@googlegroups.com/msg06473.html <http://www.mail-archive.com/django-develop...@googlegroups.com/msg06473.html> Nick On Fri, Sep 24, 2010 at 8:23 AM, Tran Cao Thai wrote:

Re: problem with saving a form

2010-09-27 Thread Nick Serra
You're just all around doing it wrong. A ModelForm is used so that you don't have to individually list all the fields you need, it is based off the model. What is the code for your Model? And also, I'd reread the form reference from the start. On Sep 26, 5:25 pm, Marc Aymerich wrote: > On Sun, Se

Re: Full Text Search

2010-09-30 Thread Nick Arnett
g client, involving Django/MySQL full text and parametric search and they loved it... so it's on my mind. If you don't get a real answer by tomorrow afternoon, I may be conscious again then. You have to use one of the alternative approaches to search, as I recall. Brain is mush, though. Ni

Re: Full Text Search

2010-10-01 Thread Nick Arnett
On Fri, Oct 1, 2010 at 3:52 AM, Alessandro Ronchi < alessandro.ron...@soasi.com> wrote: > > > On Fri, Oct 1, 2010 at 3:35 AM, Steve Holden wrote: > >> On 9/30/2010 8:26 PM, Nick Arnett wrote: >> > Brain is mush, though. >> >> > Thank you.

Escaping text for raw SQL?

2010-10-12 Thread Nick Arnett
on't see an escape function exposed in Django. Anybody know a good way to do this? TIA, Nick -- 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.com. To unsubscribe fro

Re: Escaping text for raw SQL?

2010-10-12 Thread Nick Arnett
On Tue, Oct 12, 2010 at 9:00 AM, Javier Guerra Giraldez wrote: > On Tue, Oct 12, 2010 at 10:46 AM, Nick Arnett > wrote: > > Anybody know a good way to do this? > > Words.objects.filter(foo__in=mylist) Didn't even occur to me to not use raw SQL for this, but I could... tr

Re: Escaping text for raw SQL?

2010-10-12 Thread Nick Arnett
sc(s): > return replace("'", "''") Am I going brain dead, or isn't there more than just quotation marks that need to be replaced? This code is a back-end processing script, so there is no danger of SQL injection by anybody (except me). Nick -- Yo

Re: What is the best way to implement time-based / cronjob actions in a Django app?

2010-10-13 Thread Nick Arnett
rting *, I usually just import the models I need for that script. I like keeping all that housekeeping stuff separate from the web app. Nick -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

MySQL locking problem

2010-10-14 Thread Nick Arnett
00:00:00', `body` = 'This is the | +-+-+-+---+-+--++--+ Anybody have suggestions for tracking this down? Nick -- You received this message because you are subscribed to the Google Groups "Django users"

Re: CI

2010-11-16 Thread Nick Lo
Hi Johannes, You may be interested in this project: https://github.com/kmmbvnr/django-hudson Cheers, Nick On Nov 14, 5:36 am, Johannes Nel wrote: > answering my own questions here: > > By the looks of things I will stick with hudson for now, I found some > information on cover

Re: Key 'buscar' not found in "

2010-11-25 Thread Nick Arnett
nk targets to > "http://localhost:8000/search/?page=2"; > instead of something like this: > "http://localhost:8000/search/?option_value1=7&option_value2=3&page=2"; > There is any way to maintain the searchred url and indicate wich is > the next page? You nee

Re: Project optimisation stage: Advice to boost speed of database queries across tables?

2009-12-30 Thread Nick Arnett
pe`.`id`, `common_addresstype`.`adrtype` FROM `common_addresstype` WHERE `common_addresstype`.`id` IN (1,6,8,52,173) I imagine there's an ORM query that will do the same thing, but I know MySQL far better than I know Django. Nick -- You received this message because you are subscribed to t

Re: Python based web reporting tool?

2010-01-07 Thread Nick Lo
> I have a question for those of you doing web work with python. Is > anyone familiar with a python based reporting tool? I am about to > start on a pretty big web app and will need the ability to do some end > user reporting (invoices, revenue reports, etc). It can be an existing > django app or

Re: Seeking Django developer for contract work

2010-01-08 Thread Nick Lo
> We have an RFP for 3 web-based prototype applications. We have posted > to various freelance sites and I was wondering if anyone here could > advise where to post to ensure we get a Django solution proposed. http://djangogigs.com/ -- You received this message because you are subscribed to the G

Re: Documentation for graphic designers

2010-01-15 Thread Nick Lo
job of focusing in on the Django template system, specifically focusing on what a Web designer would need to know to work well with a back-​end developer." http://heisel.org/blog/2009/01/10/django-template-development-revie/ Nick-- You received this message because you are subscribed to t

Re: [Announcing] News about Geraldo Reports

2010-01-27 Thread Nick Lo
want to impress clients or bosses it matters a LOT. I don't think the new site is appealing to clients or bosses and more to the point, I think it would just completely confuse them. Cheers, Nick -- You received this message because you are subscribed to the Google Groups "Dj

Re: Newbie Django Mac OS X suggestions.

2010-01-31 Thread Nick Lo
agrees with you Dave. I've found that keeping as close to the Apple supplied tools usually works out easier in the long run. Particularly with regards to OS updates etc. Nick -- You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Import problems, Windows, Python26, SVN checkout

2010-02-02 Thread Nick Mellor
odule in c:\python26\lib\site-packages\django Can anyone help? Thanks, Nick -- 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.com. To unsubscribe from this group, send em

Re: Added-value over PHP?

2010-02-02 Thread Nick Lo
s on what you mean by "interactive". You should get a good idea of how much you can do with Django here: http://www.djangosites.org/ Cheers, Nick -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Re: Import problems, Windows, Python26, SVN checkout

2010-02-03 Thread Nick Mellor
est wishes, Nick On Feb 3, 1:16 pm, Sam Lai wrote: > On 3 February 2010 12:28, NickMellor wrote: > > > > > > > Hi, > > > Trying to get started with Django on Windows XP. Trying to create a > > project. Fails with: > > > ImportError: No module named

Tutorial 1: AttributeError at /time/ 'module' object has no attribute 'now'

2010-02-09 Thread Nick Mellor
; datetime.datetime.now() datetime.datetime(2010, 2, 10, 5, 17, 21, 218000) Any ideas? Thanks, Nick -- 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.com. To unsubscribe

Re: Tutorial 1: AttributeError at /time/ 'module' object has no attribute 'now'

2010-02-09 Thread Nick Mellor
Thanks Shaun, I renamed the "now" variable as "dt" but it didn't help. I've also tried your 1-tuple idea-- no change. Note that the offending line isn't the html assignment but: now = datetime.datetime.now() On Feb 10, 6:22 am, Shawn Milochik wrote: > Perhaps replace the bare 'now' with a tupl

Setting from address for internally generated emails

2010-02-10 Thread Nick Booker
st. This is despite the DEFAULT_FROM_EMAIL being set correctly to a globally-valid address and working elsewhere. How do I get Django to use a from address of my choice when sending these error emails? Nick Booker Clockwork Software Systems these are still getting dropped you need to set

Re: Setting from address for internally generated emails

2010-02-10 Thread Nick Booker
Sorry I correct myself -- I meant it always has a from address of r...@localhost, which the customer's relay rejects. On 10/02/10 14:54, Nick Booker wrote: Hi all. Django keeps sending out emails with the subject: [Django] Error (EXTERNAL IP): /path_to_some_file.css The problem I ha

Re: Setting from address for internally generated emails

2010-02-10 Thread Nick Booker
I'll try that. I did look at the docs, but obviously not hard enough. Thanks for your help. Nick On Feb 10, 3:11 pm, Karen Tracey wrote: > On Wed, Feb 10, 2010 at 10:01 AM, Nick Booker wrote: > > Sorry I correct myself -- I meant it always has a from address of > > r...@

Re: Setting from address for internally generated emails

2010-02-11 Thread Nick Booker
Thank you, that has worked. On 10/02/10 15:11, Karen Tracey wrote: On Wed, Feb 10, 2010 at 10:01 AM, Nick Booker mailto:n...@clocksoft.com>> wrote: Sorry I correct myself -- I meant it always has a from address of r...@localhost, which the customer's relay rejects. SERV

Re: How to set an Admin form field value before displaying the form?

2010-02-11 Thread Nick Booker
eason not to store first and last as separate fields, and join the names when you present them on screen / in reports? That would save having to make assumptions about the number of first and surnames people enter (someone could enter 'Barton Hartley' as a double-barreled surname for

Re: Union of two querysets?

2010-02-16 Thread Nick Booker
Yes you can do a union. Use the "|" (pipe) operator. union = queryset1 | queryset2 or you can replace queryset1 with the union as follows: queryset1 |= queryset2 Nick On 16/02/10 02:39, rebus_ wrote: On 16 February 2010 03:28, ydjango wrote: I have two query sets with two

Re: "Illegal mix of collations": how to handle that?

2010-02-27 Thread Nick Arnett
set ? Is this not handled by django (I would expect some > error before submitting the data to the database)? You probably need to fix this in your database, which I'm guessing is MySQL. Change all your tables and columns to UTF8 and this should disappear. Solving it on the Python side wil

Re: form object has no attribute 'cleaned_data'

2010-03-31 Thread Nick Arnett
On Wed, Mar 31, 2010 at 9:09 PM, jeff wrote: > >page_title='Add a Pair' >if request.method == 'POST': >form=SymForm(request.POST) >if form.is_valid: is_valid is a call - you want this: if form.is_valid():

Re: using "id" as a field name in ModelForm.

2010-04-01 Thread Nick Arnett
Field(widget = forms.HiddenInput) Nick -- 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.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegrou

Re: Getting strange email from "dreamhost"

2010-04-01 Thread Nick Arnett
s being bad and not including the headers from the original message, or it would be obvious which subscription is causing it. And now I'll get another one. Nick -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: Hosting for Django sites

2010-04-04 Thread Nick Lacey
ng based in Europe? If so, could anyone recommend a Europe based host? Many thanks, Nick -- 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.com. To unsubscribe from this

querying on a field equal to a manytomany object

2010-04-12 Thread Nick Serra
Hey everyone, thanks for looking. I couldn't think of a good title for this one. I have a question on queries on manytomany relations. Here is an example: class Item: genre = models.ForeignKey(Genre) class Genre: name = models.CharField() class Video: genre = models.ManyToManyField(G

Re: determining if a one-to-many relation exists

2010-04-12 Thread Nick Serra
You could query like this: Question.objects.filter(answer__isnull=False) This would give you a set of questions where an answer exists. Setting it to True would give you a set where answers don't exist. On Apr 12, 12:20 pm, Jim N wrote: > Just to clarify, I'm trying to filter questions that hav

Re: determining if a one-to-many relation exists

2010-04-12 Thread Nick Serra
l) On Apr 12, 1:32 pm, Jim N wrote: > Yes!  That's it!  Thank you. > > On Apr 12, 1:21 pm, Nick Serra wrote: > > > > > You could query like this: > > > Question.objects.filter(answer__isnull=False) > > > This would give you a set of questions where

Re: querying on a field equal to a manytomany object

2010-04-12 Thread Nick Serra
ref/models/querysets/#in > > Item.objects.filter(genre__in=some_video.genre.all()) > > On Apr 12, 10:03 am, Nick Serra wrote: > > > > > Hey everyone, thanks for looking. I couldn't think of a good title for > > this one. I have a question on queries on

Could you please share your django-based website source code with me?

2007-07-01 Thread nick feng
th me ? Thank you very much! I promise that your codes is only used for my studying django. Best wishes, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: newbie having difficulty with sqlite

2007-07-04 Thread nick feng
I think you should create the books file by yourself, the sqlite3 may not have the ability to create the file in your file system. - Original Message - From: "walterbyrd" <[EMAIL PROTECTED]> To: "Django users" Sent: Thursday, July 05, 2007 2:25 AM Subject: newbie having difficulty with

Re: An idea on DB migration

2007-07-04 Thread nick feng
The django has already provided the way to use SQL, I don't think this is needed. - Original Message - From: "Noam" <[EMAIL PROTECTED]> To: "Django users" Sent: Thursday, July 05, 2007 2:40 AM Subject: An idea on DB migration > > > Hello, > > I have an idea on how DB migration can

Re: No module named _md5

2007-07-05 Thread nick feng
It' seems that the md5 is not a middleware, but you have write it in the setting.py file's middleware setting part. - Original Message - From: "e-gor" <[EMAIL PROTECTED]> To: "Django users" Sent: Friday, July 06, 2007 2:59 AM Subject: No module named _md5 > > > I have python 2.5.1,

Which database is better for django, PostgreSQL or MYSQL?

2007-07-11 Thread nick feng
Which database is better for django, PostgreSQL or MYSQL? --~--~-~--~~~---~--~~ 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 thi

About create a database table dynamicly

2007-07-14 Thread nick feng
Hi, I had to create a table in the database according to the users' input imformation. Django seems has no topic about this, anyone has any idea on it?Thank you Best wishes, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed t

About create a database table dynamicly

2007-07-14 Thread nick feng
Hi, I had to create a table in the database according to the users' input imformation. Django seems has no topic about this, anyone has any idea on it?Thank you Best wishes, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: About create a database table dynamicly

2007-07-14 Thread nick feng
Hi Carl, Thank you, I have resended the mail again, thanks . best wishes, nick - Original Message - From: "Carl Karsten" <[EMAIL PROTECTED]> To: Sent: Sunday, July 15, 2007 12:33 AM Subject: Re: About create a database table dynamicly > > > nick feng wrote

Re: About create a database table dynamicly

2007-07-16 Thread nick feng
Hi Ned, Thanks for your reply. First, your question is my doubt. And my problem is, if I did the same thing as you said, I will create a table contains a great deal of data in it, this may cause the "select" operation very slow, the users may feel it hard to suffer from Best Wi

Re: mod_python problem?

2007-07-22 Thread nick feng
honDebug On If you used mysite, mysite should always in your urls, the mod_python will not found the right view if you did not add mysite in the urls. Best wishes, Nick - Original Message - From: James McManus To: django-users@googlegroups.com Sent: Monday, July 23, 200

About django's ImageField type

2007-07-26 Thread nick feng
Imaging Library. When should we define the filed as ImageField? Best wishes, Nick --~--~-~--~~~---~--~~ 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@googlegro

Re: Help installing Psycopg2 and/or MySQL-python on OS X

2007-09-02 Thread Nick Fishman
On Sep 2, 9:37 pm, "Todd O'Bryan" <[EMAIL PROTECTED]> wrote: > Looks like you're missing some header files... > > Maybe postgres didn't put everything where it needed to be. You also may > need the dev packages for postgres. The problem is, indeed, in the development packages. There's a package c

ANN: PyAMF 0.1 released

2008-02-11 Thread Nick Joyce
We released PyAMF 0.1, a lightweight library that allows Flash and Python applications to communicate via Adobe's ActionScript Message Format. AMF3 and RemoteObject are supported in all the implemented Remoting gateways, currently supported for Django, Twisted and WSGI. A summary of new features

Resolving dynamic dictionary parameters in templates

2008-02-21 Thread Nick Fishman
nts']['Jul'], and so on for each month in the months list. But instead, Django seems to be doing mapping['incidents']['month'] each time. Is there any way to resolve the dynamic "month" variable inside the mapping.incidents.month call? Something

Re: Resolving dynamic dictionary parameters in templates

2008-03-07 Thread Nick Fishman
nderstand how. Especially if the alternative is using numbered tuples or nesting more and more dictionaries inside of dictionaries. Thanks for the push in the right direction! Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: Resolving dynamic dictionary parameters in templates

2008-03-08 Thread Nick Fishman
rn resolve_variable(key,value) > > -Justin Thanks, Justin. This does an even better job. I think the frequency of this issue shouts louder than ever that this filter should be in Django by default :-) Nick --~--~-~--~~~---~--~~ You received this message because you

Re: Multiple apps on one template

2008-03-08 Thread Nick Fishman
_list': latest_events_list}) Then home.html would be exactly like your current template for events.html. The idea is to combine both lists into a single view. Add another line to your URLS, like (r'^home/', 'sakushi.events.views.home'), And you'll be set. Nick

Re: Db not being populated for foreignkey

2008-03-09 Thread Nick Fishman
'm doing wrong? > > Thanks, > Duncan > This might be off the mark, but I thought I'd check. The first thing that comes to mind is database syncing. Did you remember to run ./manage.py syncdb after making those changes in the code? Nick --~--~-~--~~~

Using primary key ID in file upload location?

2008-03-09 Thread Nick Day
es to a folder using the ID of the record. For example - I'm adding a record with an autogenerated primary key ID of "12" - so I would like my photos to be uploaded to "/media/12/" when I click the Save button for that record. Hope somebody here can sug

Re: Using primary key ID in file upload location?

2008-03-10 Thread Nick Day
arly important other than me being a perfectionist :) Cheers, Nick --~--~-~--~~~---~--~~ 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 T

Gradually porting an established site to Django

2008-05-08 Thread Nick Mellor
attern it can't handle. Is this true? How can I get Django to handle some URL patterns, and leave others to the "old" site code? Many thanks for any hints to get me going. Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed

Better Image Uploads: Fake Model Fields?

2008-05-13 Thread Nick Retallack
Currently it seems like it could be pretty disastrous to let users upload their own files, as you can see from this ticket: http://code.djangoproject.com/ticket/2983 Of course, one solution is to name your files after the pk of the record they're associated with, so new uploads will overwrite old

Re: Row-level permissions, recommendations?

2008-05-14 Thread Nick Day
gh date when we think newforms-admin will be released, and/or a RLP patch? Cheers, Nick On May 6, 3:44 pm, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > On 5/6/08, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > > > > >  What's the state of the art forrow-l

Re: auth context processor setup

2008-06-22 Thread Nick Sandford
se try: from django.template import RequestContext ... render_to_response('some/template.html', context_instance=RequestContext(request)) Hope this helps, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: testing login problem

2008-07-03 Thread Nick Sandford
s IndustryTest(TestCase): >fixtures = ['/fixtures/initial_data.xml'] > > >def setUp(self): >self.client = Client() >response =self.client.post('/ibms/login/', > {'username':'laspal', 'passw

Re: about newforms

2007-04-09 Thread nick feng
Hi Christian, Have you read the www.djangobook.com? I think it's better for you to read www.djangoproject.com/documentation/ It's will help you with every case of your project. Best Wishes, Nick - Original Message - From: "Christian Hoppner" <[EMAIL PROTECT

Re: Need guidance on multiple domain site configuration.

2007-04-24 Thread Nick Tidey
> files. The only problem I can see is if you specify a different DB in > each settings.py, you'll need to create the same admin accounts in > each. > > -Robin > > On Apr 24, 7:22 am, Nick Tidey <[EMAIL PROTECTED]> wrote: > > > Hello all. > > > I

Need guidance on multiple domain site configuration.

2007-04-24 Thread Nick Tidey
o handle this. I'm looking to host the sites on a WebFaction shared account. Thanks Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Re: Need guidance on multiple domain site configuration.

2007-04-24 Thread Nick Tidey
f which there aren't many). Unfortunately it didn't work anyway. Django's escaping of the SQL arguments means you end with a table called "SCHEMA_PREFIX.model" in the public schema. I'll do it your way. Nick On Apr 25, 1:29 pm, Doug Van Horn <[EMAIL PROTECTED]> wrot

Re: noobie db problems

2006-05-21 Thread Nick Hristov
I forgot to mention that I am using django point release 0.91. Nick On 5/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hey all, I am just starting with django; I think it is really cool, a big break from Java/Struts dev for me. Anyways, I am experimenting with a simple blog app.

Many to many relationship with intermediate class and sorting

2006-08-10 Thread Nick Lane
once I got up to speed, and the various blogs around in the Django community helped a lot with this. Thanks guys! Cheers for any help, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Many to many relationship with intermediate class and sorting

2006-08-11 Thread Nick Lane
."position" FROM "albums_albumphoto" WHERE ("albums_albumphoto"."album_id" = 1) ORDER BY "albums_albumphoto"."photo__rating" DESC Obviously I can't order by photo__rating like I was thinking. I'm getting the feeling I'm puttin

Re: Many to many relationship with intermediate class and sorting

2006-08-11 Thread Nick Lane
return self.select_related().order_by('-albums_photo.rating') I had to prefix the table with the app name (as per docs), and also had to use select_related() since the default queryset didn't have the related fields selecte

Threading Issues running sqlite3 in apache

2006-02-16 Thread Nick Matsakis
on how the apache threads are accessing the database Can anyone tell me if I am on the right track here? Or even help me solve this problem? Nick Matsakis Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "/opt/local/li

Eliminating inter-request race conditions

2021-12-27 Thread Nick Farrell
Hi all. I've been using Django for quite a number of years now, in various ways. Most of the time, I find myself needing to create custom solutions to solve what appears to be a very common problem. During the Christmas downtime, I decided to scratch this itch, and am putting together what wi

Re: Eliminating inter-request race conditions

2021-12-28 Thread Nick Farrell
with this either way, if only to use internally, if there isn't general interest. cheers, Nick. On Tuesday, 28 December 2021 at 21:35:09 UTC+11 carste...@cafu.de wrote: > Hi Nick, > > maybe this is a case for optimistic locking? > Does the thread at > https://groups.goog

Re: Automatic subdomain for each user

2021-12-30 Thread Nick Farrell
Once you have the TLS certificates and routing working, can't you make a tiny piece of middleware which takes the hostname (provided via nginx/apache in a request header) and add an attribute on the request which corresponds to your virtual site? e.g. (dodgy untested code follows): def multisit

"include super" with django templates?

2021-12-30 Thread Nick Farrell
I would like to extend a django template which is used via the include macro. That is, I want to add additional output before or after what would otherwise be emitted. With the normal {% block %} syntax, it's easy to use super to follow the template heirachy similar to __mro__ - but to my knowl

Re: Eliminating inter-request race conditions

2021-12-31 Thread Nick Farrell
es, I agree it needs to support that, and by embedding the original values into each form in the formset, it should correctly respect those values when the formset is submitted. If it's of any assistance, I can push some code and provide some examples for you to try out. The same app I am

Re: Eliminating inter-request race conditions

2022-01-08 Thread Nick Farrell
hange, the end-user would see the same thing on the form, and would not alter their behaviour. The value here is in showing a user that one of the fields they are in the process of editing has changed while they have had the form open, and ensuring that they do not accidentally clobber someone el

Re: Is there a function that returns common elements in multiple lists

2022-01-26 Thread Nick Farrell
>>> a = {1, 2, 3} >>> b = {2, 3, 4} >>> a & b {2, 3} On Wednesday, 26 January 2022 at 23:52:05 UTC+11 xaadx...@gmail.com wrote: > a = [1,2,3,4] > b = [3,4,5,6] > > Convert list a to set > a_set = set(a) > print(a_set.intersection(b)) > > On Wed, Jan 26, 2022, 5:47 PM Muhammad Shehzad wrote: > >>

Re: HOW TO RUN DJANGO PROJECT

2022-07-22 Thread nick washington
How do you want my help On Fri, Jul 22, 2022, 18:08 Edward Deus Misogoro wrote: > Please help > > -- > 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-u

<    1   2   3   4   5   6   7   >