Postgres paginator fixing slow count(*)

2011-11-07 Thread Alec
ault admin page for a large table! http://djangosnippets.org/snippets/2593/ Alec -- 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 em

Admin - click through to parent / child

2011-02-16 Thread Alec
no need to edit admin.py for each model) appears below the record you are currently editing. For lookup/parent fields, where there is currently the drop down to select the parent, you would also be able to click the name to go directly to that parent record. Any ideas? Google didn't find me anythin

Re: Admin - click through to parent / child

2011-02-18 Thread Alec
Thanks for the ideas, but those projects are more for arbitrary relationships. I'm thinking about just extending the basic functionality of the admin site like in this image: http://i53.tinypic.com/16h10m0.png On Feb 18, 2:03 am, Derek wrote: > On Feb 16, 7:22 pm, Alec wrote:

Re: Can't import flup.server.fcgi

2009-03-29 Thread alec resnick
For others running into this problem, pulling from the django trunk and running with the most recent version fixed this problem for me. Thanks! -a. On Mar 19, 8:31 pm, coffeepunk wrote: > > This has been reported as ticket #10556 earlier today. It will be fixed > > in the next few hours, I susp

Re: is it possible to pass a dynamic list of choices to a select widget?

2010-08-03 Thread Alec Shaner
Based on what you described as your intent, have you looked at ModelChoiceField? You could create a new table, e.g. ProductOptions, that has a foreign key to your Product table. In your form class you can then pass a queryset into the ModelChoiceField that selects only the options for that product

Re: TypeError: decoding Unicode is not supported

2010-08-03 Thread Alec Shaner
unicode gives me nightmares. Taking django out of the picture for a moment: >>> unicode('foo', 'utf-8') u'foo' >>> unicode(u'foo', 'utf-8') Traceback (most recent call last): File "", line 1, in TypeError: decoding Unicode is not supported So I would assume when you run it inside django you're

Re: TypeError: decoding Unicode is not supported

2010-08-04 Thread Alec Shaner
LANG > > - > > Have you got any clues what may cause the problem? > > Thank you for your help. > > On Aug 3, 11:31 pm, Alec Shaner wrote: > > unicode gives me nightmar

Re: TypeError: decoding Unicode is not supported

2010-08-04 Thread Alec Shaner
ng special with apache. If you put that in your code and it has UTF-8 in both cases then this issue is beyond me. On Wed, Aug 4, 2010 at 4:10 PM, sohesado wrote: > > > > On Aug 4, 6:48 pm, Alec Shaner wrote: > > I'm no expert on encodings so I can only suggest some alter

Re: overriding model.save()

2010-08-05 Thread Alec Shaner
The "new" values are what you just set: in your example, self.a=3 and self.b=4 if you're inside your custom save method. Then you can get the current values from the database from inside your custom save with something like: current = Foo.objects.get(pk=self.pk) and inspect current.b for special

Re: queryset field order

2010-08-06 Thread Alec Shaner
You can't use a dictionary if you expect a certain order of key/value pairs. Given model A you could get a list of field objects in the same order (I think) as defined in the model class A._meta.fields At least with that information you could programatically produce a list of data in matching or

Re: confusing query involving time ranges

2010-08-12 Thread Alec Shaner
Hopefully some django sql guru will give you a better answer, but I'll take a stab at it. What you describe does sound pretty tricky. Is this something that has to be done in a single query statement? If you just need to build a list of objects you could do it in steps, e.g.: # Get all State obje

Re: query evaluation problem

2010-08-16 Thread Alec Shaner
Regarding your issue with get_next, could be because you're invoking the method when you define default=get_next(). Try it with just the bare method name get_next. You could also use the aggregate function instead of creating a new model: http://docs.djangoproject.com/en/1.2/topics/db/aggregation

Re: select statements with specific fields across multiple tables...

2010-08-16 Thread Alec Shaner
1. What is your code for doing the filters? If you want to start with physical drives it would be something like: RaidPhysicalDrive.objects.filter(in_array__in_storage__in_system__id=) 2. In your template you've referenced pd.in_array_id, but don't you just want pd.in_array if you're wanting to

Re: flatpages and menu

2010-08-24 Thread Alec Shaner
You could use a context processor to read the flatpage table to build the menu. If you want more control over the menu then create a Menu model and store the flatpage links there and again build the menu in a context processor. You would probably want to use some level of caching if you don't want

Re: Finding current view url in template?

2010-08-24 Thread Alec Shaner
You could set a context variable, e.g., listing_operation = 'Edit' or 'Create'. Or you could use different templates, each inheriting a common template and only doing minor tweaks. On Tue, Aug 24, 2010 at 9:04 AM, reduxdj wrote: > I have some decisions i need to make in my template based on the

Re: Please wait page trouble

2010-08-31 Thread Alec Shaner
Rolando's suggestion is a pretty straight forward method to achieve what you want. You probably need to elaborate where in the process you're having trouble (although based on your response maybe it's the first step?). You can indeed call a view.my function from your please wait template, but you w

Re: Please wait page trouble

2010-08-31 Thread Alec Shaner
$.getJSON should be embedded in your initial Page Wait response page. The first argument isn't a view, rather a URL. So you might want to use the django url template tag, e.g., $.getJSON('{% url whatever.run_DHM %}', ...) The second argument is a callback function. The browser stores the callback

Re: Discrepancy between model formset and the queryset it's based on

2010-09-01 Thread Alec Shaner
Perhaps see: http://docs.djangoproject.com/en/1.2/topics/forms/formsets/ where it talks about the "extra" keyword that controls how many blank forms to add, the default is 1 On Wed, Sep 1, 2010 at 5:31 PM, ses1984 wrote: > Basically I have a queryset with N items in it, which I use to create

Re: Please wait page trouble

2010-09-07 Thread Alec Shaner
ML page as > an example or a live example on the web. I am sorry for the trouble > but I'd like to understand this and get it working. > > On Tue, Aug 31, 2010 at 7:37 PM, Alec Shaner > wrote: > > $.getJSON should be embedded in your initial Page Wait response page.

Re: Please wait page trouble

2010-09-09 Thread Alec Shaner
Could you post the full url.py file? And as Brian mentioned your javascript block should be separated. Plus you have an extra }); that's going to fail once you resolve this reverse error. It's also not clear what you intend to happen when run_DHM returns its response? It looks like your intent is

Re: Please wait page trouble

2010-09-09 Thread Alec Shaner
7;ran_DHM.html', ...) This is over simplified, but should serve to get started if you want to use this redirect approach. On Thu, Sep 9, 2010 at 9:59 AM, Bradley Hintze wrote: > Alec, > > Thanks for your patience. The jquery tutorials have been frustrating. > Anyway, I do not have

Re: Please wait page trouble

2010-09-09 Thread Alec Shaner
plate. I'm not intimately familiar with the Session API, but isn't it just a dictionary? On Thu, Sep 9, 2010 at 11:05 AM, Bradley Hintze wrote: > Thanks Alec, > > That finally makes sense. However, I do have a question here: > > def display_DHM(request): ># Ge

Re: Please wait page trouble

2010-09-09 Thread Alec Shaner
} else { > alert(data); >} >} >}); > > > an of course configure url.py and view.py as explained previously. Is > there an easy way to do this? In other words, what are the > If_come_from_pageA and If_come_from_pageB conditions? Can

Re: Please wait page trouble

2010-09-10 Thread Alec Shaner
Excellent. Glad you got it working. On Fri, Sep 10, 2010 at 8:54 AM, Bradley Hintze wrote: > I got to work! I needed a good nights sleep to see it. the url was > '/DHM_run/' NOT '/run_DHM/'. > > Thanks Alec > > -- You received this message because y

Re: db filter comparing a minimum to a range

2010-09-13 Thread Alec Shaner
Maybe this is what you want: http://docs.djangoproject.com/en/1.2/topics/db/aggregation/#filtering-on-annotations On Mon, Sep 13, 2010 at 3:32 PM, Phlip wrote: > Djangoids: > > Consider this QuerySet: > > Blog.objects.filter(comment__date__range=(self.yesterday, > self.tomorrow)) > > It retur

Re: Querying Exact Foreign Key Sets

2010-09-15 Thread Alec Shaner
Try this: I'm assuming you define Article.category as a ManyToMany field? I also assumed for the example that Category has a name field. # Build a queryset of all categories not in desired set, e.g., 'Exact1' and 'Exact2' bad_categories = Category.objects.exclude(category_name__in=['Exact1', 'Exa

Re: Bug in model inheritance?

2010-09-28 Thread Alec Shaner
As to whether it's a bug or not I have no idea, though it seems so. If you use: entity = models.OneToOneField(Entity, parent_link=True, primary_key=True) it will create the primary key in both Kid and Adult tables, which sounds like what you want? On Tue, Sep 28, 2010 at 1:06 PM, phill wro

Re: Why Django Admin Won't Display full graphics

2010-09-30 Thread Alec Shaner
Also, if you're using mod_wsgi (recommended over mod_python), see this: http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango On Thu, Sep 30, 2010 at 12:12 PM, Addy Yeow wrote: > runserver takes care of thing like this for you but you need to handle > it properly in Apache. > See > http:

Re: treating different versions of website urls as one

2010-10-05 Thread Alec Shaner
Definitely sounds like a regular expression is what you need. Not sure what you mean by etcare you saying any variation of a web address for mysite.com, i.e., with or without www prefix, with our without protocol http://, and with our without the index page, which itself could be any variation

Re: Rich email with attachments

2010-10-14 Thread Alec Shaner
On Thu, Oct 14, 2010 at 3:45 AM, Sheena wrote: > I also want to have the option to add any attachment. So I want to > have a button that when pressed allows the user to pick a file on > their hdd and have it uploaded immediately, without loosing anything > that's already filled in on the email for

Re: Help with Manager.

2010-10-14 Thread Alec Shaner
See this: http://ifacethoughts.net/2009/07/14/calculated-fields-in-django/ So perhaps the 'extra' query filter is what you need. 2010/10/14 Marc Aymerich : > > > 2010/10/14 Marc Aymerich >> >> >> 2010/10/14 Jonathan Barratt >>> >>> On 14 ต.ค. 2010, at 22:27, Marc Aymerich wrote: >>> >>> Hi, >>

Re: Help with Manager.

2010-10-14 Thread Alec Shaner
t 5:57 PM, Marc Aymerich wrote: > > > On Thu, Oct 14, 2010 at 10:08 PM, Alec Shaner wrote: >> >> See this: >> >> http://ifacethoughts.net/2009/07/14/calculated-fields-in-django/ >> >> So perhaps the 'extra' query filter is what you need. >>

Re: Help with Manager.

2010-10-15 Thread Alec Shaner
Sorry, not sure about that warning because I'm using a postgresql database. On Fri, Oct 15, 2010 at 3:17 AM, Marc Aymerich wrote: > > > On Fri, Oct 15, 2010 at 3:39 AM, Alec Shaner wrote: >> >> You can't add a datetime to another datetime - you want to add a

Re: F() and timedelta. Bug on django?

2010-10-15 Thread Alec Shaner
ors.py", line 168, in > execute >     if not self._defer_warnings: self._warning_check() >   File "/usr/lib/pymodules/python2.6/MySQLdb/cursors.py", line 82, in > _warning_check >     warn(w[-1], self.Warning, 3) > Warning: Truncated incorrect DOUBLE value: '0 0:3:0&

Re: F() and timedelta. Bug on django?

2010-10-15 Thread Alec Shaner
On Fri, Oct 15, 2010 at 1:26 PM, Marc Aymerich wrote: > > Instead of use datatime.timedelta I convert it to string with this format: >  MMDDHHMMSS and now all works fine with mysql :) Unfortunately this part > of code doesn't be database independent :( > > T

Re: F() and timedelta. Bug on django?

2010-10-15 Thread Alec Shaner
is a ticket to add F() + timedelta. http://code.djangoproject.com/ticket/10154 On Fri, Oct 15, 2010 at 2:48 PM, Marc Aymerich wrote: > > > On Fri, Oct 15, 2010 at 7:54 PM, Alec Shaner wrote: >> >> On Fri, Oct 15, 2010 at 1:26 PM, Marc Aymerich >> wrote: >> > >&

Re: F() and timedelta. Bug on django?

2010-10-15 Thread Alec Shaner
doh! Just noticed that you already referenced ticket 10154 in your original post. On Fri, Oct 15, 2010 at 3:16 PM, Alec Shaner wrote: > Interesting solution - after all that maybe it's more concise to just > use the 'extra' filter instead since you're making it speci

Re: Need help with django url errors

2010-10-17 Thread Alec Shaner
I think nother problem is your polls/urls.py is wrong. The /polls prefix of the url will be removed by the main urls.py file before being matched against the included polls/urls.py http://docs.djangoproject.com/en/1.2/topics/http/urls/#including-other-urlconfs On Sun, Oct 17, 2010 at 4:52 AM, Da

Re: SELECT * FROM `student` WHERE mark=(select max(mark) from student)

2010-10-26 Thread Alec Shaner
On Tue, Oct 26, 2010 at 12:40 PM, Phlip wrote: > > So this statement correctly fetches only the latest items: > > SELECT a.* FROM things a WHERE a.pid in (select max(b.pid) from > content_entity b group by b.name) > > Now I thought (from my allegedly copious experience with SQL) that I > could do

Complex ManyToMany-Intersection-With-Set Query?

2010-03-01 Thread Alec Muffett
relationship tables, but I can't step back far enough to see the right answer. Can anyone help me out of this rut, please? Thanks in advance! - alec -- alec.muff...@gmail.com http://www.crypticide.com/dropsafe/ -- You received this message because you are subscribed to the

Re: Including URLconf

2022-03-07 Thread Alec Greenholdt
:47:46 PM UTC-6 guitard...@gmail.com wrote: > That's definitely your problem. Include the app under INSTALLED_APPS - put > "app_name.apps.AppNameConfig" with app_name being the name of your app. > > On Monday, March 7, 2022 at 11:35:40 AM UTC-6 alec...@gmail.com wrote: > &

Re: Including URLconf

2022-03-08 Thread Alec Greenholdt
6 jmizpaha...@gmail.com wrote: > Question: Do you have a folder named polls in your project directory? And > inside that directory there's an apps.py file? > > On Tuesday, 8 March 2022 at 11:47:56 UTC+8 alec...@gmail.com wrote: > >> >> this is what i did and it chang

Template inheritance not working

2022-10-31 Thread Alec Delaney
I have been trying to get my templates to work but they have been ineffective. here is my code: {% extends "index.html" %} Document {% block content %} {% endblock %} //index.html: Document {% block content %} Hello, this is a test.

Re: Template inheritance not working

2022-11-08 Thread Alec Delaney
ers+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FX

Re: Template inheritance not working

2022-11-18 Thread Alec Delaney
id/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > > On Mon, 31 Oct 2022, 8:09 PM Alec Delaney, <96alecpatr...@gmail.com> > wrote: > >> I have been trying to get my templ

Re: Template inheritance not working

2022-11-19 Thread Alec Delaney
in the child template, you can override those blocks. >> >> El vie, 18 nov 2022 17:54, Alec Delaney <96alecpatr...@gmail.com> >> escribió: >> >>> Hello. How are you? Can I see another example of template inheritance? >>> >>> On Mon, Oct

Re: Template inheritance not working

2022-11-19 Thread Alec Delaney
Okay, Cause I am looking for another example for template inheritance On Sat, Nov 19, 2022 at 11:54 AM Chukwudi Onwusa wrote: > On WhatsApp > > On Sat, Nov 19, 2022, 17:14 Alec Delaney <96alecpatr...@gmail.com> wrote: > >> Hello, would you be available for zoom? >&

Re: Template inheritance not working

2022-11-19 Thread Alec Delaney
you dont have zoom? On Sat, Nov 19, 2022 at 12:09 PM Alec Delaney <96alecpatr...@gmail.com> wrote: > Okay, Cause I am looking for another example for template inheritance > > > On Sat, Nov 19, 2022 at 11:54 AM Chukwudi Onwusa > wrote: > >> On WhatsApp >>

Re: Is programming in Django intellectually satisfactory

2023-04-26 Thread Alec Delaney
I love it On Wed, Apr 26, 2023, 11:08 PM Mike Dewhirst wrote: > On 26/04/2023 10:18 am, Julius Chesoni wrote: > > Hi guys, I find programming in the abstract very interesting and full of > intellectual benefits similar to those acquired from Mathematics. However, > when it comes to programming

Re: CSV file

2023-06-10 Thread Alec Delaney
For server On Thu, Jun 8, 2023, 15:03 Percy Masekwameng wrote: > Hi > > I have web app survey that collect data and generate a CSV file, > I'm using railway to deploy my web app, running on 8GB RAM and each time I > generate a file, the server goes down and display "Application failed to > respo

Re: uwsgi

2023-06-18 Thread Alec Delaney
Yes On Mon, Jun 19, 2023, 2:26 AM Nakamatte Norah wrote: > good morning my name is Norah . This is first time to use Django and > develope a system l need help can you . Please help to accomplish this task > > On Sun, Jun 4, 2023, 11:14 PM Larry Martell > wrote: > >> I normally deploy my django

Re: Django Channels with Queue (Lobby) Manager

2023-07-11 Thread Alec Delaney
Nicee On Tue, Jul 11, 2023, 11:56 AM Alex R wrote: > Hello dear Community! > > I need help with Django channels and Websockets (i guess) for an > application I am building. The project is online Chess game with Django as > a backend and vanilla JavaScript (ajax, jQuey and some bootstrap). We are

Tutorial for dev version not working (Polls app): admin

2012-01-28 Thread Alec Taylor
). There are no differences in field order/display on any of these pages. I have followed the tutorial exactly, but the fields aren't being rearranged. Is there a different way of rearranging admin fields in Django 1.4? Thanks for helping me get this working, Alec Taylor -- You received this mes

Displaying template location in html

2012-01-28 Thread Alec Taylor
n? Thanks for all suggestions, Alec Taylor -- 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+unsubscr...@google

Admin CSS not loading on dev

2012-01-29 Thread Alec Taylor
lly moving the .css files. Thanks for all suggestions, Alec Taylor -- 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

Re: Displaying template location in html

2012-01-31 Thread Alec Taylor
t shows the names of all the templates that make up the > given page as well as which tags are used on the page. > > With DDT, you don't have to annotate (and un-annotate) anything. > > http://pypi.python.org/pypi/django-debug-toolbar > > On Jan 28, 10:26 pm, Alec Taylor wr

base.css 404ing on Django 1.4a1

2012-02-02 Thread Alec Taylor
base.css which isn't. How should I go about getting that base.css link to not 404, or *actually* changing that ADMIN_MEDIA_PREFIX? Thanks for all suggestions, Alec Taylor -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Checklist for appreciating a project from 1.2.7 to 1.4a1

2012-02-03 Thread Alec Taylor
'ENGINE': 'django.db.backends.mysql', 'OPTIONS': { 'read_default_file': '/path/to/my.cnf', }, } } But it keeps giving me error after error once I've done that, so instead of tackling issues one at a time, I thoug

Re: Creating a hospital erp (hospital management) in Django

2012-02-10 Thread Alec Taylor
On Fri, Feb 10, 2012 at 9:58 PM, Saadat wrote: > Hello All, > I'm in my final year of computer science engineering and for my final > year project, i'm creating a hospital erp. I'm a bit confused about > where to start from. Any sort of help will be appreciated. Thanks a > lot. > > Cheers > Saadat

Re: Creating a hospital erp (hospital management) in Django

2012-02-14 Thread Alec Taylor
Hi Saadat, I recommend reading a book on Django to get started. All the best, Alec Taylor On Wed, Feb 15, 2012 at 1:12 AM, Saadat wrote: > Thanks Sebastien, I already have the info about the various > departments of the hospital. I also created a sample database with > tables bein

Re: Creating a hospital erp (hospital management) in Django

2012-02-16 Thread Alec Taylor
ModelForm On Thu, Feb 16, 2012 at 10:18 PM, Saadat wrote: > Hi all, I created a view today and I could access the database > contents using Templates. Now I wish to create a listbox that would > have the names of doctors. When an item from the list is selected, an > sql query should be sent which

Re: Creating a hospital erp (hospital management) in Django

2012-02-18 Thread Alec Taylor
ne guide me to create a drop down menu (single-level).. i > need to put this menu in a header file that will be included in every > page. A bit of code and some explanation is required. tried searching > on the Internet, but couldn't find anything. thanks a lot > > On Feb

Re: Creating a hospital erp (hospital management) in Django

2012-02-20 Thread Alec Taylor
dropdown menu. how do i > include that file, without using staticfiles. What all needs to be > done to include that file. Thanks a lot. > > Saadat > > On Feb 18, 7:09 pm, Marc Aymerich wrote: >> On Sat, Feb 18, 2012 at 2:52 PM, Saadat wrote: >> > Alec, I've tri

Re: Django and social network

2012-02-22 Thread Alec Taylor
Pinax http://pinaxproject.com/ On Thu, Feb 23, 2012 at 1:50 AM, Lewis wrote: > I am new in Django. I know it is a good platform. > I want to know if there's any plug-ins or script that do social > networking. I research on Pinax, but it seem very difficult to set it > up. These are the feature t

Re: Django and social network

2012-02-22 Thread Alec Taylor
Lewis Satini wrote: > >> How much experience do you have on pinax. Did you implemented before? do >> you have the sample site, that I might able to look at? it is difficult to >> install, because it have some requirement before you install it. >> >> >>

Re: Django and social network

2012-02-23 Thread Alec Taylor
t helping at all. You still have a long way to go > though. If you keep persisting, you will get there. I'm also a noob > though. Feel free to let me know what you think! > > Cheers > > On Feb 22, 6:53 pm, Alec Taylor wrote: >> k >> >> If you have issue

Re: Django and social network

2012-02-23 Thread Alec Taylor
Virtualenv is recommended but not required. You can just install everything to PATH On Fri, Feb 24, 2012 at 2:29 AM, Lewis Satini wrote: > The only problem with pinax that I dont like is to setup the virtual > environment that make me so headache > > The site that you ask me to check out. It

Re: django registration

2012-03-05 Thread Alec Taylor
DRY principle is what Django is all about. Use Pinax instead of developing your own Profile system. If Pinax profiles don't show exactly what you want, extend them. Unless you're doing this as a learning exercise? On Mon, Mar 5, 2012 at 10:46 PM, Stanwin Siow wrote: > Even after doing that, >

Re: django registration

2012-03-05 Thread Alec Taylor
Not sure how large your app is, so had to say. On Tue, Mar 6, 2012 at 1:59 AM, Stanwin Siow wrote: > I don't think using another external app now would be ideal since i want to > push it to production soon. > > From what i found online, it says i'm calling that profile_callback() that > is in the

Re: django registration

2012-03-05 Thread Alec Taylor
*hard to say On Tue, Mar 6, 2012 at 2:03 AM, Alec Taylor wrote: > Not sure how large your app is, so had to say. > > On Tue, Mar 6, 2012 at 1:59 AM, Stanwin Siow wrote: >> I don't think using another external app now would be ideal since i want to >> push it to produc

[ImportError] cannot import name `feed`

2012-03-05 Thread Alec Taylor
r? Thanks for all suggestions, Alec Taylor -- 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+unsubscr...@google

Re: urllib2

2012-03-15 Thread Alec Taylor
Also, quick sort-of side-note: I recommend checking out the python-requests library as an alternative to urllib2 http://docs.python-requests.org -- 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@

Theme template designer form

2012-03-16 Thread Alec Taylor
nipulation (bold, italic, underline, alignment [also for images], highlight and text-colour) with full drag-and-drop support implemented in JavaScript. Can you recommend some projects and/or modules which will assist in building this project? Thanks for all suggestions, Alec Taylor -- You rec

Templated rich-text egg for Django?

2012-03-22 Thread Alec Taylor
me to do the aforementioned. Thanks for all recommendations, Alec Taylor -- 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 t

"Expression of Interest" django project

2012-04-03 Thread Alec Taylor
is project though, is: "Has someone done this already + have they done it well?" Thanks for all information, Alec Taylor -- 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@googlegr

Re: base.css 404ing on Django 1.4a1

2012-04-04 Thread Alec Taylor
u, Apr 5, 2012 at 11:13 AM, swiharta wrote: > I had to upgrade my version of django-staticfiles and do collectstatic. Hope > that helps. > > > On Thursday, February 2, 2012 12:26:47 PM UTC-5, Alec Taylor wrote: >> >> Trunk version cannot load Admin CSS. >> >>

Re: ecommerce like openCart in php

2012-04-11 Thread Alec Taylor
[Maybe] Mezzanine? On Thu, Apr 12, 2012 at 10:35 AM, m1chael wrote: > i think you're barking up the wrong tree miss Hisham > > On Wed, Apr 11, 2012 at 6:34 PM, Randa Hisham wrote: >> >> iam searching for an ecommerce  open source like OpenCart in php >> -  - >> Randa Hesham >> Software Developer

Re: cannot import name `feed`

2012-04-14 Thread Alec Taylor
graded to Django 1.4. > > I had the same problem when going from Django 1.3.1 to 1.4. > > Suggestion: > > pip install django==1.3.1 > > On Mar 6, 7:22 am, Alec Taylor wrote: >> I keep getting an ImportError saying "cannot import name `feed`". >> (p

Re: Using Django to develop a Database?

2012-04-29 Thread Alec Taylor
Quick offside: checkout the NLTK project for processing the information On Sun, Apr 29, 2012 at 5:05 PM, Kevin A wrote: > Hello, > > I'm hoping someone can help me with my research. > > I've been tasked with helping to construct a Database. Within this > database will be information (such as thei

How would I go about building an API converter?

2012-05-02 Thread Alec Taylor
of problem Slumber <http://slumber.in/> with TastyPie<http://tastypieapi.org/>would be best for? Or are there a different libraries you'd recommend? Thanks for all suggestions, Alec Taylor -- You received this message because you are subscribed to the Google Groups "Djan

Re: How would I go about building an API converter?

2012-05-02 Thread Alec Taylor
the data on demand (and not wait for a set/get operation from another party) I will need to create models (database) storing all information received. What would be the best way of doing this? Would TastyPie still be a good choice, or would Django-Piston [or some other] better suit this problem?

Re: Google Drive with Django?

2012-05-09 Thread Alec Taylor
This isn't helpful? https://developers.google.com/drive/examples/python On Thu, May 10, 2012 at 2:16 PM, Jordon Wing wrote: > Hey guys, > I'm trying to integrate Google Drive into my app, and I'm having some trouble > using OAuth2. I'm not sure if any of you have played with the SDK, but if >

Re: Prototype of a web based code editor for Django

2012-05-11 Thread Alec Taylor
It looks alright, be sure to add code highlighting and debugging to the online text editor (http://ace.ajax.org/). Also need restart buttons and whatnot On Sat, May 12, 2012 at 12:06 AM, Timothy Clemans wrote: > I've created a basic web based code editor for Django, see > http://198.144.178.112:

Web-framework+db with the widest scalability?

2012-05-12 Thread Alec Taylor
Disclosure: I have posted this on stackoverflowand comp.lang.python . I am building a project requiring high performance and scalability, entailing: - Role-based authentication

Re: How to setup Python 2.7 and Virtualenv on a shared host with no root access?

2012-05-12 Thread Alec Taylor
Without gcc you can't do anything yourself. Extract the binary out of the Python package for your platform Alternatively I think this has a Python interpreter: http://portablelinuxapps.org/development/wireshark Might be only 2.6 though... On Sat, May 12, 2012 at 8:29 PM, Dan Santos wrote: >

Re: How to setup Python 2.7 and Virtualenv on a shared host with no root access?

2012-05-12 Thread Alec Taylor
nfigure --prefix=/home/dan/usr-32 > --with-zlib* > > > On Saturday, May 12, 2012 12:45:09 PM UTC+2, Alec Taylor wrote: >> >> Without gcc you can't do anything yourself. >> >> Extract the binary out of the Python package for your platform >> >>

Re: Use Django to implement my GUI!

2012-05-13 Thread Alec Taylor
You could always create a responsive interface—e.g.: using twitter-bootstrap—and then distribute it onto every platform. Web (obviously): Django templates or "standard" web frontend—using e.g.: REST, XMLRPC or JSONRPC—that calls functions and serialises data in a less data heavy way (on clients' e

Re: Django News App

2012-05-14 Thread Alec Taylor
Mezzanine might be a bit of fun to work with Also note that Django was developed for a news room, so you should be fine with it as is (if you learn how to use it... maybe go through the docs) On Tue, May 15, 2012 at 12:28 AM, armagan wrote: > Hi, > I am trying to practice a news app. I've tried

Re: Use Django to implement my GUI!

2012-05-14 Thread Alec Taylor
No reason to do anything crazy like that. Forget SOCKETS, use HTTP or HTTPS. Clientside/mobileside/webside build in HTML+CSS+JS. #win On Tue, May 15, 2012 at 9:18 AM, Eugène Ngontang wrote: > Hi Jani! > > I haven't seen the last statements of your post, whre you say I'm not really > clear and

Re: Use Django to implement my GUI!

2012-05-16 Thread Alec Taylor
On Wed, May 16, 2012 at 10:49 PM, Frank Stüss wrote: > or maybe you might have a look at http://pyjs.org/ > which could help you having an event aware client app in your browser. > Served by and with django. I'm impressed (just read the exec summary from homepage) > > Am Sonntag, den 13.05.2012

Re: Use Django to implement my GUI!

2012-05-16 Thread Alec Taylor
Oh right, it's just Pyjamas. Still, annoyed I didn't think to recommend it first! On Thu, May 17, 2012 at 12:02 AM, Alec Taylor wrote: > On Wed, May 16, 2012 at 10:49 PM, Frank Stüss wrote: >> or maybe you might have a look at http://pyjs.org/ >> which could help

Re: How do you install Django on a shared hosting without root access?

2012-05-17 Thread Alec Taylor
You could wget/curl over a version of http://code.google.com/p/pts-mini-gpl/wiki/StaticPython On Thu, May 17, 2012 at 6:21 PM, Dan Santos wrote: > Sorry I celebrated too early :( not sure if my local webhost can pull it of > entirely? > But they have been very forthcoming so far. > > I've just go

Re: Use Django to implement my GUI!

2012-05-18 Thread Alec Taylor
#x27;m describing in the > second item fit. And give idea if you have, about libraiies and or framwork > that could help going fast and easy. > I thing I will use django and green unicorn. > > Thanks for your attention. > > > > 2012/5/16 Alec Taylor >> >> Oh rig

Re: Django in mobile devices

2012-05-19 Thread Alec Taylor
I use Phonegap and Django I created my mobile app using my exposed REST API with JSON calls in JavaScript On Sat, May 19, 2012 at 7:08 PM, Phang Mulianto wrote: > Hi Mario, > > thanks for your response. > > i already know about sl4a . > > what i mean is, are there any known project that use djan

Re: JQuery Django

2012-05-23 Thread Alec Taylor
This might be helpful: http://www.djangobook.com/en/beta/chapter04/ On Wed, May 23, 2012 at 4:06 PM, cocoza4 wrote: > I'm new to Django. > How can i connect Django with jQuery? > > is there any additional tool that i need to install? > > could you show me a sample code also? > > Thanks in advance

Re: Is there a custom forms component of python-web?

2012-05-24 Thread Alec Taylor
On Thu, May 24, 2012 at 8:29 PM, kevon wang wrote: > what is plonk. ? > Onomatopoeia See: http://www.urbandictionary.com/define.php?term=plonk -- 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@

Re: PyPm / Django 1.4?

2012-06-04 Thread Alec Taylor
On Mon, Jun 4, 2012 at 2:48 AM, Aaron C. de Bruyn wrote: > On Sat, Jun 2, 2012 at 9:43 AM, Bill Freeman wrote: >> Have you considered running under a virtualenv and pip installing >> exactly what you need? > > Yes--that's what I may end up doing.  Just trying to remove a few > steps from the 'ins

Re: Graphs in django

2012-06-11 Thread Alec Taylor
Put it in the template or whatnot Might be an easier job for a javascript graph library, or even processing-js On Tue, Jun 12, 2012 at 3:40 PM, Satvir Toor wrote: > here is code to display sin curve > > from pylab import * > > t = arange(0.0, 2.0, 0.01) > s = sin(2*pi*t) > plot(t, s, linewidth=1

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-01 Thread Alec Taylor
+! :] On Sun, Jul 1, 2012 at 5:52 PM, ionic drive wrote: > +1 great! > > > On Sat, 2012-06-30 at 16:10 +0100, Cal Leeming [Simplicity Media Ltd] wrote: > > Hi all, > > > > As some of you know, I did a live webcast last year (July 2011) on our LLG > project, which explained how we overcome some of

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-01 Thread Alec Taylor
Sounds good, but have you considered using Google+ Hangouts? On Mon, Jul 2, 2012 at 1:09 AM, Cal Leeming [Simplicity Media Ltd] wrote: > Wow - glad to see there's people interested in this! > > Here is the schedule, could everyone please select which days/times they are > available (enter more th

  1   2   >