Re: strategy for deploying to production server

2008-09-24 Thread birkin
ing is that this will help folk who want to examine my code more easily get it up and running. - birkin / bspace.us --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: Multithreaded Dev Server

2008-11-16 Thread birkin
base url is the same, but in development, I specify the 127 localhost IP with a *different* port number than the usual 8000 (say, 8010). Then I open up a second terminal window and run the "python ./manage.py runserver 127.0.0.1:8010" command, and my app processes fine. -Birkin On

Re: Multithreaded development server

2009-01-26 Thread birkin
ice via the development server). A very simple solution in this edge-case of mine is to simply start up an additional terminal window and execute the runserver command again, specifying a selected port-number that matches the url for the web-service in my application settings fil

Re: Clean URL Design: List Views and Details Views

2009-04-17 Thread birkin
'url': '/your_store/products/ sorted_by_price/'} ), ...here the first three address the same url segment. This method would also allow you to get some characters into the url segment not permitted by the built-in slug code. -Birkin --- On Apr 16, 9:29 am, Aidas Bendoraitis wrot

file-download question

2009-11-01 Thread birkin
seNotFound( '404 / Not Found' ) ## access path = '%s/cats.jpg' % ( settings_app.FOLDER_PATH ) f = open( path, mode='rb' ) ## delivery response = HttpResponse( f ) return response # end def item() The error: mod_wsgi (pid=1196): Exception occurre

Re: file-download question

2009-11-01 Thread birkin
I forgot to note that the referenced mod_wsgi error is from the apache error log; it is *not* a django exception. But because of the nearly identical working code, I am suspecting my issue is with my django code. -Birkin On Nov 1, 7:21 am, birkin wrote: > ... > The error: > > m

Re: Session errors with mod_wsgi

2010-02-14 Thread birkin
David, A while ago I had a serialization error that may be relevant to your situation. Parts of the request object related to mod_wsgi were not serializable. Below is how I handled it (this is a views.py def). -Birkin [start] def variables( request, SSL=None ): from django.utils import

Re: Updating 1.10 to 1.11.1 and AttributeError

2017-05-26 Thread birkin
the cached files on the disk, the problem went away. Hope this helps, Jorge! -Birkin On Tuesday, May 23, 2017 at 9:34:27 AM UTC-4, Simon Charette wrote: > > Hello, > > Could you please share all of your INSTALLED_APPS? > > Are you using any kind of query caching? > > Thanks

Re: got error when use code of djangobook chapter 7 for searching

2008-01-20 Thread birkin
of indentation -- I use tabs I've configured in my editor to be 2 spaces. - Birkin --~--~-~--~~~---~--~~ 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@go

newforms file-upload troubleshooting

2008-01-31 Thread birkin
x27;filename' appears (i.e. 'house_pic.png'), not preceeded by 'test_uploads/' as above -- and the file is not uploaded to the 'test_uploads' directory or anywhere. - I'm running version 6401. Thanks much in advance. /birkin --~--~-~--~~

Re: newforms file-upload troubleshooting

2008-02-01 Thread birkin
Clarification: in the above two 'Relevant info' paragraphs, when I note that "the file name appears in the table's 'name' field", by 'file name' I'm referring to the optional user-supplied title of the file (i.e. 'picture of our house'

Re: newforms file-upload troubleshooting

2008-02-02 Thread birkin
Been experimenting & ruminating: I'm thinking the problem has something to do with this views.py line: file_instance.originalfile = cleaned_form_data['originalfile'] Will experiment more. --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: newforms file-upload troubleshooting

2008-02-03 Thread birkin
lete simple newforms upload example to djangosnippets.org. /birkin --~--~-~--~~~---~--~~ 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

confusing querying

2008-06-07 Thread birkin
I just posted some command-line interactive output at: http://dpaste.com/hold/55270/ The gist of the problem: >>> second_bunch = Subject.objects.all().order_by('name')[22:44] >>> second_bunch[0] # shows unexpected output ...but... >>> second_bunch = Subject.objects.all().order_by('name')[22:

Re: confusing querying

2008-06-08 Thread birkin
On Jun 7, 1:05 pm, Alex Koshelev <[EMAIL PROTECTED]> wrote: > When in your first example you call `[0]` it replaced earlier > `[22:44]` slicing... I know that is what is actually happening; I was wondering if that is what is supposed to happen, for it seems odd to be able to define, say, two va

Re: manage.py setting sys.path wrong

2007-05-17 Thread birkin
Hi all, Lukas' problem was solved thanks to your efforts, but I have the same error message that I can't figure out. Apologies for the long post; I thought the info might be useful. Thanks in advance. -Birkin -> Simple description of problem: bash-2.05$ bash-2.05$ python ./manage

Re: manage.py setting sys.path wrong

2007-05-17 Thread birkin
On May 17, 1:22 pm, Baurzhan Ismagulov <[EMAIL PROTECTED]> wrote: ... > bash-2.05$ PYTHONPATH=/export/home/myusername/django_src python manage.py ... That's it! Thanks *very* much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Authenticated user

2007-06-06 Thread birkin
ngoproject.com/wiki/CookBookThreadlocalsAndUser> Also see: <http://tinyurl.com/2tpbwf>, with it's associated link. -Birkin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: XML serializer

2007-08-06 Thread birkin
so it's iterable) that last error-line reads: SerializationError: Non-model object () encountered during serialization If I try passing in (now in desperate curiosity-stage) the class itself (again, in a list) I get: SerializationError: Non-model object () encountered during serialization It

Re: keeping SECRET_KEY secret

2007-11-03 Thread birkin
[etcetera] ...and then settings_local.py will look like: > # [start] > > # DEBUG = False # production > DEBUG = True # development - birkin > > DATABASE_ENGINE = 'mysql' > DATABASE_NAME = 'thedbname' > DATABASE_USER = 'theusername' > DATABASE_PAS

Re: Accessing Multiple Databases

2007-12-13 Thread birkin
projects/mysql-python http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65235 -Birkin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-user

Re: file-download question

2009-11-01 Thread Birkin James Diana
googling mod-wsgi & pickling, and python file pickling, so I won't. (I sometimes think that if developers would spend more time asking questions than banging their heads, we'd be up to web-8.0 by now.) A sincere thanks again. -Birkin On Nov 1, 2009, at 7:58 AM, Karen Tracey wr

form_for_model and limit_choices_to

2007-07-15 Thread Birkin James Diana
I've created a newforms form using form_for_model(). The problem I'm having is that two fields are not respecting part of the field definition in the model; I'm hoping I'm overlooking something. The end result I want is for a scanner select-menu to show only scanners, and a camera select-me