Django with a tiny linux distribution

2010-03-25 Thread Pythoni
Has anybody tried using Django with a tiny linux distribution? Thanks for replies Mm. -- 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

Is Django thread safe?

2009-09-28 Thread Pythoni
Is Django thread safe?If so, from which version? Thanks for reply L. --~--~-~--~~~---~--~~ 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 unsubsc

Mysql commands and Django

2009-09-07 Thread Pythoni
I would like to use the output of mysql command in my templates, e.g. Mysql command show databases will show all databases e.g. DB1, and DB2 and I would like to add these to - DB1 DB2 Is that possible? Thanks for help L. --~--~-~--~~~---~--~--

Mod_wsgi and mod_python

2009-04-01 Thread Pythoni
I am using Django with mod_python and it works but during peak times ( heavy loads about 50 Apache jobs), the system is almost hanged Is it worth changing from mod_python into mod_wsgi? What would I get or lose? Is it possible to use both mod_python and mod_wsgi on one computer? Thank you for rep

Google Friend Connect and Django

2008-12-06 Thread Pythoni
Has anyone used Google Friend Connect successfully with Django? (I do not know where I should upload the two required files).Can anyone help,please? Thanks L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django us

How to translate into Django

2008-10-16 Thread Pythoni
In PHP can be used http://url_address";; ?> How must I translate that to be able to use it in Django? Thanks for help. Cheers, Jo. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

DJANGO_SETTINGS_MODULE

2008-04-04 Thread Pythoni
My project directory looks like this C:\Django\projects\shop\apps\shop\views I have this simple program import sys,os sys.path += ['C:\\Python23\\Lib\\site-packages\\django\\app'] sys.path += ['C:\\Django\\projects\\','C:\\Django\\projects\\shop\\'] os.environ['DJANGO_SETTINGS_MODULE'] =

Re: How to define urls

2007-10-16 Thread Pythoni
On Oct 16, 8:13 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 10/16/07, Pythoni <[EMAIL PROTECTED]> wrote: > ... > > > so I have in urls.py > > (r'^Myscript/(?P\w+)/','miproject.apps.mi.views.mi.Myscript'), > >

How to define urls

2007-10-15 Thread Pythoni
Hi, I need a URL like this My script is called like this http://myserver.com/Myscript/Name/ where name is a parameter so I have in urls.py (r'^Myscript/(?P\w+)/','miproject.apps.mi.views.mi.Myscript'), it works only ifNameis one word, e.g. John. If it is e.g. John Smith it does not wo

Re: How to rewrite SQL for Django

2007-08-13 Thread Pythoni
On Aug 13, 2:45 am, Collin Grady <[EMAIL PROTECTED]> wrote: > You cannot. Django does not do aggregates like GROUP BY yet. You will > have to use manual sql to get those values. Thanks for your reply. But how to use sql together with Django so that I can use advantages of paginator? L. --~--

How to rewrite SQL for Django

2007-08-11 Thread Pythoni
I need to use this SQL command in my Django application select subject, count(subject) as 'count' from mimi_blogs group by subject order by count desc; How must I rewrite that command so that Django paginator can understand it properly? Thank you for help L. --~--~-~--~~

How to setup Django on Apache with correct rights and owners

2007-06-20 Thread Pythoni
I use Django with Apache and it runs great. I have root access to the server. But still I am not sure what are the best raccess rights for : settings.py for files in models and views directories and for directories themselves. What owner shall I use? root or httpd or different? Thank you for help

Re: FLV Video Uploader in Django

2007-05-15 Thread Pythoni
Can you please let us know more about the traffic? I understand that you can upload one file of 100Mb + at one time but do you have experience with heavy uploads? L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Is that possible to use DISTINCT with get_list?

2007-05-07 Thread Pythoni
I need to find distinct records form my `discussions` table. I can use discussions.get_values(fields=['Subject'],order_by=['Pub_date'],distinct=True) and it works. But I would like to find distinct records with get_list not with get_values, because i need to sent the results to paginator, Is t

Re: How to change the size of input field from Django

2007-05-04 Thread Pythoni
On May 5, 4:27 am, Alessandro Ronchi <[EMAIL PROTECTED]> wrote: > Alle venerdì 04 maggio 2007, Pythoni ha scritto: > > > But I would need at least rows="20" cols="70". > > Is there a way how to change the size from Django directly and not by

How to change the size of input field from Django

2007-05-03 Thread Pythoni
One of the field in my model is defined Description=meta.TextField() When I use {{form.Description}} in my input form( template) the field is not as large as I would need. When I check HTML I can see But I would need at least rows="20" cols="70". Is there a way how to change the size from Dja

Re: How to do this in Django?

2007-05-01 Thread Pythoni
Michael, Thank you for your reply. I agree the solution with DIVs instead of IFRAMEs would be nice. But it needs AJAX. and you say a little AJAX. Can you give me an idea how to use that little AJAX together with my described problem? Thank you L. You say > The best way (in my opinion) to do this

Re: How to do this in Django?

2007-05-01 Thread Pythoni
Julio and James, Thank you both for your help. I know that frames could be useful to help solve my problem but... Let's suppose this: where you can see two frames( iframes).One Authors ( list of authors)and the other Descriptions( their replies). As you can see each frame must consists

Re: How to do this in Django?

2007-04-30 Thread Pythoni
uldn't two frames > with anchors work? You don't "need" Django for this, it's just HTML. > > On 4/30/07, Pythoni <[EMAIL PROTECTED]> wrote: > > > > > Is it possible to use in Django views two "windows" related together? > > I mean s

How to do this in Django?

2007-04-30 Thread Pythoni
Is it possible to use in Django views two "windows" related together? I mean something similar to Google groups . If you choose Tree view, in Google groups, you have one "window'" of authors and the other with their replies. Now that you click on any author his reply will move to the top of the

Development server

2007-04-26 Thread Pythoni
Is the development server from 0.95 or 0.96 compatible with 0.91 version? I use Django 0.91 but have problem with the development server. .Many times I receive the error # Unhandled exception in thread started by Error in sys.excepthook: Original exception was: Validating models.

Re: Screen resolution

2007-04-07 Thread Pythoni
On Apr 7, 1:55 pm, Baurzhan Ismagulov <[EMAIL PROTECTED]> wrote: > Hello Pythoni, > > On Sat, Apr 07, 2007 at 03:56:21AM -0700, Pythoni wrote: > > This script finds the resolution but I need to pass the screen > > resolution values to my Django application for further

Screen resolution

2007-04-07 Thread Pythoni
For my Django application I need to detect user's screen resolution. So, I have the script in Javascript function resolution() { var winX = screen.width; var winY = screen.height; } I call the script like this This script finds the resolution but I need to pass the screen resolution values to

Re: How to add a calendar to my app

2007-03-23 Thread Pythoni
u have any questions, do not hesitate to contact! > > Ciao, > - Matthias > > On Mar 23, 8:49 pm, "Pythoni" <[EMAIL PROTECTED]> wrote: > > > > > Please post it. > > Thank you > > L. > > > On Mar 23, 7:01 pm, "Masida" <[EMAIL

Re: How to add a calendar to my app

2007-03-23 Thread Pythoni
Please post it. Thank you L. On Mar 23, 7:01 pm, "Masida" <[EMAIL PROTECTED]> wrote: > I've written a very simple calendar template_tag, if you're interested > I can post it here or put it on djangosnippets.org. > > Ciao, > - Matthias > > >

How to add a calendar to my app

2007-03-23 Thread Pythoni
How much difficult is to add calendar ,like that in the admin , to my templates? Or is there an easier way to add any different calendar to my templates? Thank you for help L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: Help about saving two linked instances...

2007-02-17 Thread Pythoni
I think you need some relations. You can have a look at http://www.djangoproject.com/documentation/models/ and choose the best model for your problem L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django us

HTTP_REFERER

2007-02-17 Thread Pythoni
I would like to use HTTP_REFERER in my Django project to find out from where users came to my website. So, my first page is INDEX.HTML that uses def Index(request) procedure. In this def Index(request) I use request.META['REMOTE_ADDR'] but I found out that Referer does not work. HTTP_REFERER is e

Core_sessions table

2007-01-26 Thread Pythoni
Can anyone explain what is core_sessions table for? I noticed that it is the largest table (and growing and growing) from all may tables in my project. Is it possible to stop it becoming larger and larger? --~--~-~--~~~---~--~~ You received this message because

Re: video uploads (like you tube)

2007-01-25 Thread Pythoni
Is http://www.kindfish.com/ really Dajngo powered, including uploading? Lad On Jan 25, 3:54 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 1/24/07, carlwenrich <[EMAIL PROTECTED]> wrote: > > > Is there a quick and easy way for users to upload videos the way they > > do it on you tube? Is the

Uploading large files via http FORM

2007-01-12 Thread Pythoni
Hi, does anyone have an experience with uploading large files in Django application? I use mod_python with Django and when I try to upload a file about 100 MB I received an error. Thank you for any suggestion. L. --~--~-~--~~~---~--~~ You received this message be

Re: What is the best way of uploading large files from Django?

2007-01-12 Thread Pythoni
Istvan, Thank you for your reply. I know about tramline but I was not able to use tramline together with Django. Do you use tramline by yourself? La. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

What is the best way of uploading large files from Django?

2007-01-12 Thread Pythoni
I use Django with mod_python and it works great. But when I try to upload large file ( 90 MB)via HTTP FORM I received an error. Can anyone suggest a way how to upload such file?I was thinking about FTP protocol but it is difficult because a user who uploads the file would have to use FTP client to

Re: Help with a strange error: ImportError No module named pwd

2006-12-29 Thread Pythoni
Check permissions on your Linux box L. --~--~-~--~~~---~--~~ 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 e

Re: Timeouts during uploading

2006-12-08 Thread Pythoni
Jeremy, Thank you for the reply. Yes, FTP could be a solution. Are there any more solutions? Lad. --~--~-~--~~~---~--~~ 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

Timeouts during uploading

2006-12-08 Thread Pythoni
I would like to allow users to upload large files about 10MB or larger. Is there a way how to eliminate timeouts both server and client timeouts? Thank you Lad --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: Video stream uploading/playing

2006-12-04 Thread Pythoni
Eric, Thanks a lot.Very good tutorial for me! L. --~--~-~--~~~---~--~~ 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 gro

Video stream or movie

2006-12-02 Thread Pythoni
Hi, Has anyone thought /successfully implemented video stream (or movie) uploading/playing feature on a website powered by Django? L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Video stream uploading/playing

2006-12-02 Thread Pythoni
Hi, Has anyone thought /successfully implemented video stream (or movie) uploading/playing feature on a website powered by Django? L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

When Django downward compatibility version is available?

2006-11-30 Thread Pythoni
I have already 3 projects in 0.91 version. Now I am going to start another project that will be similar to one of those 3 already running projects. Shall I use - 0.95 version, - the latest svn version, -wait for 1.0 version( that I expect it to be downward compatible) - use 0.91 version because

Re: How to find out the id of the last record in a table?

2006-11-15 Thread Pythoni
Thank you very much for help L. --~--~-~--~~~---~--~~ 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

Re: How to find out the id of the last record in a table?

2006-11-15 Thread Pythoni
In fact, I mean the last record number --~--~-~--~~~---~--~~ 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 e

How to find out the id of the last record in a table?

2006-11-14 Thread Pythoni
Is there a way how to find out the id of the last record in a table? I used get_count() but it doesn't work properly, if some records are deleted. Thank you for help. L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: Paginator question

2006-11-10 Thread Pythoni
Thank you for your reply. I downloaded the 0.95 version and It works under 0.91 Regards, L. --~--~-~--~~~---~--~~ 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@g

Re: Paginator question

2006-11-09 Thread Pythoni
Thank you for your reply Where can I download the patch? I still use 0.91 Django version --~--~-~--~~~---~--~~ 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@googl

Re: Problem with ordering (ORDER_BY)

2006-11-09 Thread Pythoni
Jacob, Thank you for your help. I used the comma and now it works . La. --~--~-~--~~~---~--~~ 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 u

Paginator question

2006-11-09 Thread Pythoni
As far as I know paginator works with a list that is created from an object with get_count() and get_list() methods. If I already have a list, is it possible to use paginator with that list somehow too? Thank you for replies La. --~--~-~--~~~---~--~~ You re

Paginator question

2006-11-09 Thread Pythoni
As far as I know paginator works with a list that is created from an object with get_count() and get_list() methods. If I already have a list, is it possible to use paginator with that list somehow too? Thank you for replies La. --~--~-~--~~~---~--~~ You re

Re: Order_by problems

2006-11-08 Thread Pythoni
Don, Thank you very much for your help. You are right. I added a comma and now it works! L. --~--~-~--~~~---~--~~ 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@go

Order_by problem

2006-11-08 Thread Pythoni
I have this very simple model for a table ... class Word(meta.Model): Word=meta.CharField(maxlength=50) def __repr__(self): return self.Word class META: admin = meta.Admin() . Now when I try: words.get_list(order_by=('Word')) I will get the error:

Problem with ordering (ORDER_BY)

2006-11-08 Thread Pythoni
I have this very simple model for a table ... class Word(meta.Model): Word=meta.CharField(maxlength=50) def __repr__(self): return self.Word class META: admin = meta.Admin() . Now when I try: words.get_list(order_by=('Word')) I will get the error:

Re: Order_by problems

2006-11-08 Thread Pythoni
Mike, Yes, there is `Word` in words.get_list(order_by=('Word')) because Word is a name of the field. Do you have any other idea where a problem could be? Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Order_by problems

2006-11-08 Thread Pythoni
I have this very simple model for a table ... class Word(meta.Model): Word=meta.CharField(maxlength=50) def __repr__(self): return self.Word class META: admin = meta.Admin() . Now when I try: words.get_list(order_by=('Word')) I will get the error

Re: UTF8 character set problem

2006-11-01 Thread Pythoni
Thank you for your reply. Finally I solved the problem. It was caused by a different versions of Django running on Linux and XP. The procedure how I found that was like this: I checked the imported data in text editor, that had utf8 support. Utf8 was OK. Then on XP I inserted some data, via Dj

Runserver reloads all over and over again

2006-10-31 Thread Pythoni
Is it nescessary to use runserver with the same Django version or is it possible to mix them? I use Django 0.91 and I somehow mixed Django with a runserver ( probably version 0.95 and 0.90 or 0.91) and now runserver reloads without any good reason. Thank you for help L. --~--~-~--~~

Re: UTF8 character set problem

2006-10-29 Thread Pythoni
Here are MySQL settings, both on Linux and XP windows LINUX MySQL settings +--++ | Variable_name| Value | +--++ | character_set_client | latin1

Re: UTF8 character set problem

2006-10-27 Thread Pythoni
I used mysqldump --default-character-set=utf8 mimi >/home/Result.sql to export data to /home/Result.sql file on Linux machine. Then I downloaded the file to my XP and here I used mysql --default-character-set=utf8 mimi < Result.sql to import data. Is it correct? Regards, L. --~--~-~-

Re: How to make tables generated by Django be utf8 encoded by default?

2006-10-27 Thread Pythoni
Andy Dustman wrote: > On 10/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I want to store Chinese characters in my MySQL 4.1.11 through Django > > but unluckily, like most novices, I get totally mess characters when > > displaying them on utf-8 encoded templates. > > After s