Problem with session.

2006-10-27 Thread PythonistL
I changed SESSION_COOKIE_AGE value in my settings file to lower value. After an hour or so, I increased the SESSION_COOKIE_AGE value but now I can not log in neither to admin nor to my Django application. When I try to log in to admin it says: Looks like your browser isn't configured to accept co

Setting cookies expiration via SESSION_COOKIE_AGE

2006-10-27 Thread PythonistL
I changed SESSION_COOKIE_AGE to a lower value and now I can not log in to admin site. It says: Looks like your browser isn't configured to accept cookies. Please enable cookies, reload this page, and try again But the bowser does accept cookies. Eventhough I increased SESSION_COOKIE_AGE value ,

SESSION_COOKIE_AGE

2006-10-27 Thread PythonistL
I changed SESSION_COOKIE_AGE value in my settings file to lower value. After an hour or so, I increased the SESSION_COOKIE_AGE value but now I can not log in neither to admin nor to my Django application. When I try to log in to admin it says: Looks like your browser isn't configured to accept co

UTF8 character set problem

2006-10-27 Thread PythonistL
I use MySQL database with utf8 character set and utf8_czech_ci collation. It works well on Linux server( with mod_python) but when I try to export the data and import into the same Django application 9but running on XP machine with runserver 0,the utf8 is gone.Instead of a proper coding there ar

Re: How to correct this error?

2006-09-06 Thread PythonistL
Hello Corey, Thank you for your reply. I do not like PHP and I prefer comand line. So, after some testing I finally found out the command ALTER TABLE `tablename ` CHANGE `fieldname` `fieldname` VARCHAR( 10 ) CHARACTER SET utf8 COLLATE utf8_czech_ci. Regards, L. --~--~-~--~~

Re: How to correct this error?

2006-09-06 Thread PythonistL
Corey, Thank you for your reply. The exception Value (1267, "Illegal mix of collations (utf8_czech_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation '='") is from this command: gallerys.get_list(Title__exact=new_data['Title']) So, I would guess that Title field or new_data['Title']

Re: How to correct this error?

2006-09-05 Thread PythonistL
Thank you for the reply I still use Django 0.91 and I could not find django/db/backends/mysql/base.py I found only C:\Python23\Lib\site-packages\django\core\base.py and C:\Python23\Lib\site-packages\django\core\db\mysql.py Which file should I change with if self.connection.get_server_info() >=

Re: How to correct this error?

2006-09-05 Thread PythonistL
Limodou, Thank you for your reply. Is it possible to "convert" the field in MySQL instead of converting characters? Thank you for reply L --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

How to correct this error?

2006-09-05 Thread PythonistL
Hello , I use MySQL with Django and it works great untill I try to insert non-English characters.Then I get (1267, "Illegal mix of collations (utf8_czech_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation '='") How can I correct this error? Thank you for help L. --~--~-~--~-

Re: Problems with "import settings"

2006-08-26 Thread PythonistL
I had a similar problems because I did not set up proper permissions on files. If your Django runs under Linux too, you can check the permissions if it helps Regards, L --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: What relating model should I use?

2006-08-17 Thread PythonistL
Maciej, Thank you 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 [E

What relating model should I use?

2006-08-17 Thread PythonistL
In my project I have a user class that represents user's information. Now I would like to give users a possibility to set their favourite users. That means a user will set some his favourite users What model shall I use? Relating an object to itself, many-to-one or another model? Thank you reply

Re: Model & Views

2006-08-15 Thread PythonistL
Malcom, Thanks a lot 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

Model & Views

2006-08-15 Thread PythonistL
In my model definition I have a field like this: Category = meta.CharField(choices=Categorylist,maxlength=30,blank=True) where Categorylist is defined in the models definition file like this: Categorylist=( ('1','Children clothes'), ('17','Dresses'), ('18','shoes'), ... ... ('20','suits'), (. I

Re: Datetime and a template tag

2006-08-12 Thread PythonistL
Malcom, Thank you very much for your time and help. I found the reason of my problem. I had two different template tags but in both the same context variable and one overwrote the other. Best regards, L. --~--~-~--~~~---~--~~ You received this message because yo

Re: Datetime and a template tag

2006-08-11 Thread PythonistL
And here is the tag from django.core.template import Library, Node,resolve_variable from django.core import template import datetime register = Library() class TimedifNode(Node): def __init__(self, EndTime): self.EndTime = EndTime def render(self, context): Difference=re

Re: Datetime and a template tag

2006-08-11 Thread PythonistL
Malcom, Thanks a lot for help So, to sum up type ofresolve_variable(EndTime, context)-datetime.datetime.now() is 'datetime.timedelta' type of resolve_variable(EndTime, context) is 'datetime.datetime' type ofdatetime.datetime.now() is 'datetime.datetime' and value ofresolve_varia

Re: Datetime and a template tag

2006-08-11 Thread PythonistL
Hello Malcom, Thank you for your reply. The value of resolve_variable(EndTime, context) is 2006-08-10 12:56:00 but how can I find out the type in template tag? When I try something like this context['Type']=type(resolve_variable(self.EndTime, context)) im my tag and in template I use {{Type}} i

Datetime and a template tag

2006-08-11 Thread PythonistL
Im my template tag I use something like this if resolve_variable(EndTime, context)>datetime.datetime.now(): ... ... ... where in a table EndTime is 2006-08-10 12:56:00 and say datetime.datetime.now() is about datetime.datetime(2006, 8, 11, 13, 35, 14, 312000) from that said above, should be r

Re: How to get a subset of records from a subset?

2006-08-08 Thread PythonistL
Thank you David and John 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 em

How to get a subset of records from a subset?

2006-08-08 Thread PythonistL
To explain: Let's suppose we have a command HistoryList=historys.get_list(id__exact='2',order_by=['-PostedDate']) that command extracts a few records and from them I would like to use for further processing all without the first or last record. How can I do that in Django version 0.91? Thank yo

Re: Question about tags

2006-08-01 Thread PythonistL
Thanks a lot.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@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Question about tags

2006-08-01 Thread PythonistL
I have this very simple tag # from django.core.template import Library, Node from django.core import template register = Library() class FirstTestNode(Node): def __init__(self, num): self.num = num def render(self, context): context['print_results'] = self.num

How set a Date and Time format for an input field

2006-07-28 Thread PythonistL
Is it possible to set a Date and Time format for an input field in a form? For example instead of 2006-7-27 for Date I would like to use 27-7-2006 and istead of 10:21 for Time field I would like to use 10/21 Thank you for help L. --~--~-~--~~~---~--~~ You receiv

Re: DateTimeField

2006-07-28 Thread PythonistL
I found the solution. It must be {{form.EndTime_date}} {{form.EndTime_time}} --~--~-~--~~~---~--~~ 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

Re: DateTimeField

2006-07-27 Thread PythonistL
jrs, I tried to use {{form.EndTime.time}} and {{form.EndTime.date}} in a form but still NO input field is shown. Do you have any suggestion why? Thank you L --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

DateTimeField

2006-07-27 Thread PythonistL
Is it possible to use a DateTimeField from a model definition as an input field in a form? I have class MyTest(meta.Model): Subject=meta.CharField( maxlength=90) Description=meta.TextField() CurrentBid=meta.IntegerField(maxlength=6,blank=True,null=True) StartTime=meta.Date

Auction in Django

2006-07-27 Thread PythonistL
Has anyone tried to implement an auction application in Django? 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 unsubscr

Re: Where can be a problem??

2006-07-27 Thread PythonistL
Chris, Thank you 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 [E

Where can be a problem??

2006-07-26 Thread PythonistL
I have the following models class User(meta.Model): Login=meta.CharField(maxlength=50,unique=True) Email=meta.EmailField(_('e-mail address'),blank=True) class Gallery(meta.Model): Title = meta.CharField(_("title"), maxlength=80) created = meta.ForeignKey(User) access=me

Re: Is possible to have ManyToMany relation....

2006-07-25 Thread PythonistL
Aidas, Thank you for your help. I checked http://www.djangoproject.com/documentation/models/m2m_and_m2o/ but I can not find if it works with 0.91 version, that I use. Do you know that? Thank you for the reply L, --~--~-~--~~~---~--~~ You received this message bec

Is possible to have ManyToMany relation....

2006-07-25 Thread PythonistL
Is possible to have ManyToMany and OneToMany relation like this? class User(meta.Model): Login=meta.CharField(maxlength=50,unique=True) Email=meta.EmailField(_('e-mail address'),blank=True) class Gallery(meta.Model): Title = meta.CharField(_("title"), maxlength=80) created =

Re: How to read parameters

2006-07-24 Thread PythonistL
>From outside but also can be sent from inside Django application --~--~-~--~~~---~--~~ 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 unsubscri

How to read parameters

2006-07-24 Thread PythonistL
Let's suppose a user click on a URL something like this http://www.server.com/ListTradeLeads/?page=6&userId=admin . So some parameters( page and userId) are sent to the server but how can I find out ,in Django,values of these parameters , that is the page is 6 and userId is admin? I would like

Re: Best idea?

2006-07-24 Thread PythonistL
Thanks a lot 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 [EMAIL

Best idea?

2006-07-22 Thread PythonistL
I am creating an application in Django where users can insert photos and I would like each owner of the photo(s) to be able to grant/revoke access to this photo(s) to other visitors. What could be the best idea how to do that? Thank you for replies L. --~--~-~--~~~---

Re: How to ?

2006-07-18 Thread PythonistL
No, it does NOT work for me. Finally I found a reason. I use old Django version and I must use get_gallery() and not gallery.Similarly get_created() and not created, so wanted_user = photos.get_object(id__exact='3').get_gallery().get_created() --~--~-~--~~~---~--~

Re: How to ?

2006-07-15 Thread PythonistL
Not sure I fully understand. Can you please explain a little more? Do you mean that p.gallery.created should work( where p is my photo object)? Thank you for help L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: How to ?

2006-07-15 Thread PythonistL
NikI, thank you for your help. I tried >>>p=photos.get_object(id__exact='18') then >>> p.gallery_id.created_id Traceback (most recent call last): File "", line 1, in ? AttributeError: 'long' object has no attribute 'created_id' Where is a problem? When I tried >>> p.gallery_id I received 27

How to ?

2006-07-15 Thread PythonistL
I have the following model # class User(meta.Model): Login=meta.CharField(maxlength=50,unique=True) Password=meta.CharField(maxlength=30,blank=True) class Gallery(meta.Model): Title = meta.CharField( maxlength=80) Description = meta.TextField(_("Description"), bla

Re: Django & Apache 1.x

2006-07-05 Thread PythonistL
Gabor, what trafic do you have at your website and what server configuration do you use? I am asking that because you use FastCGI and I had big problems with FastCGI when there was highload.So I decided to move to mod_python and no problem since Regards, L --~--~-~--~~~-

Is it possible to do this from templates?

2006-06-27 Thread PythonistL
Hi, Is it possible to test ,if an image exists, from a template? To explain: Let's suppose in my template I use and {{ImageName}} is a picture that can exists but it needn't. But if it does not exist, then I will receive an ugly picture in my view (HTML)result. So, I test that in my view but it

Re: Cutting output of flup's FastCGI server

2006-06-19 Thread PythonistL
Hello Ivan, It is intereresting. But why do you use/prefer FastCGI to mod_python ? I am asking because I used for my Django apps FastCGI with Dreamhost but a lot of problems - Apache server used to hang when there were a lot of visitors. Now I switched to mod_python and it works great. regards, L

Re: Mod_python and Django - AGAIN

2006-06-13 Thread PythonistL
Yes, it uses the same source that runs on Dreamhost - both Django and my project. I had to make only some different settings in settings.py file because I installed the project in a different directory and also installed PIL and MySQLdb by myself. So, how to find the cause of the problem? L.

Re: Mod_python and Django - AGAIN

2006-06-13 Thread PythonistL
No, it can not be that problem. I use the same models and source on Dreanhost and it works. But now I want to use my Linux box with mod_python and the code does not work. So, any other idea how to solve the problem? Thank you. L --~--~-~--~~~---~--~~ You receiv

Mod_python and Django - AGAIN

2006-06-12 Thread PythonistL
I installed Django on Apache but still not successfully. When I try to open a view/page that normaly works (e.g on Dreamhost where I use FastCGI), on Linux box with Mod_python and Django I will get Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most r

Re: Mod_python and Django - PROBLEM

2006-06-12 Thread PythonistL
Malcom, Thank you for the help. You were right. Permissions were the problem 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.co

Re: Mod_python and Django - PROBLEM

2006-06-10 Thread PythonistL
Malcom. Thank you for help. I followed http://www.modpython.org/live/current/doc-html/inst-trouble.html so i added to my httpd.conf SetHandler mod_python PythonHandler mod_python.testhandler but when I point my browser to the /mpinfo URL I will get Mod_python err

Re: Mod_python and Django - PROBLEM

2006-06-10 Thread PythonistL
Simon, On Apache I use Apache/2.0.55 (Trustix Secure Linux/Linux) mod_python/3.2.8 Python/2.3.5 PHP/5.0.5 mod_perl/2.0.0 Perl/v5.8.7 Do you think there can be a problem? Thank you for help regards, L --~--~-~--~~~---~--~~ You received this message because you are

Re: Mod_python and Django - PROBLEM

2006-06-10 Thread PythonistL
My settings.py looks like this: # Django settings for mimiproject project. DEBUG =True TEMPLATE_DEBUG = DEBUG SESSION_COOKIE_AGE=259200 ADMINS = ( # ('Your Name', '[EMAIL PROTECTED]'), ) MANAGERS = ADMINS SERVER_EMAIL='[EMAIL PROTECTED]' DEFAULT_FROM_EMAIL='[EMAIL PROTECTED]' EMAIL_HOST='loc

Re: Mod_python and Django - PROBLEM

2006-06-10 Thread PythonistL
Hello Michael, thank you for help.It solved that problem. But now it says File "/home/django_src/django/core/db/__init__.py", line 23, in ? raise ImproperlyConfigured, "Could not load database backend: %s. Is your DATABASE_ENGINE setting (currently, %r) spelled correctly? Available options a

Mod_python and Django - PROBLEM

2006-06-09 Thread PythonistL
I am going to setup Django with mod_python and Apache on Linux but when I try to use a script from a browser I will get the error: ## Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/mod_p

How to do this with Django?

2006-05-31 Thread PythonistL
I have two independent sites written in Django. Each requires login. And users must login in separately. I would like to make things easy for users and if a user signs in one site he will be also signed automatically into the other. Is it possible? L. --~--~-~--~~~

Databases from different projects

2006-05-31 Thread PythonistL
Let's suppose I have project1 that has TableProject1 and project2 that has TableProject2 Is it possible to use in project2 data from TableProject1 ? Thank you for reply L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: Is Django suitable for a big numbers of visitors??

2006-05-29 Thread PythonistL
Thank you for your reply Now I have in my settings.py file: DEBUG = False MIDDLEWARE_CLASSES = ( "django.middleware.common.CommonMiddleware", "django.middleware.sessions.SessionMiddleware", "django.middleware.doc.XViewMiddleware", "django.middleware.cache.CacheMiddleware", ) CA

Is Django suitable for a big numbers of visitors??

2006-05-29 Thread PythonistL
I use Django with FastCGI ( via WSGI) and have problems with downtime when more visitors come to my website. Did anyone test Django apps for high numbers of visitors(hits)? If so, what configurations would you reccomend? Thank you for reply L. --~--~-~--~~~---~--~--

What server configuration to use

2006-05-26 Thread PythonistL
I am going to setup a server to use it with Django. I am going to use: Trustix Linux (http://www.trustix.org) mod_Python with Apache Is 1GB memory enough? Regards, L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: NULL vs.None

2006-05-20 Thread PythonistL
ith HTTP; Sat, 20 May 2006 16:28:02 + (UTC) From: "PythonistL" <[EMAIL PROTECTED]> To: "Django users" Subject: Re: NULL vs.None Date: Sat, 20 May 2006 09:28:02 -0700 Message-ID: <[EMAIL PROTECTED]> In-Reply-To: <[EMAIL PROTECTED]> References: <[E

NULL vs.None

2006-05-20 Thread PythonistL
Question 1 I noticed in MySQL that if a table field has NULL value, then I can test in Python with that filed with None. In otherwords NULL in MySQL is the same as None. in Python Is it so or am I wrong? Question 2. I also would like to test NULL values in my templates. So I would like to us

Re: Django and WSGI

2006-05-19 Thread PythonistL
I received a reply from Dreamhost: " However, I have been on the browser and your website is working now. So it doesn't sound like there is a configuration problem on the server, but I suspect that there may be an intermittent high load issue. Normally the system admins correct high load i

Django and WSGI

2006-05-19 Thread PythonistL
Does anyone use Django with WSGI ? I have a problem with my script if there is a heavy load.The server stop responding. This week it happens 3 times. Is it a problem of Django running on WSGI? Or is it a problem my webhosting provider ( Dreamhost.com)? Any suggestions? Thank you L. --~--~--

Re: Announcing Tabblo, a Django app

2006-05-18 Thread PythonistL
I wanted to try it out but I can not sing up. --~--~-~--~~~---~--~~ 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,

Dreamhost - does anyone know a better webhosting?

2006-05-16 Thread PythonistL
I have been using Dreanhost for share webhosting service for a few months already but I found out it is very unreliable. If there is a higher traffic my site goes down. From the beginnig I was happy - no problem - but now when more users come to my site - problems repeat all over and over again.

Re: How to prevent a page from being cached?

2006-05-16 Thread PythonistL
Malcom, thank you for the 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 unsubscribe from this group, send email

Re: How to prevent a page from being cached?

2006-05-13 Thread PythonistL
Hello Luke, Thank you for your reply.Unfortunatelly I use Python 2.3 so, I can not use decorators as you described. Is it possible to change HTTP headers ,in Django,in this way below? response= HttpResponseRedirect("/ChangeProductList/") response['Pragma'] = "no cache" response['Cache-Control']

Re: How to prevent a page from being cached?

2006-05-11 Thread PythonistL
Response looks like this 00:00.437 - server connected] HTTP/1.1 200 OK Date: Thu, 11 May 2006 09:07:37 GMT Server: Apache/1.3.33 (Unix) mod_throttle/3.1.2 DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.4.2 mod_ssl/2.8.22 OpenSSL/0.9.7e Vary: Cookie Content-Length: 5406 Connection: close Cont

How to prevent a page from being cached?

2006-05-11 Thread PythonistL
Is there a way how to prevent a page from being cached? I use response= HttpResponseRedirect("/ChangeProductList/") response['Pragma'] = "no cache" response['Cache-Control'] = "no-cache,must-revalidate" response['Pragma'] = "no cache" response['Expires'] = "Wed, 11 Jan 2006 05:00:00 GMT" return re

Re: Which is better: dreamhost or bluehost?

2006-05-11 Thread PythonistL
I also use Dreamhost, but recently not running well for me. I noticed that when more users log in, the site is down( timeouts) and I must ask Dreamhost support to correct the problem. Yesterday, it happened again, and I complained that the problem repeats all over and over again so they told me

Re: Question

2006-05-10 Thread PythonistL
Jorge, Thanks a lot for help.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@googlegroups.com To unsubscribe from this group, send

Question

2006-05-08 Thread PythonistL
I have a shop application where a user register the NameOfShop and the new shop is created for him. If he wants to see his shop he must use URL something like http://www.domain.com/shop/NameOfShop Is there a possibility to make the URL shorter that is - to remove shop name-. for example to

Re: Is it possible to use render_to_response in a child function

2006-05-08 Thread PythonistL
Joey , Thank you for the explanation Best 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@googlegroups.com To unsubscribe from this

Is it possible to use render_to_response in a child function

2006-05-08 Thread PythonistL
I have # def Parent(request): print "I am in parent" Child(request) return render_to_response('ParentResponse',) def Child(request): print "I am in child" return render_to_response('ChildResponse',) # >From P

Post-after-redirect question

2006-05-04 Thread PythonistL
Is there any difference if I use in my script a post-after-redirect that is HttpResponseRedirect (something like return HttpResponseRedirect("/ChangeProductList/") ) or if a user use REFRESH from his browser? I use my webhosting on Dreamhost and I found out that if I do a post-after-redirect

Non English characters in URL

2006-05-01 Thread PythonistL
Is it possible to use non English characters in URL?To explain, in my urls.py I use (r'^shop/(?P.*?)/(?P.*?)/','shopproject.apps.shop.views.shop.IndexByCategory'), where category_name can consist non English characters.In my view i use def IndexByCategory(request,shop_name,category_name): ...

Re: errors dictionary

2006-05-01 Thread PythonistL
Ivan,Thank you for your reply. Best 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@googlegroups.com To unsubscribe from this group

errors dictionary

2006-04-28 Thread PythonistL
Is it possible to use errors dictionary with non-English character? I use errors like this: if new_data['CategoryF']==None errors={1:'non-English characters} return render_to_response('shop/Errors', {'errors': errors}) Eventhough I use in my template Errors.html the non English

Re: Custom Manipulator

2006-04-19 Thread PythonistL
Ian, Thanks for your reply. I implemented custom manipulator for ADDing but do not know how to do that for CHANGING. class ProductManipulator(formfields.Manipulator):# ADD manipulator def __init__(self): .

Custom Manipulator

2006-04-18 Thread PythonistL
Is there an example of a CHANGE Custom Manipulator? At http://www.djangoproject.com/documentation/forms/ I found only ADD Custom Manipulator. Thank you. L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django use

Re: web hosting

2006-04-12 Thread PythonistL
I use Dreamhost and it works OK. --~--~-~--~~~---~--~~ 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: ANN:Woodlog Testing

2006-04-05 Thread PythonistL
Limodou, Thanks a lot for the explanation and help. Best 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@googlegroups.com To unsubs

Re: ANN:Woodlog Testing

2006-04-05 Thread PythonistL
Limodou, Thanks a lot for your help. Now I understand much better. Best 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@googlegroup

Re: ANN:Woodlog Testing

2006-04-05 Thread PythonistL
Limodou, Thanks for replies. I am also working on a application that more users should be used by. So, I would like to learn a little more how to create url dynamicly( on fly). Can you please let me know where in you file(s) you make that. Thanks a lot L. --~--~-~--~~~--

Re: ANN:Woodlog Testing

2006-04-05 Thread PythonistL
Limodou,thank you for your reply. I am sorry but I do not fully understand your answer You say that every user has his own blog but also that there is not user directory. But when I want to use my blog as a user, I have a different URL, e.i.a directory is also different, from another user. I wo

Re: ANN:Woodlog Testing

2006-04-05 Thread PythonistL
Hello Limodou, It looks very nice. Can you please answer my question? What is the file rpc.py for? Does every user have his own blog in his directory? And what files must every user have in his directory and which can be common(the same )? Thank you for your reply L. --~--~-~--~~

Manipulator fields

2006-03-28 Thread PythonistL
In my program I use something like this: # ... for Field in manipulator.fields: #do something print Field . .. # print Field there can print the correct value that is e.g. but because Field is an instance I can not use that

Re: Form field

2006-03-25 Thread PythonistL
Limodou, Thank you for your reply. But how can I extend the code, or how to change manipulators? 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

Form field

2006-03-25 Thread PythonistL
Is it possible to have a field in a form that a user can not edit? Thank you for reply 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-u

Re: How to use form fields

2006-03-24 Thread PythonistL
Limodou, Thanks a lot.That is what I need. 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@googlegroups.com To unsubscribe from thi

How to use form fields

2006-03-24 Thread PythonistL
I use a custom manipulator that creates field_names.These filed names can be a different. To create fields I use formfields.IntegerField(field_name="Pieces_"+`v`, maxlength=4) where Dynamic_value changes. Normaly, for static field, I can use in a form {{form.FieldName}}. If fileds are generated

Re: How to join two variables in a template

2006-03-22 Thread PythonistL
Limodou, Thank you for your reply.But I meant something different. I need to have several input fields in s form - for example PIECES - and I need each input field to be different in my template So I thought that I can join "PIECES" and "1" "PIECES" and "2" ... ... "PIECES" and "N" But {{PIECE

How to join two variables in a template

2006-03-22 Thread PythonistL
Is there a way to join two( or more) variables in templates? 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.c

Re: Slice - built-in filter

2006-03-21 Thread PythonistL
Ivan,Thanks a lot It really 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@googlegroups.com To unsubscribe from this group, send ema

Slice - built-in filter

2006-03-21 Thread PythonistL
I use SLICE filter. I t works ok, but when I try e.g. {{ some_list|slice:":2" }} where some_list is some_list=[1,2,3,4] I will get [1, 2]. Is it possible, via templates, to remove brackets? Thanks L. --~--~-~--~~~---~--~~ You received this message because you

Re: LIKE operator

2006-03-19 Thread PythonistL
Ivan, Thank you for your reply and 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, sen

LIKE operator

2006-03-18 Thread PythonistL
Is LIKE operator supported in Django? I would like to perform a pattern match. For example something like this: SELECT name FROM metal WHERE name LIKE '%er%', where name is a field of table . That above will return results that contain 'er' anywhere in a field name. Regards, B. --~--~--

Re: information about django on dreamhost

2006-03-17 Thread PythonistL
I use Dreamhost with Django for some time already and I am happy with that.Works great! --~--~-~--~~~---~--~~ 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@googleg

Re: How to populate a form with multiple values

2006-03-17 Thread PythonistL
Limodou, I have the custom manipulator, see the beginning of this thread. But I do not know how to populate data from that manipulator to the form --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: How to populate a form with multiple values

2006-03-17 Thread PythonistL
Kenneth,Thank you for your idea.It can be really better to use sessions. But now the biggest problem for me is that I can not display multiple values from the shopping cart in input fields of my form. Any idea? Thanks --~--~-~--~~~---~--~~ You received this messag

Re: How to populate a form with multiple values

2006-03-17 Thread PythonistL
Limodou, Thanks for your reply and your comments. But still I do not know how to transfer data from the shopping cart into a form Can you advise? Thanks L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django use

Re: How to populate a form with multiple values

2006-03-17 Thread PythonistL
Kenneth, Thank you for your reply. I have a table that stores a shopping cart. But do you think that storing the shopping cart in a dictionary in the session would be a better solution? Thank you for the reply --~--~-~--~~~---~--~~ You received this message becau

  1   2   >