Why do some shared hosting providers support Django and others don't?

2009-03-02 Thread Wiiboy
I'm with a shared hosting company called Lunarpages. They tell me Django, by itself, even with Fast CGI, because it is a framework, is too resource intensive for them to allow. But many other shared hosting providers allow Django. So, how do those who do allow it allow users to use it without

Re: Why do some shared hosting providers support Django and others don't?

2009-03-02 Thread Wiiboy
How would using Django be any different than having a very large Python script? --~--~-~--~~~---~--~~ 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: Why do some shared hosting providers support Django and others don't?

2009-03-02 Thread Wiiboy
Do you guys know anything about MochaHost? http://www.mochahost.com/webhosting.php Sounds way to good to be true. . .Which probably isn't good. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Why do some shared hosting providers support Django and others don't?

2009-03-02 Thread Wiiboy
http://djangofriendly.com/hosts/mochahost/ Yes they do. They don't have any reviews --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Why do some shared hosting providers support Django and others don't?

2009-03-02 Thread Wiiboy
So, is getting mod_python and Django worth ditching my current provider, and a dollar more a month? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Why do some shared hosting providers support Django and others don't?

2009-03-03 Thread Wiiboy
Correction: I paid in advance for my current hosting provider, two years, and its only been 6 months. I can't be possibly be worth 18 months of wasted hosting. Thanks anyway, though. So long as my site still exists and I'm still using Python, I'll be reading this again in a year and a half.

Should I use Django?

2009-03-08 Thread Wiiboy
Hi guys, I'm making a small site (small for now, at least), that isn't quite finished yet. I'm the only one who is writing server-side code. Presently, I'm writing straight Python code, through CGI, on a shared hosting provider. Is there any reason why I should use Django on my site, on the

Re: Should I use Django?

2009-03-08 Thread Wiiboy
> Is there any reason you should'nt? Plain CGI code sounds quite old > even for me ;) I'd have to rewrite everything. :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Should I use Django?

2009-03-08 Thread Wiiboy
It's all relatively simple stuff, I guess... Thanks. --~--~-~--~~~---~--~~ 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

Use a feature similar to the Admin sorting by date on my site?

2009-03-09 Thread Wiiboy
Hi guys, I'm new to Django (haven't even done more than the tutorial, actually). I'm having people submit articles for my site newsletter. I want to sort the archives of these by both name and date, almost EXACTLY like the Admin interface does it (filter by date, sort by date, by name, etc.) How

Re: Use a feature similar to the Admin sorting by date on my site?

2009-03-09 Thread Wiiboy
Sorry, I was a bit vague. I mean, how does one do something like the Admin interface does on my site? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Use a feature similar to the Admin sorting by date on my site?

2009-03-09 Thread Wiiboy
But Django doesn't offer it bult-in? --~--~-~--~~~---~--~~ 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

Django Admin Question

2009-03-26 Thread Wiiboy
Hi, I've got a database of newsletter submissions from my users. Before using Django, I designed an Admin interface that listed the past 10 or so submissions that were still pending review by me, and asked for the ID of the one or ones that I wanted to accept or not accept. Is there a way to

Re: Django Admin Question

2009-03-26 Thread Wiiboy
Sorry, I wasn't very clear. The Administration's purpose is to let me decide, from the submissions that are pending review, which ones I want to accept (change the value for the column 'status' to 'accepted' for that row) and which ones I want to not accept (change the value for the column

Re: Django Admin Question

2009-03-27 Thread Wiiboy
I want to make it so that I can just add enter the ID, and it will mark it as accepted --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Should I use Django?

2009-03-28 Thread Wiiboy
I thought I'd tell you: I decided to switch to Django/App Engine. :) --~--~-~--~~~---~--~~ 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: Django Admin Question

2009-03-29 Thread Wiiboy
Ok, just determined that all I'll be doing is changing existing entries. So this is solved. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Flatpages variables

2009-04-01 Thread Wiiboy
Hi, I've got a site where users must be logged in to view any pages. Logged in users may write articles for the newsletter, and upload them. I then convert the article to HTML (manually), and make it available for other users. I'd like make them available on flatpages, but I have to be able to

Re: Mysql?

2009-04-01 Thread Wiiboy
Why do you need shell access? Aren't you supposed to do all the coding and stuff on the local server, and then upload it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Flatpages variables

2009-04-01 Thread Wiiboy
Sorry, should've pointed out: I'm not using Django's user system, because I've got a PHP forum that I have to integrate with. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Flatpages variables

2009-04-02 Thread Wiiboy
Oh. Ok, I just read the docs. I'm going to use process_request. Thanks a bunch! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Reason for not allowing spaces in usernames?

2009-06-12 Thread Wiiboy
Do you think I would have problems if I disabled the checking for spaces? When I register users, I have it done automatically (user fills out a form), and Django doesn't have a problem with a space there. It's just in the Admin interface. --~--~-~--~~~---~--~~

Re: Reason for not allowing spaces in usernames?

2009-06-12 Thread Wiiboy
On Jun 12, 6:55 am, Marco Louro wrote: > As long as you trim start and trailing spaces, there shouldn't be any > problem, but personally I wouldn't use spaces in usernames at all. Why not? --~--~-~--~~~---~--~~ You received this message

500 Errors on 404 error?

2009-06-16 Thread Wiiboy
I finally got Django to email me about 404 and 500 errors. To test it, I typed in a random path, that I knew would be a 404 error. However, I got an email, and an error page, about a 500 error. The email said the following: File "/home/schoo37/webapps/schoolgoo/lib/python2.5/django/core/

Re: 500 Errors on 404 error?

2009-06-16 Thread Wiiboy
Fixed. I had accidentally set handler404 to a blank string. --~--~-~--~~~---~--~~ 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

Should this be its own app?

2009-06-18 Thread Wiiboy
I've got a website (project 'myproject'), in which people can make their own newsletter articles for submission to a group newsletter. Should everything that deals with newsletter stuff (storing articles, etc.) be in it's own app, or be part of the main app along with everything else?

Re: Should this be its own app?

2009-06-18 Thread Wiiboy
Thanks. --~--~-~--~~~---~--~~ 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

Do something on model save only if a certain change was made

2009-06-21 Thread Wiiboy
I've got a site where users make articles for the newsletter. The content of their articles is a flatpage. My article model is below. My goal is to make it so that when the model is saved, and the status is changed from pending to accepted, it creates a flapage that is an html version of the

Re: Do something on model save only if a certain change was made

2009-06-21 Thread Wiiboy
Hehe, completely forgot about those. Thanks. --~--~-~--~~~---~--~~ 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,

Re: Do something on model save only if a certain change was made

2009-06-21 Thread Wiiboy
Let me make sure I know what to do first. Get the pk of instance being saved, get the article out of the db that has that pk, and see if the old status was pending, and the new one is accepted? --~--~-~--~~~---~--~~ You received this message because you are

Using Signals as hooks

2009-06-24 Thread Wiiboy
I'm a bit of a noob at Web Devlopment (as you already know if you've read any of my posts on here). I've read that using hooks in key places in a website can help ease future development. Can/Should Django's signals be used for that purpose? If so, to what extent should they be used? For

Re: Using Signals as hooks

2009-06-25 Thread Wiiboy
It works. --~--~-~--~~~---~--~~ 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

Re: Using Signals as hooks

2009-06-25 Thread Wiiboy
Thanks. On the topic of scaling, my site hasn't even been publicly released yet. However, I'll keep your advice in mind as I work on it, to keep it "future-proof". --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Using Signals as hooks

2009-06-25 Thread Wiiboy
Question: how often should I have a cron job work to send emails? Or should I just have it so that a few items from a task DB are done each request (e.g. split up emails into groups, and email them a few per request)? --~--~-~--~~~---~--~~ You received this

Re: Using Signals as hooks

2009-06-26 Thread Wiiboy
> But if it's a small and low volume app and you are the > only developer managing it, you could get away with it :) You hit the nail on the head ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Logout in Firefox but not in IE 6!

2009-06-26 Thread Wiiboy
It might be caching the page. --~--~-~--~~~---~--~~ 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

Make three columns without violating DRY

2009-07-09 Thread Wiiboy
Hi, On the homepage of my website, I have three columns of articles from users. I can't quite figure out how to make those three columns without violating DRY. Now, I have a dictionary of lists, with each list being the list of articles for one column. I then loop through the lists. Example:

Re: Make three columns without violating DRY

2009-07-09 Thread Wiiboy
The columns are actually categories. The left column is sports, etc. So I can't make it a grid like that. I don't quite see how the paginator helps. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Make three columns without violating DRY

2009-07-09 Thread Wiiboy
Awesome. I'll see what I can do with these. --~--~-~--~~~---~--~~ 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,

Re: Make three columns without violating DRY

2009-07-09 Thread Wiiboy
I took Alex's idea. It works great. Thanks. --~--~-~--~~~---~--~~ 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,

Forms: Set default value

2009-07-14 Thread Wiiboy
Hi, I'm defining a form model, and I have a choice field. I have the values in order, and I want one value (in the middle of the values in order) to be the default. How do I do that? Passing initial= anything doesn't work. --~--~-~--~~~---~--~~ You received this

Re: Forms: Set default value

2009-07-15 Thread Wiiboy
Sorry, I was little unclear above. I need to set the default for a form. --~--~-~--~~~---~--~~ 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: IDE for Django and Ext JS

2009-07-29 Thread Wiiboy
I use Kate for all my stuff, because, although not an IDE, it is one hell of text editor. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Template tag for getting CSS/scripts/images

2009-09-05 Thread Wiiboy
I'm considering making a custom template tag that returns a url to a css file or image file. In your opinion, is it a waste of time? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Return something specific on 404's on a particular path

2009-09-12 Thread Wiiboy
> If they upload the image, you likely have the name of the file in your > database.  Put a little IF statement in your templates.  If you find > the name of the image in the db/context, serve it up.  If you don't > find it, server up your default/placeholder image.  Does that not > work? Yup.

Re: django forum

2009-09-22 Thread Wiiboy
Looking at the demo, I think that is the best Python forum I've ever seen. Congrats. This would be my site's saving grace. However, I installed all the necessary programs, and I get "Cannot import name utils" from djapian. If you ever read this again, perhaps you could help with that?

Re: django forum

2009-09-24 Thread Wiiboy
Strike what I said above. It's fixed. @derekh http://forum.python.su --~--~-~--~~~---~--~~ 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: Giving up PHP. ...Can't decide between Django & Rails

2010-04-10 Thread Wiiboy
I'm a bit of a noob as well, and know nothing about Rails, but I'd like to comment on a few issues you mentioned. 1. Non-existent template variables are replaced with the value of the TEMPLATE_STRING_IF_INVALID setting. Set that to something besides its default (an empty string) to make

Re: danjgo authentification

2010-04-23 Thread Wiiboy
Shouldn't the form in fac_login.html target /login/? ... Even if not, that dot in the action attribute should _not_ be there, I don't think. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Remove a field in a form subclass

2010-04-27 Thread Wiiboy
Hi guys, I've got a ModelForm defined like below: class ArticleForm(forms.ModelForm): title = forms.CharField(stuff) def custom_validator(): .. class Meta: model = Article I want to subclass it, but do _not_ want the title field, i.e. class

Uploads in the Form Wizard

2010-05-02 Thread Wiiboy
Hi guys, I'm trying to use the form wizard for a model. The problem is, I have an ImageField in the last step, but I keep getting a "This field is required" on it. request.FILES contains the uploaded file, however. Can I use ImageField's in a Wizard? -- You received this message because you

Re: Uploads in the Form Wizard

2010-05-02 Thread Wiiboy
Is that in trunk (i.e. could I revert to an older SVN revision and have it work)? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: Uploads in the Form Wizard

2010-05-02 Thread Wiiboy
Oh. Dang. Thanks for your help Russell. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: Uploads in the Form Wizard

2010-05-02 Thread Wiiboy
What would be the best workaround (or is there one)? Perhaps overriding FormWizard.process_step()? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this

Using the FormWizard with models

2010-05-05 Thread Wiiboy
Hi guys, Another question about the FormWizard: is it possible to provide an existing instance of a model for the forms in the wizard? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Updating profiles

2010-05-12 Thread Wiiboy
Just as a side note, I made the user part of my Profile model a OneToOneField. Makes it easier to reference, i.e. user.profile.FIELD vs. user.get_profile().field -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Thread safety with Form Wizard

2010-05-28 Thread Wiiboy
Hi guys, I'm a relative newbie at using Django in an actual production setting. I'm having trouble using the form wizard at the moment, and I noticed that there is one instance of the Wizard class, instantiated in urls.py. Is there anything I should worry about as far as thread safety is

Re: Thread safety with Form Wizard

2010-05-29 Thread Wiiboy
Anyone? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this

Re: Django 1.2.1 doesn't work with South but 1.2 works? How to find the previous version Django 1.2?

2010-06-02 Thread Wiiboy
Djago 1.2.1 works fine for me with South. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Controlling access to objects

2010-06-11 Thread Wiiboy
Hi guys, I don't know whether the built-in permissions system would be appropriate here, but I want to control access to objects in one of my models, based on profile fields, like gender, age, etc. I planned to create a model "MyModelPermissions" like so: class MyModelPermissions(models.Model):

Re: Controlling access to objects

2010-06-12 Thread Wiiboy
Thanks Dan. I also found this: http://goo.gl/l2IW -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Filter based on result of model method

2010-07-03 Thread Wiiboy
Is there a way to filter based on the result of a model instance method? I've got a Permission model with a one-to-one relationship with an Article. The Permission model stores the different groups that the Article author said could read their article. There's about 6 groups though, so I wrote

Re: Filter based on result of model method

2010-07-06 Thread Wiiboy
Anyone? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this

Re: Filter based on result of model method

2010-07-06 Thread Wiiboy
> As I understand it, parameters passed to filter() are translated into SQL > statements.  An arbitrary python method that you write for your object can > do any number of things, which might not be translatable into SQL.  So I > don't see how any "filter on the result of any method" feature

Re: Filter based on result of model method

2010-07-07 Thread Wiiboy
> Everytime you call exclude (btw, this should be q = > q.exclude(pk=item.pk), no?), Yes =) I wrote that quickly with my post. > articles = [article for article in > Article.objects.all().select_related('permission') if > article.permission.can_view_article(request.user)] Good idea. -- You

Re: Filter based on result of model method

2010-07-07 Thread Wiiboy
> articles = [article for article in > Article.objects.all().select_related('permission') if > article.permission.can_view_article(request.user)] The only problem I see is that is that 'articles' is a list, not a queryset. The reason I was using q.exclude(pk=item.pk) is because the return value

Re: User Registration: Looking for tips

2010-07-29 Thread Wiiboy
Would it be possible to just use two ModelForms? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: Django editor for Debian

2009-12-17 Thread Wiiboy
I like to use Kate (KDE's default text editor). It has auto-indent, and syntax highlighting for Python, and Django templates. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com.

Re: Hosting for django?

2009-12-22 Thread Wiiboy
Webfaction, for my small site, is spectacular. Their CP is awesome (I think it's their own, not another piece of software from someone else), and they are totally Python/Django oriented (they used to be called python-hosting I think). -- You received this message because you are subscribed

Underscores vs. Numbers

2010-01-14 Thread Wiiboy
I noticed when I upload multiple files to my website with the same name, Django adds underscores to the file names. But doesn't that seems like it's less efficient than adding numbers to the end, (i.e. myfile (1).txt)? And on some OSs, a file name can be too long, which could cause problems.

Re: Underscores vs. Numbers

2010-01-14 Thread Wiiboy
Well, to solve this, I'm planning to subclass the "get_available_name" method in django.core.files.storage.Storage to do exactly what it does now, except add a number instead of underscores. Any reason not to do this? -- You received this message because you are subscribed to the Google Groups

Entire site requires login

2010-01-18 Thread Wiiboy
Hi guys, How would I make it so that every page requires a login? Should I use middleware or something like? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from

Re: django_evolution evolve not found

2010-02-05 Thread Wiiboy
Shawn: Really? I'm not surprised, it had more than its fair share of bugs. Thanks for the link BTW. Is that your project? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To

Re: anybody tried web2py and gone back to Django?

2010-02-18 Thread Wiiboy
First of all, I'd like to say that I think Web2py, and its maintainer Massimo, are awesome. =) I tried Web2py for a little while a couple months ago, but the biggest issue was poor documentation -- at the time, there was almost nothing. Now there's a whole book, online, but... Also, it was

Re: anybody tried web2py and gone back to Django?

2010-02-19 Thread Wiiboy
I've noticed that there have been a lot of things in common: Web2py _didn't_ have very good docs, at least relative to Django's (which are spectacular), but now that the Web2py book is available online, that issue is kind of moot. Admin -- Web2py has two different Admins, one which doesn't have a

Making a User Registration form

2010-02-19 Thread Wiiboy
Hi guys, What's the easiest way to make a user registration form, based on my own Profile model and the built-in user model? Writing my own form from scratch is looking like the most painless but time-consuming way. -- You received this message because you are subscribed to the Google Groups

Re: Making a User Registration form

2010-02-19 Thread Wiiboy
That doesn't look like it helps a whole lot actually. I don't see where I can create a registration form including my custom profile model. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Making a User Registration form

2010-02-20 Thread Wiiboy
Wait, but do profile fields get displayed as part of the form? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: Making a User Registration form

2010-02-20 Thread Wiiboy
Ok, I think that'll work. I'll try it. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Multiple views files

2010-03-03 Thread Wiiboy
Hi guys, I'm thinking about making multiple views files. I'm just wondering whether: a. There's any problems with that b. many people do it. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Passing message to 404

2010-03-03 Thread Wiiboy
Hi, Is there a way to pass a message when I create a 404 error programmatically (i.e. from a view)? In my case, I'm using get_object_or_404, and I'd like to say something like, "That user does not exist" (this is for looking at user profiles). -- You received this message because you are

Re: Passing message to 404

2010-03-03 Thread Wiiboy
Thanks for your reply. One question though: How would I pass the message itself from view to view (the view raising the error to my 404 view)? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Multiple views files

2010-03-04 Thread Wiiboy
So I've got that the consensus here is to add a 'views' folder, and add my views files in that. Thanks for the 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-us...@googlegroups.com. To

Email address in registration form

2010-03-17 Thread Wiiboy
Hi guys, I'm using a combination of the UserCreationForm and my own ModelForm of my Profile model to create a registration form. I want to get users' email addresses, however, that seems to be a field in contrib.auth.User, so it should be in UserCreationForm. I don't know whether to a. Add to

Re: Remove session on browser close

2010-03-22 Thread Wiiboy
Couldn't you use Javascript for this? For example, on the onbeforeunload event, delete the sessionid cookie? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from

Making email unique

2010-03-28 Thread Wiiboy
Hi guys, I've got a Python website that has to integrate with a forum (i.e. when a user registers on mysite.com, they also have to be registered automatically on forum.mysite.com). That forum forces email addresses to be unique. How can I force that on Django? -- You received this message

Re: Why must {% extends '' %} be first value in template? Inconvenient for ajax versions.

2010-03-28 Thread Wiiboy
Something I tried once: set the 'extends' template variable in your views (middleware even, maybe) to either an empty string or the path to your template, based on the result of request.is_ajax. I'm not sure though whether Django will throw an error if extends has an empty string. Suggestion:

Add message each page load

2010-03-30 Thread Wiiboy
Hi guys, How do I add a message (Django 1.2 style) each page load, and have it cleared after the request? I set up a middleware running on process_request, but I end up with a bunch of messages in the admin interface. My code: class BetaMessageSet(object): def process_request(self, request):

Re: Add message each page load

2010-03-30 Thread Wiiboy
>  - have you enabled the messages' context processor? Yes >  - are you consuming the 'messages' variable in your templates? UmmYes? I'm displaying one message, but only 1, since I'm only setting 1 per request. That's probably the issue, but why is more than one message being set per

Re: display user.email in a custom model

2010-03-31 Thread Wiiboy
Hmm, you should be able to do that. I do exactly that in one of my models. The only I differences I see between yours and mine is that you return a unicode string, rather than just a string, and you wrote self.user, rather than self.user.something. -- You received this message because you are

Getting strange email from "dreamhost"

2010-03-31 Thread Wiiboy
Hi guys, I've gotten two emails from "Mail Delivery Subsystem " with the subject "Your message was NOT received by django-us...@googlegroups.com!". The body is below. Anyone know why I'm getting these? Is anyone else getting them? I have no affiliation with Dreamhost or

Re: Getting strange email from "dreamhost"

2010-03-31 Thread Wiiboy
Hehe, that's kinda funny...Thanks for your help Russell. =) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: Newbie: New user creation with forms

2010-04-06 Thread Wiiboy
What exactly do you mean by, "Create a user and allow that user to submit data such as messages"? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this