SelectDateWidget

2008-01-03 Thread AniNair
Hi all... I would like to know how to get SelectDateWidget to correctly display a value retrieved from a database. I saw a similar post but no answers have been posted... http://groups.google.com.et/group/django-users/browse_thread/thread/5bf7348f9b13a880/1ccbde2bd4cc272a?#1ccbde2bd4cc272a Thank

Re: how to write regex to parse "http://127.0.0.1:8000/user/login/?next=/user/1/add/"

2007-10-26 Thread AniNair
Are you trying to submit a html form? --~--~-~--~~~---~--~~ 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

Re: translation and flatpages

2007-10-26 Thread AniNair
Hi... Thanks for the help.Btw, Isn't 17 hours n 24 min 'a bit more than' 16 hours? If not, then how much is 'bit more'? Please ignore if you don't know. Do a google search?lol.Thanks all the same. --~--~-~--~~~---~--~~ You received this message

Re: translation and flatpages

2007-10-26 Thread AniNair
Cannot internationalize them? --~--~-~--~~~---~--~~ 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

translation and flatpages

2007-10-25 Thread AniNair
Hi.. Is it possible to translate flatpages? If yes, how? Please suggest any docs available (couldn't find any). Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: FLATPAGES

2007-10-25 Thread AniNair
Thanks Marcin, The problem is solved. The issue was a result of site_id not matching. (the one in settings.py and the site_id I was trying to use. (Thanks to the help from satheesh. :-) )) --~--~-~--~~~---~--~~ You received this message because you are

FLATPAGES

2007-10-24 Thread AniNair
Hi . I am using django .97 , pre with python 2.5.1. I am trying to use flat pages, this is my middleware_cllasses in settings MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',

Templates

2007-10-18 Thread AniNair
Hi... I am trying inernationalization. {% for lang in LANGUAGES %} {{ lang.1 }} {% endfor %} This lists all the languages in the settings.py . Can someone tell me how to get the current language being used in the template? I managed to pass it from my view. but is there some way to get this

Re: Templates

2007-10-16 Thread AniNair
I managed to do it by return render_to_response ('language.html',{'LANGUAGES':LANGUAGES}) and it is working but I just wonder if this is the right way to do this please help. Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed

Templates

2007-10-16 Thread AniNair
Hi... I am a beginner using django 0.97 pre with python 2.5.1. I am trying choose language from the settings.py which has LANGUAGES tuple. I have {% for lang in LANGUAGES %} {{ lang.1 }} {% endfor %} Can someone tell me the proper way to do this or suggest a tutorial? should I return

Re: can't install...

2007-10-15 Thread AniNair
Please check the command prompt window in which you have django running. It will tell you what errors you have made. Copy the messages if you can't make sense of them and post it here... --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: internationalization xgettext error

2007-10-15 Thread AniNair
Thank you a lot... I thought that the gettext should be a py file. python does have such a file in lib... I downloaded the gettext as u suggested and YE Its working now. Thank you a lot... --~--~-~--~~~---~--~~ You received this message because you are

internationalization xgettext error

2007-10-15 Thread AniNair
Hi, I am trying to follow http://www.djangoproject.com/documentation/i18n/ On trying to run the command make-messages.py -l de, I get the following error. processing language de errors happened while running xgettext on __init__.py 'xgettext' is not recognized as an internal or

Re: TinyMCE in admin

2007-10-11 Thread AniNair
I am trying to have tinyMCE for flatpages... Should I be using a model for that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: TinyMCE in admin

2007-10-10 Thread AniNair
My admin url ishttp://localhost:8000/admin/flatpages/flatpage/1/ The url being requested is [11/Oct/2007 10:21:35] "GET /admin/flatpages/flatpage/1/media/js/ tiny_mce/tiny_m ce.js HTTP/1.1" 404 3644 [11/Oct/2007 10:21:35] "GET /admin/flatpages/flatpage/1/media/js/ tiny_mce/textar eas.js

TinyMCE in admin

2007-10-10 Thread AniNair
I am trying to follow the method in http://code.djangoproject.com/wiki/AddWYSIWYGEditor . I still can't get django find the files textareas.js and tiny_mce.js. it's returning 404. Please help. Thank you --~--~-~--~~~---~--~~ You received this message because

Re: Flatpages

2007-10-10 Thread AniNair
Thank alot for the reply. I tried that, then django won't return 404 error and tinymce won't work too. django returns [10/Oct/2007 18:04:44] "GET /admin/jsi18n/ HTTP/1.1" 200 803 Thats all. No ref to /media/js/tiny_mce/tiny_mce.js Any ideas?

Re: Plz, I am just new to Python...

2007-10-10 Thread AniNair
unzip the trunk file downloaded to libs/site-packages/ and try import django from idle. If it returns no errors, that's it == django is installed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Flatpages

2007-10-10 Thread AniNair
Hi, I am trying to add tinymce to flatpages in admin using change_from.html in admin/flatpages/flatpage. this is change_form.html {% extends "admin_copies/change_form.html" %} {% block extrahead %}{{ block.super }} {% endblock %} Django is returning error that [10/Oct/2007 17:09:40] "GET

Re: fixtures

2007-10-03 Thread AniNair
time: '00:00:00' I found it . Thank you. --~--~-~--~~~---~--~~ 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

fixtures

2007-10-03 Thread AniNair
Hi... My yaml file is - fields: {time: '0:00'} model: utils.Hour pk: 01 - fields: {time: '0:30'} model: utils.Hour pk: 02 - fields: {time: '1:00'} model: utils.Hour pk: 03 The model for this is from django.db import models class Hour(models.Model):

Re: fixtures (yaml)

2007-10-01 Thread AniNair
I just reinstalled everythin including python and django.. I still get the message local_setting.py not set , using default settings, and the invalid model identifier message. Can you suggest where I should look for the errors? Plz help.. Thank you.

Re: fixtures (yaml)

2007-10-01 Thread AniNair
Hi... Still trying to fix the fixtures... The yaml file is - fields: {d_name: 'Every day'} model: utils.Day pk: 1 - fields: {d_name: 'All open days'} model: utils.Day pk: 2 and my model is class Day(models.Model): name=models.CharField(max_length=20) class

Re: fixtures (yaml)

2007-09-30 Thread AniNair
Hi... Thanks alot for trying to help me out... It is a typing mistake made while posting the message. I did not make that mistake here. I get a localsettings.py not set, using default settings when I try to run the dev server, when don't have such a file in my project.Any idea what's wrong?..

Re: fixtures (yaml)

2007-09-28 Thread AniNair
Admin returns database error. So i cannot add anything. Usng dumpdata returns no values. only [ ] . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

fixtures (yaml)

2007-09-27 Thread AniNair
Hi.. I am trying to load some initial data using yaml. My model in utils is from django.db import models class Months(models.Model): id=models.CharField(primary_key=True, max_length=3) m_name=models.CharField(max_length=15) class Admin: pass My yaml file is - fields:

Re: TinyMCE in admin

2007-09-24 Thread AniNair
I installed TinyMCE as mentioned in http://www.dehora.net/journal/2006/05/using_tinymce_in_djangos_admin.html I am trying according to the doc http://code.djangoproject.com/wiki/AddWYSIWYGEditor#UsingTinyMCEwithflatpages Any ideas? --~--~-~--~~~---~--~~ You

TinyMCE in admin

2007-09-24 Thread AniNair
Hi... Can someone please tell me how to use TinyMce in admin for editing flat pages? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: flatpages

2007-09-24 Thread AniNair
I tried doing it without the url, it returns a 404 error. The doc says that Each time any Django application raises a 404 error, the middleware checks the flatpages database for the requested URL as a last resort. Yes I have added the middleware,

Re: flatpages

2007-09-23 Thread AniNair
Hi... Can you tell me then what should the url cof be like? It links the url to the function in the view mod. If there is no function in view then? I have to give the url i belive Thank you --~--~-~--~~~---~--~~ You received this message because you are

Re: media

2007-09-20 Thread AniNair
Thank you. It's working now... --~--~-~--~~~---~--~~ 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: media

2007-09-20 Thread AniNair
I tried that.. It's just for serving static files. I don't know why but i believed that it should've displayed the html page correctly at the first time itself. Where am I wrong? Plz help --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: media

2007-09-20 Thread AniNair
thanks alot... I wanted to serve an html page which has an image. For eg: there is a welcome page which asks the user to log in. It shows an image (a company logo)on top along with the form. This image will appear on top of all the pages. Is serving static files the solution? Just wanted to make

Re: media

2007-09-20 Thread AniNair
I am a beginner... needs help ... trying to do this like In my view i just return render_to_response('welcome.html',) And in the html page, I have an image This works fine and the image is displayed when I try to open it with explorer or any other browser but when I try to run localhost:8000,

Uploading files

2007-09-14 Thread AniNair
Hello, I am using Django 0.97 pre in winxp. database is mysql. Please forgive any errors or if I am not clear with some aspects as I am a beginner trying to learn django. I am trying to upload a file: an image. I am not worried about validation now. I want to know how to do this. I tried to do

Re: HELP needed POST and Python

2007-09-13 Thread AniNair
Hello, I wish to make an app that takes id (as integer ) from the user and displays details. I am using GET to take the value from the user to the view. Now I have the id in variable uid in a function disp_list(). def disp_list(request): uid = request.GET['id_user']

Re: HELP needed POST and Python

2007-09-13 Thread AniNair
It's working fine now. thank you --~--~-~--~~~---~--~~ 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: HELP needed POST and Python

2007-09-13 Thread AniNair
Hello, I wish to make an app that takes id (as integer ) from the user and displays details. I am using GET to take the value from the user to the view. Now I have the id in variable uid in a function disp_list(). def disp_list(request): uid = request.GET['id_user']

Re: HELP needed POST and Python

2007-09-12 Thread AniNair
Please help. Thanking you --~--~-~--~~~---~--~~ 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

HELP needed POST and Python

2007-09-12 Thread AniNair
Hi... I am trying to learn django and python, using django 0.97 ,pre with python 2.5.1. I am having a bit of a problem with 2 issues. 1. How to use POST? I mean I have a form that takes values. method=POST class Myform (forms.Form): u_email=forms.CharField(initial=ed_user.email)

Populating a form

2007-09-11 Thread AniNair
Hi... I am trying to learn python and django. Can someone please tell me how to populate some fields in a form? I want to have certain values present in CharField or Textfield . (Eg:For editing a profile: the data previously entered needs to be present in the resp fields...) Please help.

Re: FORMS help needed

2007-09-07 Thread AniNair
Thank you a lot. That was just what I wanted to know: about the url conf for get function. Thank you.. thank you... And is it similar in post? Once again, thank you a lot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: FORMS help needed

2007-09-07 Thread AniNair
Hi... Thanks alot for the reply, I am a bit confused with this since i have been trying to get an idea for the last few hours,. I went through the documentation, Can u/anyone tell me how my urlconf should be like? I hav a simple text box with a submit button. I want to know how to get that

FORMS help needed

2007-09-06 Thread AniNair
Hi.. I am using django 0.97 pre with python 2.5.1. I have been trying to learn this but i am having trouble with forms. What I want is to submit data in one page and do calculations with it and return the result in other page. I managed to do it using cgi, but can anyone tell me how to get

Import error in django

2007-09-05 Thread AniNair
Hi... I am using python 2.5.1 with django .97 pre. I am trying to have a page from the url config (r'^users/', include('dbp.users.views.show')), I have my view as from django.http import HttpResponse def show(request): return HttpResponse("some thing here.") on trying to access the page