I have a field which I need to reference in an override of the save()
function (as part of the class MyModelInlineForm(forms.ModelForm)).
However, I don't want that same field to appear in the inline tabular
display. In the __init__ for form class, I have this:
def __init__(self, *args, **kwargs
On 30 Sep 2010, at 16:38, Bradley Hintze wrote:
> OH, they're regular expressions, right? Ok, I need to try to
> understand RE but they still escape any meaning for me somehow.
Yeah, I think that's a meme.
I can't really offer any advice beyond:
- Just learn enough to get the URLs you need wor
On 30 sep, 22:45, Carles Barrobés wrote:
> If the ideal solution for you is different sites, one authentication,
I don't think that's the case, and FWIW the OP's layout makes perfect
sense to me. His point is that even while all apps are in a same
project and share a common auth, they are otherwi
On 30 sep, 19:05, mamcx wrote:
> As reported on :http://stackoverflow.com/questions/3817808/unable-to-
> login-to-admin-site-in-localhost
>
> I can't login to the admin site on localhost.
>
> I try with firefox, IE.
>
> I try using the 127.0.0.1:8000 address. Also, I set the
> SESSION_COOKIE_DOMAI
I'm running through a spreadsheet to update customer info. It takes
quite a while and I was just trying to optimize things a bit. I want
to check if the record is already there and if so update it with the
newer data. If not append it to the table.
Two code snippets below ...
try:
customer =
For what it's worth, I use the get_or_create with the 'default' keyword to do
this:
for record in reader:
new_values = {
'product_code': slugify(record['Product Code']),
'msrp': record['Suggested Retail'],
#etc...
}
product, was_created = Product.obje
On Fri, Oct 1, 2010 at 10:06 AM, bruno desthuilliers
wrote:
> On 30 sep, 22:45, Carles Barrobés wrote:
>> If the ideal solution for you is different sites, one authentication,
>
> I don't think that's the case, and FWIW the OP's layout makes perfect
> sense to me. His point is that even while all
> FWIW, even for a more canonical "integrated" website / webapp composed
> of distinct django apps, "assets" (app specific css, js, images and
> whatnot) management can sometimes be a pain. My own solution so far is
> to keep all app-specific static stuff in a /medias/ subir of
> the app and manual
On 1/10/2010 10:06, bruno desthuilliers wrote:
> I don't think that's the case, and FWIW the OP's layout makes perfect
> sense to me. His point is that even while all apps are in a same
> project and share a common auth, they are otherwise totally (or
> mostly ?) independent so it doesn't really ma
On 1 oct, 10:55, Benedict Verheyen
wrote:
> I found a solution that works for me.
> In the application dir, i've made a media\calltracking directory where
> the static files go.
> I need the extra dirname in the path (the trailing calltracking), otherwise
> i end up with media not being found.
F
On 1 oct, 10:29, Shawn Milochik wrote:
> For what it's worth, I use the get_or_create with the 'default' keyword to do
> this:
>
> for record in reader:
>
> new_values = {
> 'product_code': slugify(record['Product Code']),
> 'msrp': record['Suggested Retail'],
> #etc
>> I'm developing on Windows so i don't have the luxury of a nicely working
>> symlink system :)
>
> ??? Windows is STILL not able to properly handle symlinks ???
>
> OMG :(
mklink might work. Didn`t know of this myself before I googled
"symlinks in windows":
http://lifehacker.com/5496652/how-to-
... what is the infamous obj.__dict__.update() hack?
On Oct 1, 11:57 am, bruno desthuilliers
wrote:
> On 1 oct, 10:29, Shawn Milochik wrote:
>
>
>
> > For what it's worth, I use the get_or_create with the 'default' keyword to
> > do this:
>
> > for record in reader:
>
> > new_values = {
> >
On Fri, Oct 1, 2010 at 3:35 AM, Steve Holden wrote:
> On 9/30/2010 8:26 PM, Nick Arnett wrote:
> > Brain is mush, though.
>
>
Thank you. I'm waiting with hope :)
--
Alessandro Ronchi
http://www.soasi.com
--
You received this message because you are subscribed to the Google Groups
"Django u
Hi,
I really would love the see this dictionary like access:
obj=MyModel.objects.get(primary_key)
if obj is None:
... does not exist.
But the ticket was closed:
http://code.djangoproject.com/ticket/5741
Thomas
ALJ wrote:
> I'm running through a spreadsheet to update customer info. It ta
On 1 oct, 12:34, ALJ wrote:
> ... what is the infamous obj.__dict__.update() hack?
http://docs.python.org/library/stdtypes.html#mapping-types-dict
http://docs.python.org/reference/datamodel.html
http://www.google.fr/search?q=obj.__dict__.update()
--
You received this message because you are
On Fri, Oct 1, 2010 at 15:17, Daniel Roseman wrote:
> Either use
> a DocumentRoot directive
Thanks! I solved the problem using the directive. Thanks really a lot! :-)
--
K.
Blog Personale: http://www.karimblog.net
--
You received this message because you are subscribed to the Google Groups
"
Hi all,
I just ran into the same problem. Locally it doesn't occur, but it
does on the server.
I share Karen's analysis that the variable path of type unicode cannot
be encoded into ascii.
However, sys.getfilesystemencoding is also "UTF-8", so I don't see why
os.stat would try to encode using asc
On 30/09/2010 18:47, jean polo wrote:
> ok, thanks to everybody for the help but unfortunately nothing works
> for my issue.
> (except Karen one that solves it on one of my local machines but not
> the other which has the same linux system... weird..).
>
> I guess I'll ask my client to rename thei
Hi,
I'm completely new to Django so forgive me if this is a dumb question.
In the web site I'm creating many of the pages will not be database
driven.
I am trying to set up my urls.py so that all pages that all extend the
base.html template
can be rendered in the same way. I'm sure that I should
On 1 Oct 2010, at 15:07, simon_saffer wrote:
> In the web site I'm creating many of the pages will not be database
> driven.
> I am trying to set up my urls.py so that all pages that all extend the
> base.html template
> can be rendered in the same way. I'm sure that I shouldn't need a
> unique p
On 1 oct, 16:07, simon_saffer wrote:
(snip)
>
My attempt at doing
> this was to put the following in
> urls.py in urlpatterns
>
> (r'^(?P[a-zA-Z0-9]*?\.html?)$', 'mysite.views.showPage')
hint : named urls are cool
> and then have a views.py in the mysite 'root' with the function
is 'mysite' an
On Fri, Oct 1, 2010 at 3:52 AM, Alessandro Ronchi <
alessandro.ron...@soasi.com> wrote:
>
>
> On Fri, Oct 1, 2010 at 3:35 AM, Steve Holden wrote:
>
>> On 9/30/2010 8:26 PM, Nick Arnett wrote:
>> > Brain is mush, though.
>>
>>
> Thank you. I'm waiting with hope :)
>
Brain less mushy now... Somet
Just as a follow-up,
http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Python_Interactive_Debugger
was pretty helpful. In the end, it turned out to be one of those
incredibly frustrating Regular Expression things, where the fix was to
add a "^" anchor to a single RE.
Without an “^” anchor
It is great and I'm using it - I was using minibuf before, but somehow
your config convinced me to use NerdTree.
One question thought - I'd like to have the 80+ characters highlighted
somehow.
I found this:
http://stackoverflow.com/questions/235439/vim-80-column-layout-concerns
but I guess it's no
And thank you for the pointer to the modwsgi debugging page.
On Fri, Oct 1, 2010 at 12:39 PM, dclaar wrote:
> Just as a follow-up,
> http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Python_Interactive_Debugger
> was pretty helpful. In the end, it turned out to be one of those
> incredib
Hi there
i got this error
*Exception RuntimeError: 'maximum recursion depth exceeded while calling a
Python object' in http://groups.google.com/group/django-users?hl=en.
Hi everyone,
I'm used to organizing my Django projects in one folder for the
project and then sub folders for app modules...
/my_project
-__init__.py
-settings.py
/some_app
and so on. However, when I create a new Django project using the PyDev
wizard, I get:
/my_project
/my_proj
Sounds like you have an infinite loop.
On Oct 1, 12:12 pm, Tsolmon Narantsogt wrote:
> Hi there
>
> i got this error
>
> *Exception RuntimeError: 'maximum recursion depth exceeded while calling a
> Python object' in
> help me
>
> Thank you
> Tsolmon
--
You received this message because you are
Hi,
I am using autocomplete on my site for country, state/province and
city.
Problem:
Some people type USA instead of United States. NY instead of New York
etc...
Question:
How can I make an auto complete field not accept anything except the
data that is pulled from the database?
--
You receiv
Answering to ,yself...
Just installed vim 7.3 colorcolumn=80 is perfect for that
zalun
On 10/01/10 17:40, Piotr Zalewa wrote:
> It is great and I'm using it - I was using minibuf before, but somehow
> your config convinced me to use NerdTree.
> One question thought - I'd like to have the 80+ ch
You, sir, are awesome. It worked perfectly.
In case anyone else is wondering what I did:
In models.py:
# import the auth User
from django.contrib.auth.models import User
# Create the proxy model, inherits from User:
class myUser(User):
class Meta:
proxy = True
def __unicode__(se
So how fix it ?
On Sat, Oct 2, 2010 at 1:37 AM, Brandon Taylor wrote:
> Sounds like you have an infinite loop.
>
> On Oct 1, 12:12 pm, Tsolmon Narantsogt wrote:
> > Hi there
> >
> > i got this error
> >
> > *Exception RuntimeError: 'maximum recursion depth exceeded while calling
> a
> > Python o
http://docs.djangoproject.com/en/1.2/topics/db/models/#extra-fields-on-many-to-many-relationships
I have two models with a many-to-many relationship through another
table with extra fields. In this case, I have one extra field which
represents the weight of the relationship.
I'm working on a view
Hi
You have a function or method that is calling itself.
Something like this:
def foo():
print "fun"
bar = foo()
print "never going to happen"
J.
On 01 Oct 2010 9:49 PM, "Tsolmon Narantsogt" wrote:
> So how fix it ?
>
> On Sat, Oct 2, 2010 at 1:37 AM, Brandon Taylor wrote:
>
>>
On 10/1/2010 1:12 PM, Tsolmon Narantsogt wrote:
> Hi there
>
> i got this error
>
> *Exception RuntimeError: 'maximum recursion depth exceeded while calling
> a Python object' in
> help me
>
Was this *really* the only output you got? [I suppose it's possible,
given the nature of the error]. Or
2010/9/27 flebber :
> OKay thanks for the tortoisehg link.I get an error when trying to use
> the hg command
>
>
> C:\>hg clone https://trespams-vim.googlecode.com/hg/ trespams-vim
> requesting all changes
> adding changesets
> adding manifests
> adding file changes
> added 13 changesets with 223 c
Check this out:
http://www.julienphalip.com/blog/2008/08/16/adding-search-django-site-snap/
On Oct 1, 6:52 am, Alessandro Ronchi
wrote:
> On Fri, Oct 1, 2010 at 3:35 AM, Steve Holden wrote:
> > On 9/30/2010 8:26 PM, Nick Arnett wrote:
> > > Brain is mush, though.
>
> Thank you. I'm waiting with
Hello!
I use PostgreSQL, and this is how I accomplished a full text search:
def search(request):
# how to set up postgresql for full text searching
#alter table quote_quote add column body_tsv tsvector;
#CREATE TRIGGER quote_quote_tsvectorupdate BEFORE INSERT OR UPDATE
ON quote_quote FOR EA
maybe i misunderstood your question, but maybe it will help
On Fri, Oct 1, 2010 at 8:19 PM, m1chael wrote:
> Hello!
>
> I use PostgreSQL, and this is how I accomplished a full text search:
>
> def search(request):
> # how to set up postgresql for full text searching
> #alter table quote_quote
On Sun, 26 Sep 2010 11:36:06 +0200
Antoni Aloy wrote:
> http://code.google.com/p/trespams-vim/
i assume you've seen Alain's webpage:
VIM as Python IDE
http://blog.dispatched.ch/2009/05/24/vim-as-python-ide/
--
You received this message because you are subscribed to the Google Groups
"Django
According to documentation (http://docs.djangoproject.com/en/dev/
topics/auth/), models.User contains:
first_name
Optional. 30 characters or fewer.
last_name
Optional. 30 characters or fewer.
email
Optional. E-mail address.
Are "first_name" & "last_name" limited to alphanumeric charac
Hallöchen!
Andy writes:
> According to documentation (http://docs.djangoproject.com/en/dev/
> topics/auth/), models.User contains:
>
> first_name
> Optional. 30 characters or fewer.
> last_name
> Optional. 30 characters or fewer.
> email
> Optional. E-mail address.
>
> Are "first_name
Hi Django folks,
I'm just getting into Django and I'm writing my own authentication
backend by implementing authenticate and get_user. Because my
authentication uses a different hash algorithim (not sha1), I want to
implement my own UserManager.create_user, User.set_password,
User.check_password e
On Oct 2, 1:45 am, Torsten Bronger
wrote:
Thanks for responding.
> Hallöchen!
>
> > Are "first_name" & "last_name" limited to alphanumeric characters
> > or can they contain non-English characters like "ü" or
> > non-European characters like "黒"?
>
> Yes.
"Yes" is in "first_name" & "last_name"
45 matches
Mail list logo