HI
I have a django application running on app engine and I want to add a
twitter login to my application.
Do you have a good links how to do that. I already registered my app
in twitter.
Just don't know how to do login/logout buttons.
Thanks, Arshavski Alexander
--
You received this message
I came from a job where I had been crafting applications using zend
framework - probably the closest thing php has to django. The more object
oriented my php code became, the more it looked, and smelled, like java.
I ended up taking a new job, where my projects started to have dependencies
on
On 16/04/2010 11:15am, CLIFFORD ILKAY wrote:
On 04/15/2010 08:37 PM, Mike Dewhirst wrote:
I have just been asked by a client to install Wordpress for them.
Someone in the marketing department apparently wants a blog for the
organisation.
I'd prefer to avoid php so I'm wondering if anyone knows
On 04/15/2010 09:13 PM, Shawn Milochik wrote:
There are probably a thousand blogging apps done in Django, because
it seems that a lot of people make one when they discover Django.
However, I think you should give them the Wordpress they asked for,
because it's maintained for security by a large
On 04/15/2010 08:37 PM, Mike Dewhirst wrote:
I have just been asked by a client to install Wordpress for them.
Someone in the marketing department apparently wants a blog for the
organisation.
I'd prefer to avoid php so I'm wondering if anyone knows of a Python
or even better a Django
There are probably a thousand blogging apps done in Django, because it seems
that a lot of people make one when they discover Django.
However, I think you should give them the Wordpress they asked for, because
it's maintained for security by a large organization for free. Unless you plan
to
wordpress sucks but you dont need to write a php code to install it
for them
for cpanel: use fantastico to install wordpress
for godaddy or something just manually install it
- codecub
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
I have just been asked by a client to install Wordpress for them.
Someone in the marketing department apparently wants a blog for the
organisation.
I'd prefer to avoid php so I'm wondering if anyone knows of a Python or
even better a Django equivalent?
Thanks
Mike
--
You received this
Karen,
Thanks for the reply =).
Yeah, you're right in that it doesn't make sense for a normal inline.
I was hoping for some sort of "reverse" inline? (Is that the right
word?).
I guess I just wanted some AJAX-y way to create new categories (FK
parents) without having to popup a new window.
Hi,
I have a callable in the modeladmin for an object XX.
Now I want to add a tool button (or something clickable) for
filtering
the changelist displaying only the object having value less than
30.
How would you implement somthing like this?
Thanks a lot!
--
You received this message
Hi all,
I having been trying to figure out how to use unique_together with a
legacy database. I have one table (Table_1) with one PK and another
table with 3 PKs (Table_2), how can I use unique_together in this
case? Any examples or suggestions would be greatly appreciated.
Thank you!
--
You
One of my problems, as Steven mentioned in the thread above this post,
is that I have to be very specific with URLs in my current setup.
For example, site2.domain.com uses the same Django install as
site1.domain.com, but a different application. As a result, in the
urlconf I have to have
Hey guys,
I am trying to render a modelmultiplechoicefield on my template and i
cannot seem to figure out how. any help would be appreciated.
Thanks.
Here is model:
class cvdb(models.Model):
user = models.ForeignKey(User)
Language = models.ManyToManyField(Language,
OK, just as I suspected, I was doing something silly. I was
subclassing TestCase from unittest instead of django.test. I fixed
that, and all is well now. Thanks again for the help.
On Apr 15, 5:11 pm, Dan wrote:
> Thanks. Actually, that was the first thing I tried. I think I
On Apr 15, 8:26 pm, xpanta wrote:
> I have this template problem.
>
> Although {{ myDictionary.1 }} works, if I write
> {{ myDictionary.user.id }} it does not. It prints nothing, actually.
> (user comes from a {% for user in Users %} loop.
>
> user.id is 1 at the first iteration
Thanks. Actually, that was the first thing I tried. I think I saw some
other example online where someone had the path to the fixture in the
code, so I just started trying anything. You're right about the
documentation, though -- it is pretty clear about the location of the
file. That just didn't
On Thu, Apr 15, 2010 at 3:32 PM, Dan wrote:
> Hi,
> I'm pretty new to Django, and I'm trying to create a few simple tests
> for my project. I've created a very basic fixture and I'm trying to
> just load it and see that the data is there. Nothing big. I've read
> the
On Thu, Apr 15, 2010 at 3:48 PM, Bill Freeman wrote:
> Sadly, the problem string doesn't occur at the top level of any of those
> local
> vars. It was worth a shot. It's probably in the context.
>
> If I were you, I'd go find the raise wrapped... in debug.py down at the
>
Sadly, the problem string doesn't occur at the top level of any of those local
vars. It was worth a shot. It's probably in the context.
If I were you, I'd go find the raise wrapped... in debug.py down at the bottom
of the stack trace, and stick a pdb.set_trace() there. Then (assuming you
do
I have this template problem.
Although {{ myDictionary.1 }} works, if I write
{{ myDictionary.user.id }} it does not. It prints nothing, actually.
(user comes from a {% for user in Users %} loop.
user.id is 1 at the first iteration (I have checked it).
Why? What am I doing wroing?
Thanks,
On Apr 15, 10:13 pm, Bill Freeman wrote:
> Got it. It's an inclusion tag with templage change_list_results.html
> . I don't see
> anything suspicious in it. The only things that get rendered are
> rendered simply,
> as just a template variable reference, except for
Got it. It's an inclusion tag with templage change_list_results.html
. I don't see
anything suspicious in it. The only things that get rendered are
rendered simply,
as just a template variable reference, except for "header.txt" which is filtered
through capfirst. I'm unaware of any of those
class Retsept(models.Model):
name = models.CharField(max_length=100, verbose_name=_("Name"),
blank=False, null=False)
user = models.ForeignKey(User)
image = RemovableImageField(upload_to=content_file_name, blank=True,
null=True, verbose_name=_("Image"))
about =
On Apr 15, 7:52 pm, Bill Freeman wrote:
> I don't find it on
> http://docs.djangoproject.com/en/1.1/ref/templates/builtins/.
No, it's not a builtin, it's part of the default admin - it renders
the changelist.
--
DR.
--
You received this message because you are subscribed to
Well i already posted the model and i posted the form. The form is
used in a view like this:
rform = RetseptForm(request.POST, request.FILES, instance=retsept)
if request.method == 'POST':
if rform.is_valid():
rform.save()
And thats it
Alan
On Apr
I don't find it on
http://docs.djangoproject.com/en/1.1/ref/templates/builtins/ .
It may be provided by one of your installed apps. What {% load ... %} tags
are there in the template?
On Thu, Apr 15, 2010 at 2:32 PM, Daniel Roseman wrote:
> On Apr 15, 4:54 pm, zayatzz
On Apr 15, 4:54 pm, zayatzz wrote:
> Hello
>
> I recieve this kind of error message when in admin:
>
> Caught an exception while rendering: ('ascii', 'Madalal temperatuuril k
> \xc3\xbcpsetatud stressivaba sea parim t\xc3\xbckk', 23, 24, 'ordinal
> not in range(128)')
>
I think its standard tag. I have not added any tags in this project
and this string (result_list) does not exist in any of the pluggable
stuff (tagging, tinymce, sorl thumbnail). This string does exist in
django/contrib/admin/templatetags/admin_list.py though.
Alan
On Apr 15, 9:07 pm, Bill
The problem is reported at line 78 of the template, which uses a tag
named "result_list". That isn't one of the standard tags. Where does
it come from? Can you provide the source code?
Bill
On Thu, Apr 15, 2010 at 1:59 PM, zayatzz wrote:
> Header is like that:
>
>
The difficulty with the decorator approach is that, at least in the case of my
"DataError", in the course of executing modelinstance.save(), nobody has
called transaction.set_dirty(), so the commit_on_success decorator's
wrapper doesn't call rollback.
If I caught the error inside of the wrapper,
Header is like that:
http://www.w3.org/1999/xhtml;>
and database is:
MySQL charset: UTF-8 Unicode (utf8)
and collation is utf8_unicode_ci
Whole traceback is:
TemplateSyntaxError at /admin/retsept/vote/
Caught an exception while rendering: ('ascii', 'Sea\xc5\xa1a\xc5\xa1l
\xc3\xb5kk ', 3, 4,
Hello,
I sometime faced this issue when the data were not properly formatted in the
database.
I mean, there was stored in the database through another system that did not
handle correctly charset conversions.
Sometime one stores unicodes or iso-8859-xx and says it is utf-8 or whatever.
What
Makes sense. Thanks.
On Apr 15, 7:03 pm, Tom Evans wrote:
> On Thu, Apr 15, 2010 at 2:00 PM, chefsmart wrote:
> > Thanks for that tip.
>
> > I can guess what empty_permitted is, but could you explain how
> > empty_permitted is related to
Ok thanks, I choose this one
On 15 avr, 18:23, "ge...@aquarianhouse.com"
wrote:
> As already mentioned, the best would be to use
> render_to_string('email_template.txt', {'name':'John',
> 'msg':'message'}) and pass it through.
>
> On Apr 15, 6:13 pm, Tim Shaffer
On Thu, Apr 15, 2010 at 11:54 AM, zayatzz wrote:
> Hello
>
> I recieve this kind of error message when in admin:
>
When doing what, exactly, in admin?
> Caught an exception while rendering: ('ascii', 'Madalal temperatuuril k
> \xc3\xbcpsetatud stressivaba sea parim
We probably need to see the template, and/or the full stack trace.
Or maybe the default characterset is declared incorrectly.
I think that something is trying to convert a unicode object to an
ascii object (because perhaps the default character set is ascii),
and characters like these don't have
My immediate thought, looking at your error, is that your database is storing
text data as ASCII rather than a unicode encoding (utf-8 being the most
common). Perhaps you should check your database character set. IIRC, MySQL
uses an ASCII character set by default, unless you choose otherwise
As already mentioned, the best would be to use
render_to_string('email_template.txt', {'name':'John',
'msg':'message'}) and pass it through.
On Apr 15, 6:13 pm, Tim Shaffer wrote:
> Can't you just concatenate them like so?
>
> message = "Last Name: " + last_name + "
Can't you just concatenate them like so?
message = "Last Name: " + last_name + " Message: " + message
Or if you want to get really fancy, you could create a template, pass
the form as a context, and render the template for the e-mail message.
--
You received this message because you are
Hi everybody !
is it possible to concat a message with send_mail ?
I mean :
I have my ContactFrom with some forms like last_name and myMessage.
To send the message, I have to use send_mail(subject, message, sender,
recipients).
And I would like to include last_name and myMessage on message.
Hello
I recieve this kind of error message when in admin:
Caught an exception while rendering: ('ascii', 'Madalal temperatuuril k
\xc3\xbcpsetatud stressivaba sea parim t\xc3\xbckk', 23, 24, 'ordinal
not in range(128)')
The text should actually be "Madalal remperatuuril küpsetatud
stressivaba
Your probably better off with three separate VirtualHosts in your case.
They can point to the same django project but use different settings files
with a different SITE_ID for each one. This would allow you to utilize the
built in Sites framework.
On Wed, Apr 14, 2010 at 7:08 PM, Steven Degutis
I'm following you now. I was reading through the transaction.py code after
David's post, and had just come to the same conclusion.
I have a function (called in a loop) that contains all my model get's and saves,
so I tried the commit_on_success decorator. Sadly, the next database
interaction
i am able to install django
Its Works
Thanks Very much ( Django users)
On Apr 15, 10:43 am, Eximius wrote:
> Try syncdb using manage.py command i.e.
> # manage.py syncdb
>
> On Thu, Apr 15, 2010 at 12:47 AM, Alexis Selves
> wrote:> try to insall
Thanks, I think this exactly what I need.
-Dilan
On Apr 14, 9:06 pm, Chris Moffitt wrote:
> What you want to use is x-sendfile or one of it's variants depending on your
> server.
>
> Here's the Nginx page -http://wiki.nginx.org/NginxXSendfile
>
> Here's where we use it in
Bill Freeman wrote:
> How does this apply when there is no request? I'm not following you.
I forgot to say, that I would create a temporary script file which
uses the decorator commit_on_success instead of using "manage.py shell".
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
Benjamin Reitzammer wrote:
> Hi Thomas,
> how did you make sure, that the tests are read-only? Did you apply any
> special measures/tricks (like using a special DJANGO_SETTINGS_MODULE,
> that has read-ony access to the database), or are your tests read-only
> by convention and you trust the
Thanx
Problem resolved :)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more
Bill Freeman wrote:
> How does this apply when there is no request? I'm not following you.
>
I wrote:
>> Only methods that are called from the shell (scripts in bin/...) have the
>> commit_on_success decorator.
With shell I mean a unix like shell, cron-job or something like this, where you
On Apr 15, 3:54 pm, "bax...@gretschpages.com"
wrote:
> On Apr 14, 11:08 pm, HiddenWolf wrote:
>
>
>
> > TemplateSyntaxError at /blog/
>
> > Caught an exception while rendering: 'module' object has no attribute
> > 'smartyPants'
>
> I think you want
Perhaps you can say here what you fixed so others can learn.
On Apr 14, 7:25 pm, pedjk wrote:
> Problem solved. I just had to fix the code in mysql.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
On Thu, Apr 15, 2010 at 2:00 PM, chefsmart wrote:
> Thanks for that tip.
>
> I can guess what empty_permitted is, but could you explain how
> empty_permitted is related to can_delete? I couldn't find it in the
> docs, and such relationship is not apparent from the code.
>
On 14/04/10 23:15, Bill Freeman wrote:
The trouble is, I don't know how. Just calling django.db.transaction.rollback()
doesn't work, and neither do several other guesses.
N.B. Despite eventually signalling a TransactionManagementError if
django doesn't "think" it's in a
Even better, don't put them in as an attribute. Separate your JS out
and call the form element by ID (which it already has)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To
manage.py is not in your path. If it's not in your path, you have to give
the full path with the command, like /path/to/my/executable. However, if
you are in the same directory as the executable, your full path becomes
"./executable". So, the bottom line is, cd to the location of manage.py and
On Apr 14, 11:08 pm, HiddenWolf wrote:
>
> TemplateSyntaxError at /blog/
>
> Caught an exception while rendering: 'module' object has no attribute
> 'smartyPants'
>
I think you want smartypants, not smartyPants
--
You received this message because you are subscribed to the
P?[-\w]+
to
?P[-\w]+
On Apr 15, 3:46 pm, Pankaj Singh
wrote:
> Page not found (404) Request Method: GET Request
> URL:http://10.115.4.61:1234/weblog/2010/apr/14/how-it-functions/
>
> Using the URLconf defined in django_project.urls, Django tried these URL
>
Page not found (404) Request Method: GET Request URL:
http://10.115.4.61:1234/weblog/2010/apr/14/how-it-functions/
Using the URLconf defined in django_project.urls, Django tried these URL
patterns, in this order:
1. ^admin/
2. ^weblog/$
3.
How does this apply when there is no request? I'm not following you.
Bill
On Thu, Apr 15, 2010 at 4:20 AM, Thomas Guettler wrote:
> Hi,
>
> here is the way I do it: I use the TransactionMiddleware. Every request gets
> commited or rollbacked (A of ACID (atomar)).
>
> Only
Yes. I saw that in the implementation of django.db.transaction.rollback().
I hesitate to use "private" methods, but since it's an odd requirement, I
may well go this way.
Thanks,
Bill
On Wed, Apr 14, 2010 at 7:25 PM, Joe wrote:
> On Apr 14, 6:15 pm, Bill Freeman
On Apr 15, 2010, at 9:30 AM, Jagdeep Singh Malhi wrote:
> how to install django in ubuntu ?
>
> Please Replywith full instruction
>
Full instruction, as requested:
Go to google.com and search for "install django in ubuntu."
Read and learn.
The End
--
You received
how to install django in ubuntu ?
Please Replywith full instruction
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group,
Follow the tutorial on http://docs.djangoproject.com
http://docs.djangoproject.com/en/1.1/intro/tutorial01/#intro-tutorial01
__
Vinícius Mendes
Solucione Sistemas
http://solucione.info/
On Thu, Apr 15, 2010 at 10:23 AM, Jagdeep Singh Malhi <
singh.malh...@gmail.com> wrote:
Hallo!
I would like to ask, if it is possible to render just a part of a
Django template, and if yes how ?
In especially I only want to render the localization on the server
(everything which is in {% trans "Something to translate" %}), then
send the translated django template to the client.
#apt-get install python-django
After this what can i do..
On Apr 15, 12:17 am, Alexis Selves wrote:
> try to insall package python-django using apt-get install
>
> On 14 dub, 20:47, "Tom X. Tobin" wrote:> On Wed,
> Apr 14, 2010 at
#manage.py syncdb
is not worked...
error messge is :
manage.py: command not found
On Apr 15, 10:43 am, Eximius wrote:
> Try syncdb using manage.py command i.e.
> # manage.py syncdb
>
> On Thu, Apr 15, 2010 at 12:47 AM, Alexis Selves
>
Thanks for that tip.
I can guess what empty_permitted is, but could you explain how
empty_permitted is related to can_delete? I couldn't find it in the
docs, and such relationship is not apparent from the code.
Regards.
On Apr 15, 3:16 pm, Tom Evans wrote:
> On Thu,
I get two specific errors:
One resulting from the block:
def save(self, force_insert=False, force_update=False):
from markdown import markdown
from smartypants import smartypants
self.copy_html = smartypants(markdown(self.copy, ['abbr',
I found exactly what I was looking for in the docs,
http://www.djangoproject.com/documentation/0.96/model-api/#many-to-one-relationships.
Using limit_choices_to={column_in_related_table_as_string : value_as_string}
did exactly what I was looking for.
Hope this helps someone else.
Darren
On
Full roadmap: http://code.djangoproject.com/wiki/Version1.2Roadmap
On Apr 15, 1:56 pm, Karen Tracey wrote:
> On Thu, Apr 15, 2010 at 7:51 AM, Sudhakar wrote:
>
> > When is the official release of Django 1.2?
>
>
On Thu, Apr 15, 2010 at 7:51 AM, Sudhakar wrote:
> When is the official release of Django 1.2?
>
http://www.djangoproject.com/weblog/2010/apr/14/django-1_2-release-schedule-update-5/
Karen
--
You received this message because you are subscribed to the Google Groups
When is the official release of Django 1.2?
Thanks,
Sudhakar
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
On Thu, Apr 15, 2010 at 3:24 AM, Victor Hooi wrote:
> However, I still wanted some way of creating categories on the "Add
> Article" page - is there a way of doing inlines here, and having the
> "Add Firm" embedded on that page (without having to open a new
> window), or
On Thu, Apr 15, 2010 at 1:58 AM, Victor Hooi wrote:
> heya,
>
> We're creating a small app to manage data-entry of publicat articles
> in Django.
>
> Each article has a category, a subject, a list of firms (as in the
> companies mentioned), etc.
>
> I'm trying to add firm
It seems there is no such table "DatabaseError: no such table:
polls_choice "
./manage syncdb
would help :)
On Apr 15, 10:43 am, Vetc wrote:
> Hello,
>
> I am a new user of Django, i am following the instructions at this web
> page
Hello,
I am a new user of Django, i am following the instructions at this web
page (http://docs.djangoproject.com/en/1.1/intro/tutorial01/#playing-
with-the-api).
Everything works fine untill the last part. when i enter the command
line : p.choice_set.all() I get these errors :
>>>
Hi Thomas,
how did you make sure, that the tests are read-only? Did you apply any
special measures/tricks (like using a special DJANGO_SETTINGS_MODULE,
that has read-ony access to the database), or are your tests read-only
by convention and you trust the developer that he/she does the
RightThing?
On Thu, Apr 15, 2010 at 6:45 AM, chefsmart wrote:
> Hi,
>
> I have an inlineformset with a custom Modelform. So it looks something
> like this:
>
> MyInlineFormSet = inlineformset_factory(MyMainModel, MyInlineModel,
> form=MyCustomInlineModelForm)
>
> I am rendering this
Hi,
I think the problem is tyhat you're using the wrong type of field in your form.
A ChoiceField, like the documentations says [1], returns '' for an
empty value, i.e. when
you do not select an option. Trying to save an empty string into ans
INT field in the database
will throw the error you
Sure, use verbose_name='FOO'
On Apr 15, 11:15 am, Alfredo Alessandrini
wrote:
> Hi,
>
> I've this model:
>
> class Persone(models.Model):
> CV = models.TextField()
>
> Can I change the name "CV" when I display it in a formset?
>
> Thanks,
>
> Alfredo
--
You
Hi,
I've this model:
class Persone(models.Model):
CV = models.TextField()
Can I change the name "CV" when I display it in a formset?
Thanks,
Alfredo
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
http://stackoverflow.com/questions/68477/send-file-using-post-from-a-python-script
although this is not really a django issue...
On Tue, Apr 13, 2010 at 8:59 PM, Rafael Nunes wrote:
> How can I send a file over HTTP?
--
You received this message because you are
Hi,
here is the way I do it: I use the TransactionMiddleware. Every request gets
commited or rollbacked (A of ACID (atomar)).
Only methods that are called from the shell (scripts in bin/...) have the
commit_on_success decorator.
If methods get used from the shell and from views, they do not
If anyone is curious,
We some mega help from the man in the know (Dan Hilton) I have managed
to write a snippet to handle this functionality.
You can find it here!
http://www.djangosnippets.org/snippets/1985/
On Apr 14, 9:18 am, Rob Charlwood wrote:
> Hello all,
>
Hi,
I use django since several months and wrote a lot of
readonly unittests that I run on live systems.
I think Django has only a infrastructure for test
which use a temporary database.
I am happy with my solution, but it would be nice
to have the "infrastructure" in django itself.
- A page
heya,
Just to clarify.
My understanding is that the FK should be on Articles, since that's
the many side of the many-to-one, and also the "child" in a sense.
However, I still wanted some way of creating categories on the "Add
Article" page - is there a way of doing inlines here, and having the
One solution would be to attach your click event handler later, using an
anonymous function instead of an inline onClick attribute.
$('').appendTo('.routelist').click(function(){
Dajaxice.maps.reservation('reservation_callBack'); });
On Wed, Apr 14, 2010 at 10:02 AM, Alexis Selves
Many thanks Rolando,
I can't believe I calling the wrong function...
Fixed and working now.
Cheers,
Alan
On 14 Apr, 19:07, Rolando Espinoza La Fuente
wrote:
> On Wed, Apr 14, 2010 at 1:25 PM, Alan wrote:
>
> [SNIP]
>
> > handler =
Nitin,
You will need to provide more information about the error you are getting
and in what circumstances it is occurring if you would like someone to help
you.
Ian
On Thu, Apr 15, 2010 at 2:10 PM, nitin shrimali wrote:
> Hello guys
> I am having error when performing
89 matches
Mail list logo