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
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
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
'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
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
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
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
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
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
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
--~--~-~--~~
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'
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
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
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:
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
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
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
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.
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
[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
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
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
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
23 matches
Mail list logo