User being logged out without explicitly calling auth.logout

2009-06-12 Thread Robocop
I'm having an issue when traversing a link on my site. When clicking this link, I'm properly routed to the page, however the user i am logged in as is logged out for no reason. The link is part of a menu that looks as such: Home Add Projects View Projects {% if user.is_staff %} Add

Problems with .htacces and dispatch.fcgi on shared hosting platform

2009-06-04 Thread Robocop
Hello Again, In pursuing a solution to one problem, i seemed to have created another. After playing around a bit with my dispatch.fcgi script, i started getting django application errors. After some frustration i restored my scripts to the half working state they were in when i had started.

Re: ModelForm problems, Programming Error 1146

2009-06-02 Thread Robocop
9 at 5:09 PM, Robocop <btha...@physics.ucsd.edu> wrote: > > > Hello, > > I'm trying to deploy another developer's blog code, and have run into > > some snags with their ModelForm for adding entries. > > > The segment of code that triggers the error in my views.py

ModelForm problems, Programming Error 1146

2009-06-01 Thread Robocop
Hello, I'm trying to deploy another developer's blog code, and have run into some snags with their ModelForm for adding entries. The segment of code that triggers the error in my views.py: http://dpaste.com/50238/ The model and modelforms for both the blog, and for the entries:

Re: Confused by attribute error

2009-03-30 Thread Robocop
, Karen Tracey <kmtra...@gmail.com> wrote: > On Mon, Mar 30, 2009 at 2:23 PM, Robocop <btha...@physics.ucsd.edu> wrote: > > > So the fun continues.  I realized that i did not need to use the > > login_required decorator on this function since it's just tossed > &

Re: Confused by attribute error

2009-03-30 Thread Robocop
with this code, it worked flawlessly. Ridicule and ideas are greatly appreciated. On Mar 30, 10:33 am, Robocop <btha...@physics.ucsd.edu> wrote: > Sorry for the delay, i've been sidetracked multiple times in the last > few days.  The code is post here: > > http:

Re: Confused by attribute error

2009-03-30 Thread Robocop
Sorry for the delay, i've been sidetracked multiple times in the last few days. The code is post here: http://dpaste.com/21221/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Confused by attribute error

2009-03-27 Thread Robocop
Also i don't comment until i put my code into production (bad habit, yes i know :x), so let me know if you need me to throw in some dirty comments to make it more readable. On Mar 27, 3:21 pm, Robocop <btha...@physics.ucsd.edu> wrote: > On Mar 27, 3:05 pm, Briel <toppe...@gmai

Re: Confused by attribute error

2009-03-27 Thread Robocop
On Mar 27, 3:05 pm, Briel wrote: > Hi. > It would be really helpful to be able to look at your function as > well. My > Guess is that the problem lies there, since this is happening when you > call the function. Even if the problem is within django it would be a > lot >

Confused by attribute error

2009-03-27 Thread Robocop
Hello again, So i'm working on some of my old code, and a previously (or so i remember) function no longer works. When calling it my django page posts the error: AttributeError at /audit_sheets/TEST/ 'list' object has no attribute 'user' Request Method: POST Request URL:

Django Admin site customization

2009-03-23 Thread Robocop
I have a couple of questions i would think have some pretty straightforward answers, answers i've been unable to dig up in the docs. All i want to do in my admin interface is be able to specify the name of a field via admin.py (i.e. have the name of a field on the backend come from admin.py, not

Re: Template POST problems

2009-03-13 Thread Robocop
Ick, stupid mistake, as i thought. Thanks for the help! On Mar 13, 1:58 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Fri, Mar 13, 2009 at 1:44 PM, Robocop <btha...@physics.ucsd.edu> wrote: > > > Hello Again, > > > Now i don't believe this to be a dja

Template POST problems

2009-03-13 Thread Robocop
Hello Again, Now i don't believe this to be a django-ccentric problem, but because i'm running this as a django project, i thought i'd cover all my bases and post here. I have a page i'm doing a simple webmaster contact form on, and i'm doing it the same way i have on other sites:

Re: signals in 1.0 problem: nesh django utils & django 1.0

2009-02-09 Thread Robocop
Holy crap it is! Thanks for the idea, i'm going to do a lil testing and verify everything works. Thanks again! On Feb 9, 10:21 am, Jake Elliott <j...@dai5ychain.net> wrote: > hi robocop - > > is it enough to add the '**kwargs' syntax to your receiver function? > or is th

signals in 1.0 problem: nesh django utils & django 1.0

2009-02-09 Thread Robocop
Hello, I've recently been porting many projects to 1.0, but have hit a snag with the current one. I'm looking at an old project that uses nesh's django utils (mainly just the thumbnail image field model), and have been slowly porting the project (and by extension nesh's code) to 1.0. Now i have

Potential django configuration issues

2009-01-13 Thread Robocop
I'm importing old projects into a new django install (same version, no problems there), and it's seems to be boiling down to a mysql (running with the same version of mysql) issue. When i try to visit the main page of a specific project i get an error like: OperationalError at / (1017, "Can't

Re: Importing old projects into a fresh django installation

2009-01-12 Thread Robocop
On Jan 12, 3:37 pm, "Karen Tracey" <kmtra...@gmail.com> wrote: > On Mon, Jan 12, 2009 at 6:20 PM, Robocop <btha...@physics.ucsd.edu> wrote: > > > Esteemed colleagues: > > > I've just built a small web server running django .97, with python > > 2.4,

Importing old projects into a fresh django installation

2009-01-12 Thread Robocop
Esteemed colleagues: I've just built a small web server running django .97, with python 2.4, mysql-python-1.2, and mod_python 3.2.8. I've tested and can start new django applications just fine (haven't fleshed any out to do further testing), so it looks like the django install is properly

Re: some type of save() issue

2008-12-29 Thread Robocop
Problem solved, my template got screwed up and the POST data looked different than before. Thanks to anyone who took the time to read this! On Dec 29, 2:43 pm, Robocop <btha...@physics.ucsd.edu> wrote: > I'm processing pretty simple form data, just reading POST data and > sav

some type of save() issue

2008-12-29 Thread Robocop
I'm processing pretty simple form data, just reading POST data and saving it to my database. I have a list of "timesheet" objects that i run through, editing and saving each object in the list. All the objects save all right except for the last one. When i process the last one i receive a

Re: Forms Question

2008-11-06 Thread Robocop
Never mind, i finally realized what was so drastically different between .96 forms and 1.0 forms. Thanks for the help! On Nov 6, 4:33 pm, Robocop <[EMAIL PROTECTED]> wrote: > So i've just gotten back on this project, and it looks like i'm still > doing something wrong with m

Re: Forms Question

2008-11-06 Thread Robocop
So i've just gotten back on this project, and it looks like i'm still doing something wrong with my forms code. What i have right now is: def timesheets_add(request): if request.method == 'POST': form = TimeSheetForm(request.POST) if form.is_valid(): form.save() return

Re: Forms Question

2008-11-03 Thread Robocop
I tried that earlier but i failed terribly at syntax. Should it be: f = ModelForm(request.POST) f.save() On Nov 3, 5:37 pm, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > On Nov 4, 2008, at 8:14 AM, Robocop wrote: > > > > > > > I'm working with some rather long

Forms Question

2008-11-03 Thread Robocop
I'm working with some rather long forms, and i've processed them in a pretty basic way. I read in the post data for every field, then just create a new table entry using the form data. Something like: if request.method == 'POST': if form.is_valid(): var_a = form.cleaned_data['var_a']

Re: Template syntax question

2008-10-30 Thread Robocop
I like the suggestions, Thanks! On Oct 28, 12:47 am, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Oct 27, 10:04 pm, Robocop <[EMAIL PROTECTED]> wrote: > > > So i'm looking to have an admin controlled news list, and one thing in > > particular i'd like them to

Template syntax question

2008-10-27 Thread Robocop
So i'm looking to have an admin controlled news list, and one thing in particular i'd like them to be able to control is how many headlines are shown on the front page, and my current code is not doing that. The line i care about is: {% for New in news_list|slice:":{{limit}}"%} where

Re: login problem, Django 1.0

2008-10-10 Thread Robocop
0, 2008 at 12:51 PM, Robocop <[EMAIL PROTECTED]> wrote: > > > Bad news guys, someone deactivated my test user and didn't tell me. > > I'm so sad. > > Do you mean that is the explanation for why auth.login hasn't been working? > Or is there still a

Re: login problem, Django 1.0

2008-10-10 Thread Robocop
Bad news guys, someone deactivated my test user and didn't tell me. I'm so sad. --~--~-~--~~~---~--~~ 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

Re: login problem, Django 1.0

2008-10-10 Thread Robocop
Also worth noting: I tried using the built in django.contrib.views.login, but that resulted in the same behavior. Did some automagic default session setting in django .96 get changed to something that needs to be manually set in 1.0? --~--~-~--~~~---~--~~ You

Re: login problem, Django 1.0

2008-10-10 Thread Robocop
Sorry for the sloppy post, i was reposting an old ignored thread in my frustrated rage. The code i'm working with right now looks like: from django.contrib import auth def log(request): news_list = New.objects.all().order_by('-date') if request.method == 'POST': username =

Re: display User info, newbie

2008-10-09 Thread Robocop
Aaaah, i believe the login functionality is a subset of the sessions functionality, which does need cookies. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: login problem, Django 1.0

2008-10-09 Thread Robocop
actually i read that wrong, i do not know what path it is being sent to. --~--~-~--~~~---~--~~ 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

Re: login problem, Django 1.0

2008-10-09 Thread Robocop
Cookie=sessionid=6bc37c43a444db3aaf60a5c61e85bb01; support_tabs=0 Content-Type=application/x-www-form-urlencoded Content-Length=52 POSTDATA=username=moneybags=dollars=%2F=0=0 this is the relevant tamperdata output, though i'm not necessarily sure how to check if the session cookie is being set

Re: login problem, Django 1.0

2008-10-09 Thread Robocop
Cookie=sessionid=6bc37c43a444db3aaf60a5c61e85bb01; support_tabs=0 Content-Type=application/x-www-form-urlencoded Content-Length=52 POSTDATA=username=moneybags=dollars=%2F=0=0 this is the relevant tamperdata output, though i'm not necessarily sure how to check if the session cookie is being set

Re: login problem, Django 1.0

2008-10-09 Thread Robocop
I'm going to burn my server down, i could really use some 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-users@googlegroups.com To unsubscribe

Re: display User info, newbie

2008-10-09 Thread Robocop
I'm sorry but i don't understand your question. Could you please CAREFULLY review your posts for typos or obvious grammatical errors as right now, i have no idea what you're asking. If you want to know if my code works, yes it does. I've tested every single line of my login code, and the only

Re: display User info, newbie

2008-10-09 Thread Robocop
is your {{user}} variable not showing up at all, or is it returning "AnonymousUser"? If it is returning AnonymousUser then I am having the exact same problem. DO NOT waste your time trying to use the contrib.auth.views login function as i just attempted that and it gave me the same behavior.

Re: login problem, Django 1.0

2008-10-09 Thread Robocop
All right, this is getting absolutely ridiculous. I tried to workaround my problems by using the built in contrib.auth.views.login, and of course this resulted in the same behavior. I am very reluctant to think this is a bug, but rather some type of session misunderstanding, but i'm running out

contrib.auth.views.login questions

2008-10-09 Thread Robocop
The documentation for this seemed kind of vague to me, and i've tried all the different permutations i could think of. What should be passed as the variable "site_name"? I''ve tried the variable in the "name" column from the django_site table but i get the "Site matching query does not exist."

Re: display User info, newbie

2008-10-09 Thread Robocop
request.user will return the currently logged in user, so i'm assuming your login code is returning nothing. Try something like user = auth.authenticate(username = username_from_html, password = password_from_html) in your login code, and then see if you can use the {{user}} variable in the

Re: display User info, newbie

2008-10-09 Thread Robocop
I'm sorry but your question is very difficult to understand. From what i understand you want to show the username in a form, so why not just do a username = request.user in your view, and then {{username}} in your html template? If you need to pass the username variable with the form, then just

login problem, Django 1.0

2008-10-09 Thread Robocop
Having looked through the archived posts, i found a similar problem that had found no solution: http://groups.google.com/group/django-users/browse_thread/thread/bf05... It looks like django is not actually logging my user in, or not creating a session. I have a very simple snippet for login

auth.login problems in Django 1.0

2008-10-06 Thread Robocop
Having looked through the archived posts, i found a similar problem that had found no solution: http://groups.google.com/group/django-users/browse_thread/thread/bf056018de75c6b5/12723e786ce0fa6e?lnk=gst=login#12723e786ce0fa6e It looks like django is not actually logging my user in, or not

Vague, annoying, login problem

2008-10-03 Thread Robocop
I'm running out of ideas, so i decided to see if anyone could offer any advice on a problem i'm having. I'm trying to finish up a site with some 'dummy' login functionality. Dummy meaning that it doesn't do anything right now besides offer demographic information through registration, so it's

Re: Vague, annoying, login problem

2008-10-02 Thread Robocop
fixed. --~--~-~--~~~---~--~~ 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 this group, send email to [EMAIL PROTECTED] For more

Re: Vague, annoying, login problem

2008-10-02 Thread Robocop
I just realized why the images are not loading; the images are served by appending the file path to the url, but when they try to append mysite.com/login/imagefilepath it can't find them as there is no login directory. My question now is how do i work around this, i haven't thought of a

Re: Filtering related field attributes is not working

2008-09-05 Thread Robocop
Thank you for the suggestion, but first (with the right answer) come first serve. On Sep 5, 2:02 pm, Wojtek Walczak <[EMAIL PROTECTED]> wrote: > Robocop wrote: > > And all i'm trying to do is sort "Service_details" by Encounter.day, > >

Re: Text Parsing Question

2008-08-22 Thread Robocop
Thanks for the suggestions guys, they all have been helpful. I will try and implement the customized filter idea right now, i had a feeling that i would be doing something like that if django lacked the built in functionality, though it doesn't seem bad at all.

Re: Text Parsing Question

2008-08-22 Thread Robocop
This looks like exactly what i was looking for. I will try and implement this idea right now, Thanks a ton Tim! On Aug 21, 6:15 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > > So i'm working on a view that will need to parse character > > strings that will have a predictable structure, but dynamic

Text Parsing Question

2008-08-21 Thread Robocop
So i'm working on a view that will need to parse character strings that will have a predictable structure, but dynamic content. The format will look like "%Zxx^xx?;xx? where all x are the unpredictable characters and all the rest will be present in EVERY string,