Still fuzzy to me. :) Alas... thanks for your help anyway!
I did end up using a different approach and have been successful (so
far) with it. I've put all my widgets under the same "main" app and
used block tags instead. That seems to be working out well for my
purposes. It still bugs me that
in django-tagging, i found:
class Tag(models.Model):
"""
A basic tag.
"""
name = models.CharField(max_length=50, unique=True, db_index=True,
validator_list=[isTag])
objects = TagManager()
content from validator.py:
def isTag(field_data, all_data):
"""
Validates that
hi atendo -
i think you may have some misunderstandings about what template context
is and what it's doing here.
maybe another look at this page:
http://www.djangoproject.com/documentation/templates_python/#basics
will help clear this up for you.
best,
jake
Atendo wrote:
> I think I see what
Sweet! Thanks!
On Sep 7, 9:45 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 9/7/07, Drasty <[EMAIL PROTECTED]> wrote:
>
> > Unless there's some way to override this without actually tweaking the
> > source code?
>
> http://www.djangoproject.com/documentation/db-api/#raw-saves
>
> --
> "Bure
On 9/7/07, Drasty <[EMAIL PROTECTED]> wrote:
> Unless there's some way to override this without actually tweaking the
> source code?
http://www.djangoproject.com/documentation/db-api/#raw-saves
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--
Well. I should've just looked at the code before asking! submit_date
has auto_now_add=True. Looks like I'll be adding comments outside the
Admin!
Unless there's some way to override this without actually tweaking the
source code?
On Sep 7, 9:26 pm, Drasty <[EMAIL PROTECTED]> wrote:
> I'm in the
I'm in the process of "re-creating" a series of blog posts & comments
in a new Django project. I can't seem to be able to adjust the "Date/
time submitted" field in the Admin interface. Is this a bug, can't you
do this, or is there a specific technique to use?
--~--~-~--~~---
i used this:
def isBlank(field,all_data):
if field_data is None:
raise ValidattionError(u'Cannot be Blank.')
it not work for me.
should i use if field_data is Blank?
do someone know how to raise a error when the fields is blank? thx
--~--~-~--~~~
I think I see what you are getting at. In my views.py, I was able to
define my context which is why it worked when I initially tried
mapping the app to the URL. But in the template tag, the context is
not defined. Thing is, how do you define the context in the template
tag?
--~--~-~--
On 9/7/07, Griffin Caprio <[EMAIL PROTECTED]> wrote:
> This may have been answered already, but I couldn't find it.
Which is strange, because this thread comes up if you go to the Google
Groups page and search for "djangobook status":
http://groups.google.com/group/django-users/browse_frm/thread
Hello. I have:
def save_profile(request):
if request.user.is_authenticated():
if request.method == 'POST':
try:
profile_obj =
Profile.objects.get(user__exact=request.user)
ProfileForm
Hi,
> widget=forms.Select(attrs={'class': 'vSelectField'}))
This let me think you use a javascript validator. Are you sure the
message comes from the server ?
You should try form.is_valid() or whatever.
> just printed "form.is_bound" in my view: the result is "True",
> although I didn´t invok
>> These changes are in preparation of some exciting news, but I'll leave
>> y'all in suspense until next week.
>
> You're rewriting Django in Java! Finally, enterprise capability!
I thought it was one of the following:
- adding "2.0" to the official name to make it a "Web 2.0"
buzzword-complia
Adsense Absolute Information :AAi Groups
http://groups.google.com/group/aaigroup
For your vision in google adsense. How to make money with adsense. How
to create web to create page impression. How to earning money easy.
For article, technique, thinking in adsense, seo, free downlaod, free
stuff.
I've taken the time to upload both our SphinxSearch layer, and our
MediaWiki markup util to Google code today. For more info see my blog
post: http://www.davidcramer.net/code/54/mediawiki-markup-and-sphinxsearch-...
I haven't used Google code before, so if theres any problems just let
me know.
E
> I'm setting up a new server to host my Django projects and they don't
> each use the same version of Django (0.95, 0.96 and svn). Is their a
> way to configure each virtualhost to use their own version of Django ?
I've done something like this whereby I had several of the
development branches
> These changes are in preparation of some exciting news, but I'll leave
> y'all in suspense until next week.
You're rewriting Django in Java! Finally, enterprise capability!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
FS> I'm setting up a new server to host my Django projects and they don't
FS> each use the same version of Django (0.95, 0.96 and svn). Is their a
FS> way to configure each virtualhost to use their own version of Django ?
Put each version in it's own directory (say, django-0.95 and django-0.9
On 9/7/07, ToddG <[EMAIL PROTECTED]> wrote:
> You're rewriting Django in Java! Finally, enterprise capability!
Dammit, that news wasn't supposed to leak! Who told you!?
Jacob
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Hello,
I'm setting up a new server to host my Django projects and they don't
each use the same version of Django (0.95, 0.96 and svn). Is their a
way to configure each virtualhost to use their own version of Django ?
Thanks
--
Fabien SCHWOB
--~--~-~--~~~---~--~
hi atendo,
Atendo wrote:
> If I do that, I get this error:
>
>
> KeyError at /
> 'link'
> Request Method: GET
> Request URL: http://localhost:8080/
> Exception Type: KeyError
> Exception Value: 'link'
> --
On 9/7/07, Griffin Caprio <[EMAIL PROTECTED]> wrote:
> This may have been answered already, but I couldn't find it. What's
> the status of www.djangobook.com? The last update is dated Jan 24
> 2007 and two chapters are still TBA. Has the book been abandoned ?
No, we're finishing up the book fo
Howdy folks --
A quick announcement:
I'm going to be making some changes to djangoproject.com over the next
week or so.
The first of those changes are done and don't appear to have broken
anything, but if you notice anything busted, please send me an email
([EMAIL PROTECTED]).
These changes ar
If I do that, I get this error:
KeyError at /
'link'
Request Method: GET
Request URL:http://localhost:8080/
Exception Type: KeyError
Exception Value:'link'
--~--~---
On Fri, Sep 07, 2007 at 03:24:46PM -0500, jake elliott wrote:
>
> Oleg Korsak wrote:
> >> Sure - use the 'fields' option to specify the subset of model fields
> >> you want to use on the form.
> >>
> > form_for_instance() got an unexpected keyword argument 'fields'
> >
>
> this argument to fo
How to make project level tags?
I've already read post
http://groups.google.com/group/django-users/browse_thread/thread/49e9669c64e353b2/
and tried what Ivan Sagalaev suggested but I've got
TemplateSyntaxError - "common_tags' is not a valid tag library.
What could be the problem?
There is Tick
Oleg Korsak wrote:
>> Sure - use the 'fields' option to specify the subset of model fields
>> you want to use on the form.
>>
> form_for_instance() got an unexpected keyword argument 'fields'
>
this argument to form_for_instance() and form_for_model() is only
available in the SVN version of dj
hi atendo,
Atendo wrote:
> And then in the homepage index.html I've got this:
>
> {% load industry_widget %}
>
sorry if i miss the mark here but are you actually invoking the
templatetag you've load
Russell Keith-Magee пишет:
> On 9/7/07, Oleg Korsak <[EMAIL PROTECTED]> wrote:
>
>> I just want to create form_for_model and/or form_for_instance and then
>> delete one field (user). Is it possible or do I need to manually create my
>> own form?
>
> Sure - use the 'fields' option to specify th
I'm quite new to Python and Django so please bear with me as I'm more
of an HTML coder/designer by trade. I'm trying to do something that
to me seems simple but apparently isn't.
Basically, I have 2 separate "apps" which are really just widgets for
a homepage that contain a link and text that I
This may have been answered already, but I couldn't find it. What's
the status of www.djangobook.com? The last update is dated Jan 24
2007 and two chapters are still TBA. Has the book been abandoned ?
There is a Django book coming from APress (http://www.amazon.com/
Definitive-Guide-Djang
This issue has been fixed.
On Sep 6, 11:40 am, Subrat <[EMAIL PROTECTED]> wrote:
> I am currently building an app in windows machine which was already
> built in unix machine. While running 'syncdb' command, I am getting
> error 'unsupported locale setting'.
>
> >>> import locale
> >>> locale.set
Hello,
I'm responding to your post to the django-users list. I'll be available
for some contract work in the next week or so. I've attached my resume
in PDF format.
Thanks for your time.
Regards,
Kyle Ambroff <[EMAIL PROTECTED]>
Freelance Software Developer
Phone: +1 530.306.5134
Jabber/GTalk:
> I hope I am not inviting a quasi-religious war
> on this issue, but I am wonder if people could provide some insight on
> when or why I should do this sort of thing within the template (via
> template tag or not) or if I should continue doing that within the
> view, which not only currently make
just printed "form.is_bound" in my view: the result is "True",
although I didn´t invoke the Form with any data.
btw: I´m using the current SVN-version and did an update last week
(before the update it worked).
any help with this?
thanks,
patrick
On 7 Sep., 16:53, patrickk <[EMAIL PROTECTED]> w
Templates just represents data to the client, all calculations must by
in views or model methods
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-user
Visit my city in http://islam-town.miniville.fr
It's a good game, try it by yourself :)
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-user
I have been looking at many of the posts in here in recent weeks and
wanted to ask any djangurus out there a question to clear up some
confusion I have. Should I do data manipulation in my views or in
templates. After reading much of the django documentation and working
with the framework for th
>
> please have a method to add one user to a specific group?
Try this:
grp = Group.objects.get(name='registered')
us.groups.add(grp)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post t
I´m creating a dynamic newform and when going to the page, I´m getting
an error-message "This Field is required", although required ist set
to False when building the Form.
Here´s part of the code:
field_list = []
date = forms.ChoiceField(label='Wann', required=False,
choices=date_choice
On Sep 7, 9:55 am, Ana <[EMAIL PROTECTED]> wrote:
> Hi,
> I'd like to have "last modified by" and "owner" fields in my
> application. I'd like to set fields value automatically, and I want
> those fields to be hidden. Is there any way I can do that?
Yes.
Here's one way to do it:
Add those t
On Sep 5, 9:28 pm, wolfds <[EMAIL PROTECTED]> wrote:
> Can we see the model definition for Reward?
Just got back to this and realised I was being a dummy. Whilst I had
changed all the def's to unicode, I'd still left some str() functions
on the return. Changed these to smart_unicode() and the p
Hi,
I'd like to have "last modified by" and "owner" fields in my
application. I'd like to set fields value automatically, and I want
those fields to be hidden. Is there any way I can do that?
Thanks in advance,
Ana
--~--~-~--~~~---~--~~
You received this message
On 07-Sep-07, at 4:43 PM, Kenneth Gonsalves wrote:
>
> checkbox itemname
>
> I tried to format this in the view itself - but didnt get a link -
> just got the literal string above. Any ideas?
solved - just broke up the form and made the template by hand
--
regards
kg
http://lawgon.livejou
Overview:
Currently looking for a python/django developer for contract work on a
web API and web-based account management system.
Project Details:
The project will consist of two main parts: a web API responsible for
account registration and web interface responsible for managing
account data. Th
The mod_python documentation will help you:
http://www.modpython.org/live/current/doc-html/installation.html
And there is a very helpful mod_python mailing list you can subscribe
to and ask any questions you may have:
http://modpython.org/pipermail/mod_python/
Good luck!
--Jon
On 9/7/07, Dam
hi guys
my question is:
in my application i have a views with a method to insert a new user.
the form sebd the informations and i register the user with:
us=User.objects.create_user(new_data['username'],
new_data['email'],
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
Hai ,
I,read the django documentation , am very interest to learn django. so
iwant to confiugure Apache (mod_python), But i don't know how to
configure. now am working in php mysql.using XAMPP (http://
www.apachefriends.org/en/xampp-windows.html)
(PHP + Mysql + Apache) as a server installed in my
hi,
I have a multiplechoice field using multiplecheckbox widget. There is
a form which has various action buttons for the selected items. In
addition, I need to add a link to each of the selected items -
something like 'details here ...' and clicking the link would take
them to the detail
Your username and password didn't match. Please try again.
{'username': ["Your Web browser doesn't appear to have cookies
enabled. Cookies are required for logging in."]}
-->This is the error message when I login,I had seen the
Django's document,then guess it's
SESSION_COOKIE_DOMAIN probl
Brian Morton wrote:
> Also, do you have django.core.context_processors.request in your
> context_processors? It looks like you're trying to overwrite a dict
> element that already exists.
# settings.py
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.auth',
'django.c
Hi!
Everything after the '?' in the url is post using the GET array. The
regular expression of yor url config ignores these parameters and
should simply be (r'^showuser/$)', show) to match on the url sent by
the form.
To get the GET-data sent by the form, use something like this:
def show(reque
I've fixed the problem
I had to pull /admin/base.html into my templates folder and add this line to
the head
IE6 browsers that have their default character set set to Latin1 can now add
utf8 characters, they could not before.
This line should be in the base.html within django source code fella
On 6 Sep 2007, at 9:21 pm, RajeshD wrote:
> You can always turn the queryset into a list and cache it with
> Django's caching framework. However, that doesn't solve the usability
> issue of a huge drop-down list. A few options:
>
> 1. Do what the Django raw_id_admin interface does (http://
> www
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
Indeed, the problem was that both of the tables were defined in
database. It has been solved by deleting of Dataset.
Thank!
On Sep 6, 4:37 pm, Nis Jørgensen <[EMAIL PROTECTED]> wrote:
> Nader skrev:
>
> > I have used 'inspectdb' to produce the model, because I had a dump
> > mysql file. In Meta
I have a list of items and I define some way to rank them:
class Item:
name = models.CharField()
project = models.ManyToManyField(Project)
def score(year):
... some intensive computation + queries ...
return result
I'd like to display the items together with their sc
Yes, sorry. Now I see.
{% blocktrans with value|filter as myvar %}
This will have {{ myvar }} inside.
{% endblocktrans %}
That makes sense, definitly.
Thanks a lot!
Katja
Malcolm Tredinnick schrieb:
> On Fri, 2007-09-07 at 00:07 -0700, ksuess wrote:
>> http://code.djangoproject.com/ticket/5073
>
Has anyone experienced any problems with getting IE browsers to
recognize that they should be using the default_charset when entering
data into forms in the admin site?
I'm having a hell of a time of it, all unicode, new trunk, front end
running of lighttpd, all set to utf8, database utf8, no pro
On Fri, 2007-09-07 at 00:07 -0700, ksuess wrote:
> http://code.djangoproject.com/ticket/5073
> Isn't it a typical use case that attributes of variables are used in
> templates?
> If this is not supported a view has to call a template like this
> return render_to_response('polls/detail.html', {'obj
http://code.djangoproject.com/ticket/5073
Isn't it a typical use case that attributes of variables are used in
templates?
If this is not supported a view has to call a template like this
return render_to_response('polls/detail.html', {'object': p,
'question': p.question,})
which is not
62 matches
Mail list logo