URL reverse on username failing when username has a '.' literal in it

2010-07-22 Thread Roboto
I didn't expect this to occur, but when I attempt {% url feed_user entry.username %} I will get a 500 error when the username contains a '.' In this case rob.e as a username will fail. Any ideas how to deal with this? -- You received this message because you are subscribed to the Google Groups

Forms - Widget - Radioselect - how to set initial value on a static form

2010-06-22 Thread Roboto
I can't seem to find documentation on this anywhere, so I imagine someone must have run into this. if I had a radioselect Yes / No and I wanted the default value to be 'No', but I'm not loading this data from a database or anything, is there a method to just insert an initial value so that the

Re: I'm having an issue with clean() method in ModelForm

2010-02-10 Thread Roboto
Thanks Bruno, I'll look back into it again tonight. On Feb 10, 5:30 am, bruno desthuilliers <bruno.desthuilli...@gmail.com> wrote: > On Feb 10, 5:22 am, Roboto <robc...@gmail.com> wrote: > > > class userForm(ModelForm): > > OT : Python's naming convention is &

I'm having an issue with clean() method in ModelForm

2010-02-09 Thread Roboto
Hey all, some quick background. I am attempting to have email as username within the confines of the contrib.auth.models User Everything seems okay, except that my modelForm despite what I believe is a custom clean Method is not being run (according to my debugger, it's just jumping past this

Re: Best Architectural Practices on Views-Forms-Saving

2010-01-13 Thread Roboto
wow, that looks fantastic. On Jan 13, 11:34 am, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Jan 13, 3:58 pm, Roboto <robc...@gmail.com> wrote: > > > > > Hi everyone, > > I've been building with Django for a while now [having learned Python > > at t

Best Architectural Practices on Views-Forms-Saving

2010-01-13 Thread Roboto
Hi everyone, I've been building with Django for a while now [having learned Python at the same time], I am about to start my next project and looking back into some of my older code I can see right away that it's a terrible way to code Django. For instance: Task: Build a web form that can will

Re: Uploading Images

2009-06-23 Thread Roboto
{% if form.is_multipart %} {% else %} {% endif %} {{ form }} http://docs.djangoproject.com/en/dev/ref/forms/api/#binding-uploaded-files On Jun 15, 12:59 am, Oleg Oltar wrote: > I made a mistake in view.py. > Corrected version is > def handleUploadedFile(file):

Re: Setting up Facebook Connect for your test environment

2009-03-17 Thread Roboto
thanks I'll try. Looks like they don't allow sandbox type environments yet. On Mar 17, 9:56 am, Chris Scott <cjscot...@gmail.com> wrote: > On Mar 17, 2009, at 8:43 AM, Roboto wrote: > > > > > Hey guys, > > > I'm trying to get facebook connect to work on my dj

Setting up Facebook Connect for your test environment

2009-03-17 Thread Roboto
Hey guys, I'm trying to get facebook connect to work on my django site. I've hit a little snag where I imagine many of you just walked passed, but I'm clueless right now. My runserver runs on localhost:8000 --- but when I setup facebook connect the app is looking for http:///xd_receiver Any

Re: create objects from custom SQL

2008-10-27 Thread Roboto
hmm.. I don't think you linked the right item? Rory This is what I use to process custom sql statements def process_sql(query): from django.db import connection cursor = connection.cursor() cursor.execute(query) results = [dict(zip([item[0] for item in

a slightly complex .extra() question

2008-05-08 Thread Roboto
Hey all, I'm trying to do something really simple and I was wondering if it is possible within django. There is 1 main table lets call it 'Team' - it contains teams all unique there are 2 sub tables that FK to Team, called Bulletin and Wall posts. There is a 3rd subtable called TeamAccess which

Re: django-admin.py not working on OS X 10.5

2008-05-08 Thread Roboto
I will second Francis here 1. I copy my trunk into the default python site-package /Library/ Python/2.5/site-packages/django The key thing is that Leopard comes with it's own built in Python 2.5, where it give priority when it comes to utilizing python. You will need to put anything python

Re: manage.py runserver woes

2008-05-07 Thread Roboto
omg I am such a noob. Thanks man. Your clutch email allowed me to complete another page while on the train today =P On May 7, 2:36 am, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On May 7, 4:34 am, Roboto <[EMAIL PROTECTED]> wrote: > > > I know the built in django s

manage.py runserver woes

2008-05-06 Thread Roboto
so here is the scenario. Everything works perfectly... online =P So I don't have an issue with that, I've been doing a majority of my development on a fast-cgi/apache shared hosting env and everything is a-ok. But now that I'm starting to get people to use the site, I can't just go in and make

Insane Frustration with IE and Image uploading

2008-04-29 Thread Roboto
This is probably all just a result of lack of experience, poor programming practices and knowledge, but I thought I'd share this little bit of information. My code to validate picture data posted below. My quick commentary on it is that it works 100% for fire fox, safari. But images won't

Re: Has anyone made an MS excel exporter in a django site yet?

2008-04-10 Thread Roboto
lol I actually have a job that use my programming skills (lol lack of), but when I view some of your code out there, lol you guys are programming circles around me. On Apr 10, 6:53 pm, Roboto <[EMAIL PROTECTED]> wrote: > whoa! > > Lots of great answers here. Thanks for the

Re: Has anyone made an MS excel exporter in a django site yet?

2008-04-10 Thread Roboto
whoa! Lots of great answers here. Thanks for the help, I'm going to go through all these answers one by one and figure out which is best for me. I won't be doing a straight dump, so it's gonna be interesting =p It's easy to do in C# though! But hopefully a solution listed here will be just as

Has anyone made an MS excel exporter in a django site yet?

2008-04-09 Thread Roboto
I'm curious =P A couple of my users are requesting that I find a way to export some data to excel so that they can manipulate as fit. Any thoughts? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: User.get_profile() behaviour questions

2008-02-12 Thread Roboto
lol sorry.. yes you're right malcom. it's user.get_profile without parenthesis in templates =P Thanks for your assistance On Feb 12, 9:22 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-02-12 at 06:06 -0800, Roboto wrote: > > Hey all, > > > I guess I

Re: Django cannot be used by large web sites?

2008-02-12 Thread Roboto
... I'm going to assume that they did that if they're building a commercial website, otherwise it would have been pointless to bring django in. That being said, maybe they setup the urls to mimic RoR url system? /cart/edit /cart/save /cart/details/item/qty/save =P haha yea, I'm reaching here on

User.get_profile() behaviour questions

2008-02-12 Thread Roboto
Hey all, I guess I'm lazy with sql queries, so I've got a quick question. I just pulled a set of results from a table that foreign_keys the User table. But at the same time I'd like to access the get_profile data for each one of the users. I know that if you do: print e.blog #hits the

Re: Help with either setting or lack of knowledge of Custom error_class

2008-01-20 Thread Roboto
Yes, right now I'm using 0.96 Is error_class a 0.97 feature? Thanks Karen. I can redo my css =P to revert to ul and li it's not that big of an issue. On Jan 20, 11:26 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Jan 20, 2008 10:42 AM, Roboto <[E

Re: Help with either setting or lack of knowledge of Custom error_class

2008-01-20 Thread Roboto
The definition for loginForm can be found at the bottom of this pastebin http://pastebin.com/m79fa445e On Jan 20, 12:39 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Jan 20, 2008 12:31 AM, Roboto <[EMAIL PROTECTED]> wrote: > > > > > whoops -

Re: Help with either setting or lack of knowledge of Custom error_class

2008-01-19 Thread Roboto
and here is the beta.website.forms code http://pastebin.com/m79fa445e On Jan 20, 12:31 am, Roboto <[EMAIL PROTECTED]> wrote: > whoops - here is the re-edited pastebin > > http://pastebin.com/m225477f8 > > On Jan 19, 11:36 pm, "Karen Tracey" <[EMAIL PROTECTED]&

Re: Help with either setting or lack of knowledge of Custom error_class

2008-01-19 Thread Roboto
whoops - here is the re-edited pastebin http://pastebin.com/m225477f8 On Jan 19, 11:36 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Jan 19, 2008 2:02 PM, Roboto <[EMAIL PROTECTED]> wrote: > > > > > > > I've made my own custom error list and t

Re: Help with either setting or lack of knowledge of Custom error_class

2008-01-19 Thread Roboto
Hey Karen, I've reapplied pastebin - the error that line 22 is pointing to is the call form = loginForm(data, error_class=pError) line On Jan 19, 11:36 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Jan 19, 2008 2:02 PM, Roboto <[EMAIL PROTECTED]> wrote: >

Help with either setting or lack of knowledge of Custom error_class

2008-01-19 Thread Roboto
I've made my own custom error list and the response I continue to get is this when I try to use it. TypeError at /login/ __init__() got an unexpected keyword argument 'error_class' Request Method: POST Request URL:http://beta.ready-ready.org/login/ Exception Type: TypeError

Burning question about forums .. and I guess this applies to gmail as well

2007-12-13 Thread Roboto
How do forums ie PHPBB and gmail know if I've viewed a topic or not? I can think of only 2 methods - 1 is session, and the second is database. However, if I change computers and therefore changing my session it's still able to ensure track what I've viewed. It therefore leads me to believe

Re: OS X 10.5 and MySQLDB compile issues

2007-11-09 Thread Roboto
GodOfGeeks <[EMAIL PROTECTED]> wrote: > can u give me more info about the MySQL version and the commands u > used for compiling > > On Nov 9, 4:19 pm, Roboto <[EMAIL PROTECTED]> wrote: > > > Help, has anyone got this to work? I've applied the patches to > > _my

OS X 10.5 and MySQLDB compile issues

2007-11-09 Thread Roboto
Help, has anyone got this to work? I've applied the patches to _mysql.c and tried running it but it still continues to say that I am missing the libraries required to make the build happen. This is brutal! --~--~-~--~~~---~--~~ You received this message because

Re: LimitRequestBody 102400

2007-10-25 Thread Roboto
Actually, yea I'm using mod_python right now. On Oct 25, 10:25 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Oct 26, 11:15 am, Roboto <[EMAIL PROTECTED]> wrote: > > > Hi All, > > > I'm trying to stop people from uploading like 3mb images and crashin

Re: elance'in django programmers

2007-10-25 Thread Roboto
That's true, I didn't think about this at first - it's difficult to make it as a programmer with market dilution. On Oct 25, 10:38 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > Speaking as someone who's tried their hand at both sides of the coin, > I definitely agree with you, Ross. I'm

LimitRequestBody 102400

2007-10-25 Thread Roboto
Hi All, I'm trying to stop people from uploading like 3mb images and crashing the server. I think, think, that to some degree my limiters are working. In my apache config I've set LimitRequestBody 307200. That should be about 300k. Now when I upload an image greater than that, I can see that

Re: elance'in django programmers

2007-10-25 Thread Roboto
get into so much trouble and 'danger' (of > getting stuck with sucky contractors) to outsource to india. (a country > with a similar economy than ours) > > Roboto wrote: > > Is that assuming that you can do work 5x faster than a PHP developer? > > > On Oct 25, 6:28 am, Roboto <[EMAIL

Re: elance'in django programmers

2007-10-25 Thread Roboto
Is that assuming that you can do work 5x faster than a PHP developer? On Oct 25, 6:28 am, Roboto <[EMAIL PROTECTED]> wrote: > ! holy smokes > > On Oct 25, 3:01 am, BitBlazer <[EMAIL PROTECTED]> wrote: > > > It varies depending upon various things. For me it would

Re: elance'in django programmers

2007-10-25 Thread Roboto
! holy smokes On Oct 25, 3:01 am, BitBlazer <[EMAIL PROTECTED]> wrote: > It varies depending upon various things. For me it would be anywhere > between 40-50 euros per hour. > > On Oct 25, 8:46 am, Roboto <[EMAIL PROTECTED]> wrote: > > > Hey all, > > >

elance'in django programmers

2007-10-24 Thread Roboto
Hey all, I'm just curious, but if you were elance your skills out, what would you normally charge? I was wondering what the going rate to hire a django cat would be on an hr basis Thanks, Rob --~--~-~--~~~---~--~~ You received this message because you are

Re: No module named _md5

2007-07-06 Thread Roboto
i'm not great at this, but a shot in the dark - turn off mod_php On Jul 5, 2:59 pm, e-gor <[EMAIL PROTECTED]> wrote: > I have python 2.5.1, django report errors: > > Mod_python error: "PythonHandler django.core.handlers.modpython" > > Traceback (most recent call last): > > File

Re: Accessing Web Services using Django

2007-07-03 Thread Roboto
Thanks Jacob, I was looking for something like this! On Jul 3, 2:17 pm, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > Hey Roboto -- > > There isn't anything Django-specific about consuming web services; > it's just Python. You might want to check out the s

Accessing Web Services using Django

2007-07-03 Thread Roboto
Hey guys, I'm still new to Python and Django, heck I guess I consider myself new to web development in general, and I'm at a part where I'm a little lost on what to do. In a nutshell I have a form that will take in a Country (from a drop down) and a postal code. I want to grab the

Any Django Powered Galleries out there for GNU?

2007-05-24 Thread Roboto
I'm looking for a gallery plugin for my community dragonboat website. Anyone have any ideas where I can find one so that my users can start posting their own pictures? Thanks, Robotooo --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: I'm not sure how to write this database command in django... any thoughts?

2007-05-21 Thread Roboto
Okay.. solved my issue... but ran into another one. Rows are returned - however output is returned with no Keys looks like this [(4, 2, 'ACT', 3, 'Chris', 'Yiu'), (2, 2, 'ADM', 1, 'Robert', 'Chan')] Anyone have any thoughts on how to get the keys? On May 21, 11:35 am, Roboto <[EM

Re: I'm not sure how to write this database command in django... any thoughts?

2007-05-21 Thread Roboto
_name,last_name FROM login_access AS a INNER JOIN login_personal AS b ON (a.user_id = b.user_id) WHERE (a.team_id = %s AND (NOT (a.status = 'NON' OR a.status = 'WAT')))", [team_id]) row = cursor.fetchall() return row On May 21, 12:42 am, Kelvin Nicholson <[EMAIL PROTECTED]> wrote

Re: I'm not sure how to write this database command in django... any thoughts?

2007-05-20 Thread Roboto
tually exist yet. You might have to create it by > hand of you have already created the model and validated then synced. > Make sense? > > On May 20, 12:30 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > > On Sun, 2007-05-20 at 19:22 +, R

Re: I'm not sure how to write this database command in django... any thoughts?

2007-05-20 Thread Roboto
.. I was thinking about this for the LONGEST time. I get it now finally. It would be login_personal Thanks On May 20, 3:30 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2007-05-20 at 19:22 +0000, Roboto wrote: > > This is what I'm currently r

Re: I'm not sure how to write this database command in django... any thoughts?

2007-05-20 Thread Roboto
t;login_access"."user_id", (SELECT first_name FROM Personal WHERE user=user_list.user) AS "first_name" FROM "login_access" WHERE ("login_access"."team_id" = 2 AND (NOT ("login_access"."status" = 'NON'))) On May 20, 2:43 pm, Roboto <

I'm not sure how to write this database command in django... any thoughts?

2007-05-20 Thread Roboto
Hey all, I've got some issues writing this query out, so maybe I can get some help I have 4 tables: User (default from django) Profile (foreign key is User) Access (foreign Key is User and Team) Team I want make a roster for each team, so I would do the following "select * from access where

Re: TIME_ZONE Error? Anyone ever get this?

2007-04-28 Thread Roboto
Hmm. Alright.. lol. I'm not sure how I"ll be able to solve this problem, but thanks! I'll definitely try examining the issue thoroughly! On Apr 28, 9:56 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 4/28/07, Roboto <[EMAIL PROTECTED]> wrote: > > &g

TIME_ZONE Error? Anyone ever get this?

2007-04-28 Thread Roboto
I'm using Piotr Diamanda MyghtyBoard and I keep running into this error when I try this 1 particular view... I've asked Piotr directly and he indicated it could be a django/server issue. Any thoughts? Traceback (most recent call last): File

Re: Super long response times/load times: Looking for some guidance on alleviating the issue

2007-04-24 Thread Roboto
and it takes up to 5 seconds apparently.. lol. In any event, a dedicated server would definitely solve this issue, that or I start getting a lot more hits than I currently am. Rob On Apr 16, 10:08 am, "Roboto" <[EMAIL PROTECTED]> wrote: > ahh =P I'll try. I'm running with Grokthis.net

Re: Super long response times/load times: Looking for some guidance on alleviating the issue

2007-04-16 Thread Roboto
ahh =P I'll try. I'm running with Grokthis.net as server right now, and I'm relatively new to understanding apache, I'll see what I can do. On Apr 16, 9:52 am, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > On 4/16/07, Roboto <[EMAIL PROTECTED]> wrote: > > >

Re: Super long response times/load times: Looking for some guidance on alleviating the issue

2007-04-16 Thread Roboto
serving directly from apache. On Apr 16, 8:25 am, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > On 4/16/07, Roboto <[EMAIL PROTECTED]> wrote: > > > > > Hey Jay, yeah, I noticed somethign similar to that affect as well. It > > seems like it does some

Re: Super long response times/load times: Looking for some guidance on alleviating the issue

2007-04-16 Thread Roboto
Hey Jay, yeah, I noticed somethign similar to that affect as well. It seems like it does some sort of caching or something, and if it hasn't cached in a while it takes a while to load. I'm running mod_python, so I'm often reseting the server so that my code changes go through. As for serving

Re: Super long response times/load times: Looking for some guidance on alleviating the issue

2007-04-15 Thread Roboto
It's in general. Although.. I can't really tell to be dead honest. Last night I was crawling at 5-10 secs for response times. On Apr 15, 1:55 pm, "Julio Nobrega" <[EMAIL PROTECTED]> wrote: > On 4/15/07, Roboto <[EMAIL PROTECTED]> wrote: > > > You'll not

Super long response times/load times: Looking for some guidance on alleviating the issue

2007-04-15 Thread Roboto
Hey guys, I really need some help with understanding the issue here, I'm not making too many database calls so I'm not sure why it's taking so long for each view to go through. Any common problem areas that cause slow down? ie sever? poor db calls.. etc? here is the website www.ready-ready.org

Templates inheritance and the passing of variables

2007-04-04 Thread Roboto
Hey guys, just a quick question here: I have a base template called base.html. Essentially all it holds are blocks to be filled in by child templates and it contains a menu which is common to all templates but it is also in block in case I ever needed to override it in the future So I have a

Django Admin not updating to reflect changes in database

2007-02-08 Thread Roboto
Hi all, I've been away from Django for a bit, and for some reason I can't get the admin interface to reflect the changes in the models.py for my apps. I've syncdb, i've sqlreset. I've done everything (but the right thing) to try to get the admin interface to pick up the new charField that I've

Re: Question about :: root/django/trunk/django/middleware/admin.py

2006-11-18 Thread Roboto
Session Tampered Error (Admin only) Bug solved! TURN OFF MOD_PHP!! --~--~-~--~~~---~--~~ 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

Question about :: root/django/trunk/django/middleware/admin.py

2006-11-17 Thread Roboto
I was looking at the code to try to figure out why I constantly get raise SuspiciousOperation, "User may have tampered with session cookie." error when I try to login to my admin. All I've been trying to do is get a test project up on production and the only thing I can't get working is the

Admin setup woes (Tampered Session?)

2006-11-04 Thread Roboto
Hi Guys, Been trying to get the Admin deployed on Apache mod_python and after the login screen I get this: Traceback (most recent call last): File "~/python2.4/site-packages/Django-0.95-py2.4.egg/django/core/handlers/base.py" in get_response 74. response = callback(request, *callback_args,

Need help deploying Django on shared host

2006-10-31 Thread Roboto
Hey guys, I just need a little guidance here as I'm not all that awesome with servers. I'm currently being hosted on grokthis.net and a short while after I received my account information I've been trying to get a quick site up so that I can start making something significant they've set it up