hi oscar,
Thank you!!! that is awesome! i not even need to manipulate the form using
output data json!
thanks! but , $("xxx").live really is important...
Regards,
MH
On Fri, May 4, 2012 at 4:56 PM, Oscar Mederos wrote:
> Hello Min,
>
> On Friday, May 4, 2012, 10:14:46 AM, you wrote:
>
> > h
doc:disable
auto-escaping
This will not be escaped: {{ data|safe }}
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/JtUzSEmy2X4J.
To post to this group, s
#model
class Article(models.Model):
udate=models.DateTimeField(auto_now=True,auto_now_add=True)
markdown_content=models.TextField()
html_content=models.TextField(editable=False)
def save(self):
self.html_content=markdown(self.markdown_content)
self.update=datetime.da
i made it but isn't solved, maybe i need to override another function
in the class UpdateUserView?
--
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
My frustration was borne by the ease with which Debian makes the task: I
did expect the job to be an insignificant one-line command. Thanks Tom.
Apple don't see a profit in providing a mysql-client package. Ramiro has a
point that lobbying MySQL for a client-only OSX package is a righteous
pat
Hello Min,
On Friday, May 4, 2012, 10:14:46 AM, you wrote:
> hi oscar,
> how do you make use of the particular method to be able to render
> the form only? as you said make use of the
> https://docs.djangoproject.com/en/1.4/ref/contrib/csrf/#ajax and
> it able to render the form instead of pag
In your form (template), are you trying to modify the is_active? I don't
see anything that pops out at me that's missing. If you want to explicitly
set this, you could do someting like this:
class UserForm(ModelForm):
#
def save(self):
m = super(UserForm, self).save(commit =
by the way kurtis, i had a bug in the park_id and didn't even notice that
cause it was working lol, u solve it for me :P
On Friday, May 4, 2012 9:00:43 AM UTC+1, Kurtis wrote:
>
> ahh, okay. Let’s try another approach to see if you can nail down that
> error. I’m not sure why it’s not working.
thanks guys it worked. i did a POST from and it worked ;)
cheers
On Friday, May 4, 2012 8:58:58 AM UTC+1, Jani Tiainen wrote:
>
>
> 4.5.2012 1:22, psychok7 kirjoitti:
> > hi i have done a succefull query and i converted the results into links
> > so i can make a post by clicking on the links to
i start working with django 1.3 class based views
so i have the following problem:
when i try to update a user using django,contrib,auth.models (in this
case User model)
the is_active field doesn't update.
so i have the following view:
class UpdateUserView(UpdateView):
model = User#
Hi Eugenio,
On Thu, May 3, 2012 at 8:58 PM, Eugenio Minardi
wrote:
> ...just make sure that the statics stays out of the repository and that
> into the .gitignore file there are no required path or extensions
>
I like my static files to be in git, you can always create a secondary
repository for
Jani is right, I didn't take a close look at that HTML. Using this (without
any Javascript), you're not submitting a form with method="post" so you
won't actually have any of that request.POST data available that you're
looking for.
On Fri, May 4, 2012 at 3:58 AM, Jani Tiainen wrote:
>
> 4.5.201
If you are getting this error it is because your view is not returning an
HttpResponse object. You need to wrap your return in an HttpResponse, or
use the shortcut render_to_response() like:
return render_to_response('template.htm', {'data':
'to_supply_to_template'}, context_instance=RequestCo
Thanks for the link to your post Reinout!
So, have you made a decision about the way to go for your application?
I like the idea of using two different systems from the backend and the
frontend. I am new to django (a month+), but I don't think there was ever a
doubt in mind that my frontend wo
This is not mine, so I can't give *all* the details, but I was asked to
forward this along. It's a good gig - great people, offices in SoHo,
growing organization within a 100+ year old mainstay of New York City,
https://jobs-wnyc.icims.com/jobs/1116/job
--
You received this message because you
On Fri, May 4, 2012 at 4:06 PM, doniyor wrote:
> if i call the dajaxice.core.js directly from address bar, it shows an error
> saying: ValueError at /dajaxice/dajaxice.core.js The view home.views.index
> didn't return an HttpResponse object.
>
> so it means, i am serving dajaxice.core.js in a wron
Hello Emily,
This is not a direct answer to your question. It looks like Tom has your
answer. You will most likely want to move the {% load markup %} to near to
top of your template. Generally loads only needs to be done once at the
start of the template.
On Friday, May 4, 2012 5:55:28 AM U
Thanks for your replies.
Regarding the localize option, I tried to use it in my models.py [1].
However, I get the following error.
Field.__init__(self, verbose_name, name, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'localize'
[1] http://pastebin.com/9TkwWnNY
Can localiz
if i call the dajaxice.core.js directly from address bar, it shows an error
saying: ValueError at /dajaxice/dajaxice.core.js The view home.views.index
didn't return an HttpResponse object.
so it means, i am serving dajaxice.core.js in a wrong way, right?
Am Freitag, 4. Mai 2012 16:54:40 UTC+
hi
here is the url of dajaxice in my settings.py. url(r'^%s/' %
settings.DAJAXICE_MEDIA_PREFIX, include('dajaxice.urls')),
it is so as given in the docs. or should i configure something somewhere?
it seems that the problem is here..
Am Freitag, 4. Mai 2012 10:10:25 UTC+2 schrieb doniyor:
>
On 04-05-12 15:17, Sells, Fred wrote:
Up to now, I’ve been using Flex for my client side and having Django
return xml for the last 2 years. With Adobe’s policy changes regarding
Flex support, I need to shift future efforts to HTML5. I’m seeking some
general advice from the group on basic technolo
On 04-05-12 05:30, cj wrote:
def myfunc():
blah blah blah
and then in views.py
def myview1():
myfunc()
def myview2():
myfunc()
What you probably want:
def myview1():
return myfunc()
So you might be missing the 'return'. Otherwise you're only calling the
helper function,
hi oscar,
how do you make use of the particular method to be able to render the form
only? as you said make use of the
https://docs.djangoproject.com/en/1.4/ref/contrib/csrf/#ajax and it able
to render the form instead of page?
because i'm using kurtis method, if any validation error, i retrieve
Thanks! kurtis, it did helps me. but, to render the form once it return
validation error. i need to use javascript returned value and
manipulate the form.
is there any refresh form content instead of i need to base on returned
value and manual add the error message?
On Thu, May 3, 2012 at 1:16 PM,
Hi,
to be sure that all your code is into the repo try with git status and
check if all the files are tracked.
Then with git add NAME you can track a single file, a folder or a set of
file and folder. With git add . you can track all the files.
Eugenio
On Fri, May 4, 2012 at 3:46 PM, Stanwin Si
Thanks everyone for the replies.
Reason why i'm asking was because after the migration it seemed that my django
registration module was not picked up.
Hence login and registration are now unavailable.
Was looking at all ways to resolve it.
Shall dig deeper.
Thanks!
Best Regards,
Stanwin S
On Fri, May 4, 2012 at 9:17 AM, Sells, Fred
wrote:
> Up to now, I’ve been using Flex for my client side and having Django return
> xml for the last 2 years. With Adobe’s policy changes regarding Flex
> support, I need to shift future efforts to HTML5. I’m seeking some general
> advice from the g
On Fri, May 4, 2012 at 7:22 AM, Tom Evans wrote:
> On Fri, May 4, 2012 at 4:30 AM, cj wrote:
>> Hi to all,
>>
>> Just wan't to ask if its possible.
>>
>> at helper.py
>>
>> def myfunc():
>> blah blah blah
>>
>> and then in views.py
>>
>> def myview1():
>> myfunc()
>>
>> def myview2():
>>
Up to now, I've been using Flex for my client side and having Django
return xml for the last 2 years. With Adobe's policy changes regarding
Flex support, I need to shift future efforts to HTML5. I'm seeking some
general advice from the group on basic technology/techniques. My
specific question i
On Fri, May 4, 2012 at 1:55 PM, Emily Namugaanyi wrote:
> I am trying to display markdown in my html but it is returning a body
> with html tags:
> This is what is happening...
>
> code in the
>
>
>
>
>
>
> {% for guideline in guidelines %}
> {% load markup %}
>
I am trying to display markdown in my html but it is returning a body
with html tags:
This is what is happening...
code in the
{% for guideline in guidelines %}
{% load markup %}
Question: {{ guideline.question }}
Answer: {{ guid
This is a double post, sorry.
The below issue has now been resolved - I defined a custom 404 handler some
time ago. I removed this previously but forgot to remove the definition
from urls.py!
handler404 = application.views.handler404
On 3 May 2012 22:58, James Hargreaves wrote:
> Thanks for yo
Thanks for your response Tom.
I didn't have the emails enabled until now! The email content is below and
this has helped me figure out the problem.
Some time ago I defined a custom 404 handler (application.views.handler404)
which I have since removed but I forgot to remove the definition from
url
The site is in debug mode. The problem however is that we build the
application step-by-step, because we need data from our client for the next
steps.
That's why we already deployed the site on Google App Engine.
As of the syntax errors you mention, we don't get any errors while testing
the ap
On Thu, May 3, 2012 at 10:54 AM, James Hargreaves
wrote:
> Hello,
>
> I have created a website using Django CMS:
>
> http://www.trailer-traders.co.uk
>
> When I visit a URL on this site that does not exist in Django CMS I get a
> 500 error - eg:
>
> http://www.trailer-traders.co.uk/xxx
>
> I was e
On Fri, May 4, 2012 at 4:30 AM, cj wrote:
> Hi to all,
>
> Just wan't to ask if its possible.
>
> at helper.py
>
> def myfunc():
> blah blah blah
>
> and then in views.py
>
> def myview1():
> myfunc()
>
> def myview2():
> myfunc()
>
> my question is how can i get the caller function from m
hi Stanwin,
I think git is tool to manage your code, no matter it is python or php or
etc.
Migrate code from svn to git, you just make sure your svn commit log is
right in git repo.
And if you just want use git in your development, don't care the remote is
svn or git, you can try git-svn, this i
Hi to all,
Just wan't to ask if its possible.
at helper.py
def myfunc():
blah blah blah
and then in views.py
def myview1():
myfunc()
def myview2():
myfunc()
my question is how can i get the caller function from myfunc().
i'm a newbie at python django so i hope you can help me.
T
On Fri, May 4, 2012 at 2:18 AM, john2095 wrote:
> I've just been through a slice of hell simply because I did not want to
> install mysql-server on my (osx) django development machine - my app
> connects to a remote mysql database. It turns out that python's "mysqldb"
> depends on mysql binaries
On Thu, May 3, 2012 at 10:18 PM, john2095 wrote:
> I've just been through a slice of hell simply because I did not want to
> install mysql-server on my (osx) django development machine - my app
> connects to a remote mysql database. It turns out that python's "mysqldb"
> depends on mysql binaries
It would also help to tell us why you don't want to use django-admin, so we
can have your perspective.
I personally would create a myadmin app and code the admin functionality in
there.
On Fri, May 4, 2012 at 11:14 AM, Benedict Verheyen <
benedict.verhe...@gmail.com> wrote:
> On 4/05/2012 1:41,
On 4/05/2012 1:41, William Ibarra Rodriguez wrote:
> maybe using django.contrib.admin or django.contrib.auth i can do that,
> but i don´t have any start point, so if have any thought please share
> it.
> i want to use the options that django provide(for example the
> password_change and the login o
Hey, thanks, i will try today and let you know. Actually, i did just the same
things shown in installation guide. It cannot find it thru this
127.0.0.1:8000/dajaxice/dajaxice.core.js link.
What was the problem in your case?
Thanks many
--
You received this message because you are subscribed
On 3/05/2012 17:38, Raphael wrote:
> I agree very much with Daniel.
> And Cal is right £1700/month (which is approximately ~2100EUR and ~2750USD)
> really is a good starting goal for a (web) developer (AFTER tax!!!).
> The problem is a lot of us (developers) - we are very poor business
> economic
4.5.2012 1:22, psychok7 kirjoitti:
hi i have done a succefull query and i converted the results into links
so i can make a post by clicking on the links to make a reservation.
No, you haven't. When you click you'll still send very much standard GET
request to server. You can and should verify
Hello Kurtis,
On Thursday, May 3, 2012, 3:16:38 PM, you wrote:
> Here's something I do.
> I have a page where I include {% csrf_token %} and another field.
> Then I do a simple JQuery .post() call.
> Note, I've tried to pull out a bunch of stuff that isn't specific
> to the call. It's untested
On 2012-05-04, at 09:36 , john2095 wrote:
> Oh. Thanks Kurtis. That answers the first question: it's built on mysqldb
> primarily because it's mature and stable. Thanks.
>
> As for the second question: has anyone tried building a backend on
> mysql-connector yet? Silence? Is this an opportun
Oh. Thanks Kurtis. That answers the first question: it's built on mysqldb
primarily because it's mature and stable. Thanks.
As for the second question: has anyone tried building a backend on
mysql-connector yet? Silence? Is this an opportunity?
On Friday, 4 May 2012 16:53:43 UTC+10, Kurtis w
48 matches
Mail list logo