Hi all,
I have built a model like this:
class UserProfile(models.Model):
address = models.CharField(max_length=60)
birthday = models.DateField()
user = models.ForeignKey(User)
I render the model by the ModelForm:
class UserProfileForm(ModelForm):
class Meta:
model = User
el make sure that the entries that are
> allowed to be blank are set up to allow that, eg:
>
> address = models.CharField(max_length=60, blank = True)
> birthday = models.DateField(blank = True, null = True)
>
> Hope that helps
>
> On Aug 4, 10:31 am, Steven Nien wrote:
>
Hi,
I have installed the django tagging either by the using the setup.py
or
copying the "tagging" directory.
But when I import tagging in the python shell it raised:
IDLE 2.6.2 No Subprocess
>>> import tagging
Traceback (most recent call last):
File "", line 1, in
import tagg
I want to implement i18n in the javascript,
but things just don't work
here is my file tree:
/home/myproject
/home/myproject/app
/home/static_media/test.js
test.js:
document.write(gettext('test_message_here'));
Following is my procedure:
1. cd /home/myproject/app
2. mkdir locale
3. django-ad
Hi,
Thanks everyone.
I found the solution.
The translation strings should be specified in
"djangojs.po" not "django.po".
On 4月5日, 下午11時12分, Vasil Vangelovski wrote:
> Can you be more precise about what part doesn't work? Did you include
> the javascript translation catalog in you HTML template
5 matches
Mail list logo