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 write this everywhe
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 ' :: '
>
No, he's sayin
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 Groups
"Django users
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
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 attribute equal a prope
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 = OrderF
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.
My
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 Goog
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 message
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 Ivar
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 jabber
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
ar
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 can't seem to get it to
>
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 = c
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 a webfaction account, and I was trying to get a c
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 some_name_my_tag_wants=some_name
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 wrote:
> Hey guys,
>
> I ha
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 t
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 home late tonight--the email par
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 on
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
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 mai
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 my_model_instance.SEPARATOR
Ahhh, I se
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 collect
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:
> The requirements are:
>
> 1
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 Grou
* 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 required.
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
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:
>
> http://dpaste.com/555651/
>
> T
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 prope
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': TextInput(attrs={'
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' wrote:
> Thanks, I tried the shell thing above. It says that it sends without
> error, but I still dont
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
stack-overflo
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 the
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
from
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 wou
I tried making fields null=True and/or blank=True still I get the
validation error, why?
With some changes on the whole set-up I got this new error,
Select a valid choice. [u'MNC', u'INT', u'DOM', u'LOC', u'VIR'] is
not one of the available choices.
New setup:
In the model
class Busines
37 matches
Mail list logo