> Inside the widget's render() function, I have a formatted string that
> contains embedded JS, and within that string I have a JS function that
> looks like:
>
> function showCrossHair(divId) {
>...
>div.innerHTML = '';
>...
> };
this looks awful to me. Can't you stick tha
I've got my own https://github.com/Lacrymology/cmsplugin_s3slider
which works for http://www.serie3.info/s3slider/ out of the box, and
the plugin I forked from is nice, too
--
"The whole of Japan is pure invention. There is no such country, there
are no such people" --Oscar Wilde
|_|0|_|
|_|_|0|
So, you need to create a "user registration" view.
Plus, I'd just use auth.models.User
https://docs.djangoproject.com/en/1.3/topics/auth/ because you're
saving the passwords as plain text, and that is A Bad Thing.
That, and because there's a bunch of stuff and apps you can use to
help you on all
> I'm puzzled with this too. Did anyone manage to find a solution to resolving
> spaces in usernames.
>
> Generally a user, these days logs in with their email - that's predominately
> how I've setup all my django projects. People don't remember usernames. It
Well, I can't really agree, but whatev
I *think* it should work OK, data-wise. Try changing the
login/registration forms so chinese characters pass the verification
process. You can start by trying with a simple CharField with no
verification and see if it works.
On Sun, Dec 9, 2012 at 7:49 AM, Scarl wrote:
> I am a chinese user. I wa
each template needs to {% load %} every templatetag library it uses, this
is normal behavior
On Mon, Dec 31, 2012 at 8:31 AM, bikeridercz wrote:
> Dears,
>
> strange thing happens to me, {% load l10n %} is not loaded in my base.html
> template, all other things like css works well.
>
> Thus I'm
what mengu says is good for templates, but not so for views.
But lo! your request should have a .user property that points to the
currently logged user, so try
request.user
in your view
On Tue, Jan 22, 2013 at 4:49 PM, Mengu wrote:
> hi fellipe,
>
> if you enable auth context processors and
ger, more complex, and more
> violent. It takes a touch of genius -- and a lot of courage -- to move in
> the opposite direction."*
> Albert Einstein (March 14th 1879 – April 18th 1955)
>
>
> 2013/1/22 Tomas Neme
>
>>
>>
>> what mengu says is good for templa
> I don`t understand that.. in my form, I don't have the request, or I have?
>
> I know I have request in my view, but I need to pass UserProfile to my form,
> but inlineformset_factory doesn't accept to pass vUserProfile as parameter,
> even I modified __init__ to get this parameter.
OK, so you
Use virtualenvs. That's basic for any serious python development
you'll want to do.
Besides that, you might add DjangoProjectA to sys.path on ProjectA
(and add DjangoProjectB to sys.path on ProjectB) in their respective
manage.py files.
On the other hand, why does pip install -e install it under
> > Use virtualenvs. That's basic for any serious python development
> > you'll want to do.
>
> Totally agree. Setting up virtualenv's are our long term goal.
really, it should be your SHORT term goal.
As for your problem, you can't expect to install FOOAPP in two
different directories on the sam
just to clarify:
somewhere else, not a subdir of any of your projects/
|
---FOOAPP/
|
---templates/
|
---fooapp/
|
--mytemplate.html
projectA/
|
--settings.py
|
--urls.py
|
--templates/
|
There's a way to do what you want to do, but I don't remember out of
the top of my head. I can check it out on the week, but you'll need to
customize some things on the Producer's ModelAdmin, not just set the
list of inlines, because, as it was said, inlines are for "children"
objects (i.e. other o
I just ran into this. It presses a pretty strong case...
http://codahale.com/how-to-safely-store-a-password/
--
"The whole of Japan is pure invention. There is no such country, there
are no such people" --Oscar Wilde
|_|0|_|
|_|_|0|
|0|0|0|
(\__/)
(='.'=)This is Bunny. Copy and paste bunny
(")_
and here it presses an even stronger case about NOT using bcrypt but
something even slower
http://www.unlimitednovelty.com/2012/03/dont-use-bcrypt.html
On Wed, Feb 27, 2013 at 12:33 PM, Tomas Neme wrote:
> I just ran into this. It presses a pretty strong case...
>
> http://codahale.c
> This approach applies the decorator on a per-instance basis. If you want
> every instance of a view to be decorated, you need to take a different
> approach.
This means that with "this approach" you have to apply the decorator
in every instance you want modified, that is, every time you have thi
as,
>
> now I got it! Still the original usage of "per" and "every" sounds strange to
> me.. it should be more like "per instance within a URL pattern", but I am not
> a native in English, so nevermind.
>
> Thanks!
>
> On Feb 28, 2013, at 8:54 P
> We haven't used SHA-based or MD5-based hashing for some time.
oh, I was convinced sha2 was being used.
I probably just read the code a while ago and didn't notice it in the changelogs
--
"The whole of Japan is pure invention. There is no such country, there
are no such people" --Oscar Wilde
Silly, but aren't you missing
class Patient()
save(self):
self.kind = 'p'
super(Patient, self).save()
or some such thing and something similar for Doctor? I guess it might be in
the forms, but since it's nowhere in the code you showed...
--
You received this message beca
django.db.models.manager, L118
it seems to be "get_query_set" not "get_queryset"
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@google
The docs say this has changed to get_queryset in dev version, 1.5 uses
get_query_set
isn't this a rather.. radical change? Is backwards compatibility
maintained somehow?
On Sun, Jun 2, 2013 at 12:40 PM, Tomas Neme wrote:
> django.db.models.manager, L118
>
> it seems to be "
> Trying to learn the platform and work on the project at the same time.
>
> Thanks, Feyzi
first of all, do the tutorial, don't try to go further until you're
somewhat comfortable with the concepts there. You'll get the feel of
the most basic and powerful django tools are: models, forms, and the
a
https://docs.djangoproject.com/en/1.5/howto/static-files/
On Tue, Jun 11, 2013 at 8:32 AM, wrote:
> I am build my application using Python 2.7 and Django 1.3.7.All it is
> working perfectly and most of the part are over so we planed to move it to
> live.While checking with DEBUG = False in setti
a regex?
something like re.match("\[http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
I usually don't send formatted email, but needed to clarify what's code and
what's not
I'm trying to get apache to run my django site at
django.tomasneme.com.arand the requests are timing out. There's
nothing in apache's or the site's
configured error logs, except for this when I start the server:
With LogLevel debug:
[Tue Mar 15 18:50:46 2011] [warn] mod_wsgi: Compiled for Python/2.6.5.
[Tue Mar 15 18:50:46 2011] [warn] mod_wsgi: Runtime using Python/2.6.6.
[Tue Mar 15 18:50:46 2011] [notice] Apache/2.2.16 (Ubuntu)
PHP/5.3.3-1ubuntu9.3 with Suhosin-Patch mod_wsgi/3.2 Python/2.6.6 configure
> I'm updating the mod_ right now
that fixed it. Thank you all
--
"The whole of Japan is pure invention. There is no such country, there
are no such people" --Oscar Wilde
|_|0|_|
|_|_|0|
|0|0|0|
(\__/)
(='.'=)This is Bunny. Copy and paste bunny
(")_(") to help him gain world domination.
--
Yo
101 - 127 of 127 matches
Mail list logo