Apache config. admin page displays without stylesheets

2010-10-31 Thread elliot
is project on this machine with the django scripts. if this is the issue, is there a way to manually do what the startproject or startapp scripts are supposed to do?) thanks, Elliot -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Apache config. admin page displays without stylesheets

2010-11-11 Thread elliot
Thanks for the fix. Besides adding a directory directive, one also needs to make an alias so that http://mysite.com/media/ points to the style sheets. I added this to the same apache config as above (and now it works): AllowOverride None Options None Order allow,deny Allow from

Migrating a Django project to new platform

2012-10-03 Thread Elliot
Are there are any obvious packages I am missing? 2) Even though I believe I have installed sorl-thumbnail, the above error obviously indicates an issue. Can someone please suggest where to look in order to address it? 3) Given this type of migration, is there anything obvious which I need to accoun

Re: Migrating a Django project to new platform

2012-10-03 Thread Elliot
27;rb') as fp: ^ SyntaxError: invalid syntax " It's going to take me a while to understand all that. This is likely the first time I've had to dig around python. I'll follow up on your suggestions, but in the meantime, if any of the above throws any more ligh

Re: Migrating a Django project to new platform

2012-10-04 Thread Elliot
ding an older version. Failing that I will try and upgrade Python2.4 to v.27 on the CentOS box from an alternate repo. Cheers guys :) Elliot On Wednesday, October 3, 2012 4:57:49 PM UTC+1, Tom Evans wrote: > > On Wed, Oct 3, 2012 at 4:31 PM, Elliot > > > wrote: > > Hi guys,

Re: VERY cheap django hosting?

2011-06-09 Thread elliot
I use hostgator works great for me. customer service is helpful. -- 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, send email to django-users+un

Boolean field, unexpected behavior

2011-06-09 Thread elliot
I am not new to django, but this misbehavior is blowing my mind. I cannot understand what is happening. please help. Django 1.1 I have: class MeetingMember(models.Model): lastname = models.CharField(max_length = 30) firstname = models.CharField(max_length = 30) active = models.Boole

Re: VERY cheap django hosting?

2011-06-09 Thread elliot
(which is kind of a pain because I have to specify it, creating an alias didn't work, as customer support verified) On Jun 9, 1:55 pm, elliot wrote: > I use hostgator > > works great for me.  customer service is helpful. -- You received this message because you are subscribed

Re: Boolean field, unexpected behavior

2011-06-09 Thread elliot
to my great annoyance, not specifying active has lead to the objects being created as I wanted. But I cannot rely on this. Seems like m.active is true if either true or false is specified, and is false if it is never initialized. On Jun 9, 2:24 pm, elliot wrote: > I am not new to django,

Re: Boolean field, unexpected behavior

2011-06-09 Thread elliot
ve without specifying values for the CharField or BooleanField. I didn't say null="true", and I didn't provide default values. Thanks again, Elliot On Jun 9, 2:44 pm, Shawn Milochik wrote: > On 06/09/2011 03:42 PM, elliot wrote: > > > to my great annoyance, not

getting objects unique in several ways (annotate?)

2011-06-29 Thread elliot
n get more information about it. Can this be done even in multiple queries? Must I hack a solution using lists instead of queries? I have simplified my question quite a bit, I hope not too much. thanks for reading, Elliot -- You received this message because you are subscribed to the Google Groups &qu

Re: getting objects unique in several ways (annotate?)

2011-07-04 Thread elliot
Michal's answer does not work. For each book, I want fields from one of its Transactions. .values('pk') gives the book's pk (no relationship to Transaction) and .values('transaction__recipient') does not work either. I dont know squat about writing queries in sql, so extra doesn't help me. Whe

Re: getting objects unique in several ways (annotate?)

2011-07-04 Thread elliot
incase anyone cares, this is the solution I came up with. an initial query to filter for one condition, and then a for loop that checks that each member satisfies the second condition. hopefully, selected_related makes sure only one db call is made: (in a function) books = Book.objects.filter(wh

Extened User and have fieldsets instead of inlines

2014-08-14 Thread Elliot
like below, or am I just missing something. class UserProfile2Inline(admin.StackedInline): model = UserProfile2 class UserAdminCustom(UserAdmin): inlines = (UserProfile2Inline,) admin.site.unregister(User) admin.site.register(User, UserAdminCustom) Cheers if someone can shed some l

Re: Extened User and have fieldsets instead of inlines

2014-08-15 Thread Elliot
Thanks Andrea, I was more looking to see if anyone had used fieldsets instead of inlines. I imagine it would be quite possible with rewriting the view that serves up the change form for user. It just seems that the fieldset gets rendered because of the associated form but then isn't actually re

Send mail bug needs password passed as bytearray

2017-01-31 Thread elliot
myMail = EmailMessage('subject', 'message', 'someem...@address.com', ['myem...@address.com']) myMail.send() The error I'm getting: File "/Users/Elliot/.virtualenvs/allright/lib/python2.7/site-packages/django/core/mail/message.py&qu

Re: Send mail bug needs password passed as bytearray

2017-01-31 Thread elliot
documentation about this? > > On Tuesday, January 31, 2017 at 6:06:04 PM UTC-5, > ell...@makecollective.co.nz wrote: >> >> myMail = EmailMessage('subject', 'message', 'some...@address.com', [' >> mye...@address.com']) >> myMa

Re: Send mail bug needs password passed as bytearray

2017-01-31 Thread elliot
ilMessage('subject', 'message', 'some...@address.com', [' >>>> mye...@address.com']) >>>> myMail.send() >>>> >>>> The error I'm getting: >>>> >>>> File >>>> "/Users/E

Re: Send mail bug needs password passed as bytearray

2017-02-01 Thread elliot
;>> >>>>> I've never seen a password as a bytearray. Is there webfaction >>>>> documentation about this? >>>>> >>>>> On Tuesday, January 31, 2017 at 6:06:04 PM UTC-5, >>>>> ell...@makecollective.co

HTML5 drag and drop: How does it really work?

2020-09-14 Thread Elliot
I am familiar with the various events in building a dnd. I am trying to find out what is supposed to happen to the HTML source when a drag and drop works. Can anyone explain this to me.? After an apparently successful drag and drop I see no changes to the underlying HTML. I have been using Djan

Re: HTML5 drag and drop: How does it really work?

2020-09-15 Thread Elliot
a field setup for it in the model. In > this case also, there will be no changes in the source-code rather changes > will be saved in database and loaded when page is refreshed. > > On Monday, September 14, 2020 at 12:36:01 PM UTC-4 Elliot wrote: > >> I am familiar with th

Re: HTML5 drag and drop: How does it really work?

2020-09-15 Thread Elliot
As part of the Javascript drop logic I am changing the status field of the form of the sending item to indicate where the player is going, A for slot A, B for slot B, or D for drop. It won't help to change anything on the receiving side, because the item will not exist in the form submitted

Re: 'module' object has no attribute 'TabularInLine' Attribute Error in Django 1

2008-09-25 Thread Elliot Tucker
Thanks for being dumb TeenSpirit83, i've just spent 30mins trying to fix exactly the same typo...small world. On Sep 11, 2:56 pm, TeenSpirit83 <[EMAIL PROTECTED]> wrote: > > The L in Inline should not be capitalized.  Is it in some doc you are > > working from? > > > Karen > > The docs are correc

Re: Google Drive with Django?

2012-05-10 Thread Elliot Bradbury
django-social-auth has some Google OAuth2 code. I'm not sure if it applies to Drive but it might be worth looking at. I was able to create an OpenID backend to a new service in about 2 minutes. https://github.com/omab/django-social-auth/blob/master/social_auth/backends/google.py#L69 On Thu, May 1

Re: Tutorial three '-pub_date'

2012-07-03 Thread Elliot Bradbury
'-' reverses the ordering of that field. So it will order the most recently published Polls first. On Tue, Jul 3, 2012 at 2:33 PM, Smaran Harihar wrote: > Hey Djangoers, > > I am on the tutorial > 3,

Re: TDD with Django/Splinter/plupload queue

2013-03-20 Thread Elliot Bradbury
PhantomJS is a headless webkit browser that can be programmed to perform automated webpage tasks (like maybe select a file for upload). The standard API is Javscript but I believe there is a Python port. Maybe that could help? http://phantomjs.org/ On Wed, Mar 20, 2013 at 3:34 PM, Bill Freeman w

Re: Problem with django 1.5.1

2013-05-09 Thread Elliot Bradbury
Hey kl4us, I think the problem is that you need to specify the URL name as a string, like: {% url 'post' slug=post.slug %} https://docs.djangoproject.com/en/dev/topics/http/urls/#naming-url-patterns Elliot On Thu, May 9, 2013 at 10:29 AM, kl4us wrote: > I have this code http:/

Re: Creating a Node in Django ORM

2013-07-09 Thread Elliot Bradbury
Check out django-mptt for creating parent/child (tree) relationships between models. https://github.com/django-mptt/django-mptt On Tue, Jul 9, 2013 at 9:07 AM, Nafiul Islam wrote: > How would you create a node using Django's ORM. This is what I mean: > https://dpaste.de/JG52c/ > > Now, what I am

Re: How to read part of many-to-many field in the template

2014-06-15 Thread Elliot Bradbury
Hi Mohammad, Check out slice <https://docs.djangoproject.com/en/1.6/ref/templates/builtins/#slice>. It's a builtin template filter that can be used like this: {% for author in book.authors.all|slice:"3" %} {# HTML up in here #} {% endfor %} Good luck, Elliot On Sun, Ju