On 18/01/13 02:43, Barun Saha wrote:
Puneet,
Were you able to solve this problem? I have been searching a solution
for this almost the entire day!
For the particular error that Puneet is having, I suspect that he should
be using:
ModelName.objects_search(name_first="Spike")
instead of:
Mo
On Fri, Jan 18, 2013 at 12:50:26PM -0800, Dex wrote:
> From my server log, i get the following message when I click on a cell:
> "POST /target_spot/1/0/ HTTP/1.1" 500. Any ideas on how to solve this?
> Thanks!
Don't you have debug enabled? It should give you a more complete track of the
error.
hello Dex,
you did not tell us what browser you are testing your AJAX request on.
Maybe you experience this Chrome behavior:
http://develissimo.com/blog/2013/ajax-not-working-chrome-ie8/
Good luck
>Raphael
--
You received this message because you are subscribed to the Google Groups
"Django use
> If you're going to install it as a python package, either install it to
> the system or to the user that mod_wsgi executes under or into a python
> virtualenv. Basically you need to ensure that it's on the python path
> for the user running the wsgi. You can add additional paths to the wsgi
What happens if you type the url in directly in the browser's location bar
(you will
have to disable the request.is_ajax() test temporarily)? If the server is
in debug
mode, you should get a stack trace that is more informative.
Also, assuming that you've shown us all of the view code, you may ne
Hi Everyone
I have the following in my project's urls.py (watch_detail is a dictionary
with some parameters):
urlpatterns = patterns('',
> url(r'^watches/(?P\d+)/$', list_detail.object_detail,
> watch_detail, name='watch_detail'),
> )
However, the following line in a template returns an erro
I typed typed the url of my ajax POST and I get the message "unicode object
does not support item assignment". Here is the traceback link:
http://dpaste.com/882866/
On Saturday, January 19, 2013 8:05:06 AM UTC-5, ke1g wrote:
>
> What happens if you type the url in directly in the browser's locat
Hello Dex,
forget my story about Chrome/Chromium issue if you have been testing
with FF.
This was a first shot into the dark. sorry.
Concerning your error message:
'unicode' object does not support item assignment
This error pops up when you try to alter immutable string objects.
Please check y
game.creator_target_board[int(spot)] = "X"
Exception Type: TypeError at /target_spot/1/0/
Exception Value: 'unicode' object does not support item assignment
So your trouble is that game.creator_target_board[int(spot)] is an immutable
str object.
so you have to rethink your strategy.
create ne
Raphael,
Seems like the problem might be in my models. My view code that tries to
access the model is:
@csrf_exempt
def target_spot(request, game_id, spot):
game = fetch_game(request.user, game_id)
game.creator_target_board[int(spot)] = "X"
return HttpResponse('/')
game.creator_targ
@ Dex,
So you want to store the actual game state in the db to recover
game-session-data after a period of time
and/or to perform game logic on the server side.
well I am sure you already know it, but there are approaches to handle
array fields within the django ORM.
example: http://www.djangopa
On Saturday, 19 January 2013 13:15:42 UTC, robzyb wrote:
> Hi Everyone
>
> I have the following in my project's urls.py (watch_detail is a dictionary
> with some parameters):
>
> urlpatterns = patterns('',
>> url(r'^watches/(?P\d+)/$', list_detail.object_detail,
>> watch_detail, name='watch_deta
@Raphael
Exactly what you said. I'm trying to build a "Battleship" game app with
Django, and I want to be able save the game state in the db so I can
revisit it later if I quit the game before it is finished.
Thanks for the links provided. I'm new to Django and still fairly new to
programming
Raphael,
Exactly what you said. I'm trying to build a "Battleship" game app with
Django, and I want to be able save the game state in the db so I can
revisit it later if I quit the game before it is finished.
Thanks for the links provided. I'm new to Django and still fairly new to
programming
Hi,
I've got some data that I'll need read/write access to for the length of an
authenticated session's lifetime. But once that browser tab is closed or
the user logs out or the user session times out, I want that data to
disappear.
If I'm reading the session docs correctly, if I add the data
I do not know how I missed that. I did read the documentation, but
obviously not very thoroughly.
Thank you very much for the help. I shall be more careful in the future.
On Sunday, January 20, 2013 4:40:46 AM UTC+11, Daniel Roseman wrote:
>
> On Saturday, 19 January 2013 13:15:42 UTC, robzyb wr
You've told us that you've "rebuilt" your Django server, but you haven't
told us what you mean by that.
*What* has happened is that your groups and permissions tables are empty.
Django groups and permissions are standard Django models; Permissions are
populated automatically when a model is synchr
On Sat, Jan 19, 2013 at 3:03 PM, wrote:
> If I'm reading the session docs correctly, if I add the data to the session
> object, it'll get persisted, which I don't want.
i think you _do_ want it to be persisted.
remember that HTTP is a stateless protocol. to have it even slightly
scalable (anyt
Ok, you've made a very convincing argument. I really haven't spent much time
thinking about scalability -- obviously it's time for me to do so!
Thanks for taking the time to respond.
Spork
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To vi
I would like to develop an Android app and leverage Facebook SDK for
Android for user authentication instead of requiring users to register
another account in my App. No browser access to Django is needed.
After users log in Facebook successfully, the SDK will return a token, I
would like to sen
If I understand correctly, you just need to set
SESSION_EXPIRE_AT_BROWSER_CLOSE = True in your settings:
https://docs.djangoproject.com/en/1.4/topics/http/sessions/#browser-length-sessions-vs-persistent-sessions
When the user closes their browser, the session ends. True, the
associated data isn't
21 matches
Mail list logo