Alternate user fields

2011-06-17 Thread raj
Hey guys, I've been trying to figure out how to add more fields in the auth user part of django. I looked through dozens of tutorials, and tried a lot of things to no avail. I simply ask this, If a user were to sign up on my site, and he/she was required to insert a skype SN, aim SN, etc.. How

contribute_to_class and the admin site

2011-06-17 Thread raj
Hey guys, I want to find an easy way to expand fields in the User model. I'm not quite understanding the tutorial where I need to create a model from a new app. I heard that there is a function called contribute_to_class. This is what my model.py file looks like: from django.db import models

Stuck on "ViewDoesNotExist" last step of tutorial part 4

2011-06-17 Thread TuckFrance
I am using Django 1.3 with SQlite. I got through the entire tutorial except the last step of part 4. It says "You can now delete the index(), detail() and results() views from polls/views.py. We don't need them anymore -- they have been replaced by generic views." However when I do this I get

Problem with CheckboxSelectMultiple and ManyToManyField with Modelform

2011-06-17 Thread Abhishek Tiwari
Hi Everyone, I am quite new to Django(4months actually), I am struggling with this problem for last 2 days, I think I am making some stupid mistake. Any help or input is highly appreciated. I am using Django 1.3, so old (1.1 -) solutions are not helpful much actually there are many on

Re: Creating a simple contact form

2011-06-17 Thread william ratcliff
Hi Raj, It sounds like your problem is email, rather than the form. In our settings.py we use: EMAIL_USE_TLS= True EMAIL_HOST='smtp.webfaction.com' EMAIL_HOST_USER='' EMAIL_HOST_PASSWORD=r'

[Forms] Avoiding Repetition

2011-06-17 Thread Nikhil Somaru
Hi, Is there a way to reduce the repetition in the following form classes: class ItemsStep2(ModelForm): #approval class Meta: model = OrderItem fields = ('item', 'quantity_requested', 'quantity_approved') widgets = { 'quantity_requested':

Proper way to reuse django's built-in admin javascript in my own templates (outside admin)?

2011-06-17 Thread br
Hi, I am using inline fromsets in my own custom forms and would like to reuse the same functionality that is provided django admin's inlines.js, particularly the add row button functionality, in order to add rows to my own inline formsets, similarly as is done in django's admin. What is the

Re: Help with Templates and ljust

2011-06-17 Thread Chris McComas
Figured it out. Added this to my Model: @property def spacer(self): return (25-len(str(self.team.name)))*' ' then in my template just added {{ team.spacer }} On Jun 17, 7:17 pm, Chris McComas wrote: > I have this as my template code: > >

Help with Templates and ljust

2011-06-17 Thread Chris McComas
I have this as my template code: http://dpaste.com/555651/ This is the HTML it is outputting, which makes sense. What I'm trying to do is make it so the closing tag is right after the team name and the whitespace from the ljust after it. http://dpaste.com/555649/ -- You received this message

Re: Forwarding to different domain after authentication

2011-06-17 Thread Alexandros Diamantidis
* To django-users@googlegroups.com [2011-06-17 19:34]: > ... but the auth app doesn't like "next" pointing to a differt domain and > ignores it. I got it to work with the following patch to Django: Ok, I solved the problem without a patch by checking in my view if a redirect exception is

registering unzipped files on the local disk

2011-06-17 Thread Faheem Mitha
Hi, Can anyone help me with http://stackoverflow.com/questions/6386062/django-registering-unzipped-files-on-the-local-disk ? If you reply via email, please cc me. Thanks. Regards, Faheem. -- You received this message because you are subscribed to the Google

Re: Django and Rich Client

2011-06-17 Thread Marwan Al-Sabbagh
thats pretty amazing that PyQt can handle such a big dataset at once. Putting JavaScript aside just trying to load html tables with a large amount of rows can become very unwieldy. Good luck with the app. cheers, Marwan On Fri, Jun 17, 2011 at 5:55 PM, Knack wrote: >

Re: Django on IIS7 With Windows Server 2008 R2

2011-06-17 Thread Yaroslav Govorunov
David, I am glad to hear it helped you! Helicon Zoo is free, we are not planning to sell it (thus any help in promotion, like blogging, liking, etc. is greatly appreciated). This beta version has no trial limitations. As for ETA, well, it works and for us it is quite stable, but we need to

Re: When to use a model property vs. method?

2011-06-17 Thread Micky Hulse
Hi Tom and Bruno! Thank you so much for your pro help and assistance. I really appreciate it. :) Replying to both of you in this one e-mail... See inline replies below. On Fri, Jun 17, 2011 at 1:42 AM, Tom Evans wrote: > Access it with MyModel.SEPARATOR or

Re: Single auth database for multiple (different) django projects

2011-06-17 Thread Cal Leeming [Simplicity Media Ltd]
Okay. If you want to have multiple webapps authenticating off a single user base, then you will need to either: - Expose a server side authentication system (basically your own mini network of OpenID) - Merge all the sites into a single Django webapp. If you have a look through the

RE: Django on IIS7 With Windows Server 2008 R2

2011-06-17 Thread Lurton, David
Yaroslav, So far our experiences have been great! Thanks for this making this tool. Do you know when it will be out of beta and what the price will be when it's purchasable? Also, does this beta version have any kind of expiration? We know it's beta and not production ready every options that

Forwarding to different domain after authentication

2011-06-17 Thread Alexandros Diamantidis
Hello! I'd like to unify authentication of a MediaWiki instance with a Django site using django.contrib.auth with the following plugin: https://bitbucket.org/pythonian4000/django-mediawiki-authentication-by-user-id/ It works fine, but I hit a small snag due to the wiki and the main site being

Re: Creating a simple contact form

2011-06-17 Thread raj
Thanks, I tried the shell thing above. It says that it sends without error, but I still dont receive any emails. Thank you -Raj On Jun 17, 12:23 pm, william ratcliff wrote: > If you can wait, I use webfaction and can give you a response for what we do > when I get

Re: Creating a simple contact form

2011-06-17 Thread Alex s
I´m having the same problem using Dreamhost. Have anyone this emails settings for Dreamhost? Regards Alex On Fri, Jun 17, 2011 at 1:23 PM, william ratcliff < william.ratcl...@gmail.com> wrote: > If you can wait, I use webfaction and can give you a response for what we > do when I get home late

Re: Creating a simple contact form

2011-06-17 Thread william ratcliff
If you can wait, I use webfaction and can give you a response for what we do when I get home late tonight--the email part was a bit annoying to setup--the main thing is to recognize that they are using their mailbox. Best, William On Fri, Jun 17, 2011 at 2:27 AM, raj

Re: Helper methods like rails or taglibs/tagfiles like java

2011-06-17 Thread Tom Evans
On Fri, Jun 17, 2011 at 4:32 PM, Rodrigo Gomes wrote: > Hi, > This sounds really better! But I tried it and got an error. > What I tried to do, is to pass a string value that is not on the context, > like this: > {% my_tag with param_str="a string here" %} {% with

Re: Creating a simple contact form

2011-06-17 Thread Ibrahim Khalil
I am sorry.I can not prepar well web design. 2011/6/17, Tiago Almeida : > Try opening a django shell and calling send_mail by hand to see what > exception you get (if any). > Best Regards, > > On 17 Jun, 07:27, raj wrote: >> Hey guys, >> >> I have

Re: Helper methods like rails or taglibs/tagfiles like java

2011-06-17 Thread Rodrigo Gomes
Hi, This sounds really better! But I tried it and got an error. What I tried to do, is to pass a string value that is not on the context, like this: {% my_tag with param_str="a string here" %} and @register.inclusion_tag('my_tag.html',takes_context=True) def my_tag(context): param_str =

Re: Creating a simple contact form

2011-06-17 Thread Tiago Almeida
Try opening a django shell and calling send_mail by hand to see what exception you get (if any). Best Regards, On 17 Jun, 07:27, raj wrote: > Hey guys, > > I have a webfaction account, and I was trying to get a contact form > working for my website. The problem is that I

Re: Django and Rich Client

2011-06-17 Thread Knack
The requirements are: 1) Handling large (>10 lines, ~ 10 columns) amounts of structured data in treeviews. For certain use cases comparing two of those trees. 2) Creating different structured views on the data. Like using different categories of attributes as structure criteria. Those views

Re: Chat

2011-06-17 Thread Mick
If you are using XMPP (which I do recommend) you'll want to check out the JS library Strophe (http://strophe.im/) which handles XMPP over HTTP. You will still need a server side BOSH endpoint, either a connection manager that allows you to connect to existing xmpp servers, like gtalk or

Re: Chat

2011-06-17 Thread illuminated
You'd have to first decide the chat server platform... In case you go down the Jabber/XMPP road (and choose something like Ejabberd or OpenFire or something else), you can use the pyxmpp (http://pyxmpp.jajcus.net/) or xmpppy (http://xmpppy.sourceforge.net/) library. On Jun 16, 5:34 pm, Nadae

Re: Django on IIS7 With Windows Server 2008 R2

2011-06-17 Thread Yaroslav Govorunov
Hello David. > Before I go any further with Django under IIS, I would like to ask the > community what their recommendation is for running Django under IIS? > What "glue" is preferred for connecting Django 1.3, Python 2.7.1 and IIS > on Windows Server 2008 R2? Just two days ago I posted a

How to view the data of a shape file without using the databrowse admin ?

2011-06-17 Thread Satyajit Sarangi
I don't want to use django databrowse admin . Want to create my own template and view that allows user to view a shapefile stored in the database . And also view open layers data and OSM data stored in database . how do I do it ? -- You received this message because you are subscribed to the

Intermediary Models in admin

2011-06-17 Thread victor
Hey guys ! I'm trying to implement a any to many relationship with Intermediary Models. I've been following https://docs.djangoproject.com/en/1.2/ref/contrib/admin/#working-with-many-to-many-intermediary-models And I have almost the same code except for names. The problem : that's crazy slow.

Re: [formsets] Initial Values to an inline_formset() instance

2011-06-17 Thread Nikhil Somaru
Hi, This is the hack-a-round that I figured out: formset = OrderFormset(request.POST) #created earlier with inline_formset() # now we recreate it to have the submitted number of forms+3 OrderFormset = inlineformset_factory(Order, OrderItem, extra=len(formset.forms)+3) formset =

Re: When to use a model property vs. method?

2011-06-17 Thread bruno desthuilliers
On Jun 16, 11:35 pm, Micky Hulse wrote: > > >> def get_separator(self): > >>     return ' :: ' > > In this case (returning a constant), it would be much simpler to make > > it a class (or instance) attribute. > > Ah, I think I get it. > > Just to clarify things for me, does

[formsets] Initial Values to an inline_formset() instance

2011-06-17 Thread Nikhil Somaru
Hi, PURPOSE: Mimic the admin "inline" functionality (with ForeignKeyrelationships) in one of my own forms without using Javascript (because I don't know it) My Solution: Inline Formset via inline_formset() However, - inline_formset() does not accept initial as an argument - This is after

Re: When to use a model property vs. method?

2011-06-17 Thread bruno desthuilliers
On Jun 16, 11:51 pm, Micky Hulse wrote: > How's this for a rule-of-thumb(?): > > 1. Use a property (class/instance attribute) when an argument(s) is not > needed. Well, a setter does need an argument ;) -- You received this message because you are subscribed to the Google

Re: When to use a model property vs. method?

2011-06-17 Thread Tom Evans
On Thu, Jun 16, 2011 at 10:35 PM, Micky Hulse wrote: > Just to clarify things for me, does attribute equal a property or method? :D > > I am guessing that attribute = property, so you're saying that I > could/should do this: > > @property > def separator(self): >    return ' ::

Re: Helper methods like rails or taglibs/tagfiles like java

2011-06-17 Thread Tom Evans
On Thu, Jun 16, 2011 at 7:03 PM, Rodrigo Gomes wrote: > Yes, but the point is not about generate code. Is to follow a DRY > principle...If I have a "multiple select list" with a specific > behavior,look-and-feel, with some javascript surrounding the code, etc, I > don't want to

Re: Creating a simple contact form

2011-06-17 Thread Kenneth Gonsalves
On Thu, 2011-06-16 at 23:27 -0700, raj wrote: > The problem is that I can't seem to get it to > work. what does not work? -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received this message because you are subscribed to the Google Groups

Creating a simple contact form

2011-06-17 Thread raj
Hey guys, I have a webfaction account, and I was trying to get a contact form working for my website. The problem is that I can't seem to get it to work. Can someone walk me through this? I couldn't figure it out from the djangobook tutorial. I think something is wrong with my settings and stuff.