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
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 ema
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 because
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 [E
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, s
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 subs
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',
'django.contrib.auth.middleware.Au
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 fr
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
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 LANGUAGES
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 to
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 sub
Hi Thejaswi Puthraya, I have subscribed to that group too but
seems from the recent posts(which should have been deleted the moment
they were posted.. ) that many are misusing it or nobody is attending
to that group. Thank you all the same.
--~--~-~--~~~---~--~-
Thank alot for the reply. Yes, I too thought that I just don't have
the file xgettext.py in my python lib, so added that. Still returning
the same error. (gave the path too in env variable as c:/python25/lib
and restarted the comp). Any ideas?
--~--~-~--~~~---~--~
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 exter
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 django-users@googlegroups.c
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 H
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 you
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?
--~--~-~--~~~---~--~
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" gro
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 /admi
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
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):
time=models.
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.
--~--~-~--~~~---
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 Admin
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?..
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 dja
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: {m_n
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 receiv
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 django-users@google
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,
'django.contrib.flatpages.middleware.FlatpageFallba
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 sub
Hi...
Can someone help me with flat pages? I tried exactly what they say
in the page http://www.djangoproject.com/documentation/flatpages/
I get the html template to render but the contents are missing. Plz
advice. Thank you
my template code is
{{ flatpage.title }}
Privacy
{{ flatpage.conte
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 [
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
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
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,
Hi...
HI, I am using django 0.97, pre with pyton 2.5.1. I am a beginner and
I need help. I would like to know about two things.
1. How can I have my html page display an image? I tried using but that image is not displayed. How can I do that?
2. How can I display some specific images using db ?(
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 th
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']
ed_user=getfrmdb(
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 to
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']
ed_user=getfrmdb(
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 [EMAIL
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)
u_add=form
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. Than
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 Gro
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 value
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 data
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 u
Hi...
This might be incredibly simple. BUT.. I am trying to learn python
and django and have been trying to do some form submission (entering a
data on one page and accessing it).. I cannot find a way to do that
using django... Can anyone suggest the way or some help docs in this
matter? The djan
50 matches
Mail list logo