Context:
In an app called "exams", I have a model named Capture which has a unique
CharField named "uuid". I was trying to convert this field to a UUIDField
and I was getting this error:
django.db.utils.ProgrammingError: operator class "varchar_pattern_ops" does
not accept data type uuid
Lookin
Thanks for the explanation!
To get it working, I will replace my model converters with basic converters
and do corresponding lookups in the views.
On Sunday, 20 June 2021 at 16:16:58 UTC-7 Andrew Godwin wrote:
> Ah yes, that's because the URL parsing/conversion all happens in the main
> (async
Hi Michal,
yes that was the error.
Thank you so much.
Strange that no error was shown.
Am Di., 9. Okt. 2018 um 14:39 Uhr schrieb Michal Petrucha <
michal.petru...@konk.org>:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA512
>
> Hi,
>
> On Tue, Oct 09, 2018 at 02:2
I replaced code with {{ form }} but nothing changed.?
Am Di., 9. Okt. 2018 um 14:19 Uhr schrieb Joel :
> You passed form to template, so you have to refer to that.
>
> On Tue, 9 Oct, 2018, 5:33 PM konstantin Heinrich, <
> kheinrichdja...@gmail.com> wrote:
>
>> I de
I declared in views.py variable called frm so I have to use it
in my html file to have access to that file.?
Am Di., 9. Okt. 2018 um 13:54 Uhr schrieb Joel :
> instead of {{ frm }}, try:
>
> {{ form }}
>
> I think you'll understand what you did wrong.
>
> On Tue, 9 Oct, 2018, 5:07 PM , wrote
equest.META['wsgi.input'] data, I will not be able
to pass the value to CsrfViewMiddleware via POST because it is read
only.
So, my question is, how this is supposed to work? What am I missing?
Thanks.
Konstantin.
--
You received this message because you are subscribed to the Google
as the article says, their sessions are independent of these used by
the web server. the cookies are not shared between office sessions and
web sessions. I think django has nothing to do with it.
On Aug 16, 4:04 am, Michel30 wrote:
> Hmm the workaround MS suggests actually works, so I have a
> wo
ver, where would your visitors get there scripts? they
are not on their machines in "d:/django-1.3...". basically, it is
unclear to me what you are trying to achieve.
konstantin
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
I can see the markup that you published in your original post. :) what
does the browser show when you look at the page source?
konstantin
On Aug 16, 12:04 am, Adam Zedan wrote:
> Its at the top most post..
> have a look
> athttp://groups.google.com/group/django-users/browse_thread/th
what is the source code for the blank page?
On Aug 15, 8:50 pm, Adam Zedan wrote:
> Hi my html works properly when i double click it.
>
> The code is
>
>
>
>
>
> Demo
> href="file:///D:/Django-1.3/django/bin/SlickGrid/slick.grid.css"
> type="text/css" media="scree
I would just write a template tag that outputs the whole JS function.
templates are too limiting in what you can use in {{}} brackets.
konstantin
On Aug 15, 8:38 pm, Landy Chapman wrote:
> You may be right. I am out of my element (pardon the pun). However,
> assuming your "conten
hello,
as a result of this you will have a series of 'data[i] = ...'
assignments in your output. where 'i' would be undefined.
konstantin
On Aug 15, 7:45 pm, Adam Zedan wrote:
> Hi i am getting a problem with my for loop which i used in my template.Could
> you kindly
hello,
your question indicates that you have a limitedknowledge of django
templates and template tags. python code is ot supported in templates,
so your string.replace won't work.
to change the order:
https://docs.djangoproject.com/en/dev/ref/models/querysets/#order-by
konstantin
On Aug
hello,
you can just add a context variable 'submitted' to your context in
your view's get_context_data
konstantin
On Aug 15, 4:06 am, doniyor wrote:
> Hi There,
>
> I am heading well now, but have still some confusing things here..
>
> this is my html file,
hon's string representation of the
QueryDict object instead of the expected key0=value0&key1=value1&...
string.
If, instead of QueryDict, I store the urlencoded string in the
session, everything works of course:
request.session['query_string'] = request.GET.urlencode()
a bu
On May 26, 9:28 pm, Steve Howell wrote:
>
> From the docs you might want to take advantage of the name= parameter
> in your URLS setup and do something like {% url 'add_media_action'
> %}. Not sure about the quoting, as the docs are vague about quoting
> literals.
>
> '''
> New in Django 1.0: Pl
On May 20, 2:02 pm, Konstantin S wrote:
> Hello!
>
> I have a very strange problem and really don't know where to start in
> hunting it down. My app uses django-registration, all works fine but
> if I been logged in restart django dev. server I immediately get
> Template
On 20 май, 22:48, Steve Howell wrote:
> On May 20, 10:49 am, Konstantin S wrote:
>
>
>
> > On 20 май, 19:43, Steve Howell wrote:
>
> > > To elaborate on Karen's suggestion, one way to see which URLs are
> > > among the candidates for resolving the
On 20 май, 19:43, Steve Howell wrote:
>
> To elaborate on Karen's suggestion, one way to see which URLs are
> among the candidates for resolving the reverse match is to
> deliberately hit a bad URL like the following:
>
> http://localhost:8000/something_that_does_not_match_urls
>
> If you have ap
On 20 май, 17:41, Karen Tracey wrote:
> There's got to be some difference between your server
> environment and the shell environment you are using that is causing that.
>
All works fine until I restart django dev. http server. If at that
moment I was logged in into my site then next hit after r
On 20 май, 14:02, Konstantin S wrote:
> Hello!
>
> I have a very strange problem and really don't know where to start in
> hunting it down. My app uses django-registration, all works fine but
> if I been logged in restart django dev. server I immediately get
> TemplateSyn
Hello!
I have a very strange problem and really don't know where to start in
hunting it down. My app uses django-registration, all works fine but
if I been logged in restart django dev. server I immediately get
TemplateSyntaxError:
Caught an exception while rendering: Reverse for
'myapp.add_medi
Hello
First of all sorry if this question was asked and answered many time
before. I want to know what are the best practices you use for
deployment django sites in production. I mean how do you separate
setting.py into development and production part and how do use choose
which one to use witho
Hello!
I am planning to deploy django based site on a limited VPS and want to
know which database is more suitable for this ? If I've had a 'normal'
hardware I'd vote for the PostgreSQL but maybe in case of limited
resources MySQL would be a better choice. What do you think ?
--~--~-~--~
On Apr 22, 3:31 pm, zayatzz wrote:
> This css should do it:
>
> ul {list-style-image:none;list-style-position:outside;list-style-
> type:none; float:left}
> ul li {width:50%;display:block;float:left}
>
> What this does, is that it gives every list element 50% of available
> width (if you want 3 c
On Apr 22, 1:51 pm, Tom Evans wrote:
> On Tue, 2009-04-21 at 21:20 +0400, Konstantin S wrote:
> > Hello!
>
> > In my model I have dynamically generated checkbox fields that look like
> > this:
>
> > boxes = forms.ModelMultipleChoiceField(query
On Apr 22, 11:33 am, Konstantin S wrote:
> I can't iterate through individual and mark them in some way or
> split this single into two lists.
Just to be clear: I can't do it because it's generated as a single not
iterable entity.
--~--~-~--~~
On Apr 22, 9:29 am, zayatzz wrote:
> I wish i could see the html output of your program. But you have to
> use either divs or ul&li elemnts to wrap that list and make it look
> nice in template.
>
> But i think the problem is that your widget output is just a list of
> checkboxes, that you cant i
Hello!
In my model I have dynamically generated checkbox fields that look like this:
boxes = forms.ModelMultipleChoiceField(queryset=Box.objects.all(),
widget=forms.CheckboxSelectMultiple)
The problem is that in the web-interface I've got a long flat list of
checkboxes and it doesn't look very
Hello!
I noticed that there are two paginations 'engines' available for
django. The first one is in django distribution itself
(http://docs.djangoproject.com/en/1.0/topics/pagination/), and the
second one I found at code.google.com. (Url is
http://code.google.com/p/django-pagination/). Which one
Hello!
I know this a very stupid question but nevertheless how can I get
request.user object in forms.py file ? I am trying to do something
like:
class ItemGetForm(forms.Form):
box = forms.ModelMultipleChoiceField(
queryset=Box.objects.filter(owner=request.user),
widget=form
On Mar 24, 11:13 pm, Alex Gaynor wrote:
> On Tue, Mar 24, 2009 at 4:05 PM, Konstantin S wrote:
>
> > Hello!
>
> > I have two unrelated models that have one common field.
>
> > class Media(models.Model):
> > title = models.CharField(max_length=500)
>
Hello!
I have two unrelated models that have one common field.
class Media(models.Model):
title = models.CharField(max_length=500)
...
class Link(models.Model):
title = models.CharField(max_length=500)
...
Now I want to select those objects from the Media model that do not
exis
Hello!
I need to postprocess some data in my models and the most natural way
of doing this would be to run periodically standalone script. But on
the other hand I want to use framework ORM just because it would much
more handy than raw sql. What should I import to plug in django in
standalone scr
Hello!
I am trying to load really huge dataset (contains millions of records)
into database through fixtures and it seems that django loads entire
data into memory before commiting it into db so python process dies
out of memory. Am I right that the only possible solution in my case
is not to use
On Feb 10, 5:51 pm, Sergey Koval wrote:
> On Tue, Feb 10, 2009 at 1:21 PM, Konstantin S wrote:
>
> > Hello
>
> > I have a form created from forms.ModelForm and in my model one of the
> > fields is m2m field. Now when form is displayed for that m2m filed I'd
>
Hello
I have a form created from forms.ModelForm and in my model one of the
fields is m2m field. Now when form is displayed for that m2m filed I'd
like to have something that looks like checkbox where user can select
several alternatives. I know that I can use widgets here and there are
some that
On Feb 1, 2:23 pm, Russell Keith-Magee wrote:
> Yes. Read up on how to use the save() method in the modelforms docs.
>
> http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#the-sav...
>
> In particular, the second example in that section should answer your question.
>
Thanks, Russ, it
Hello again :)
Am I right that __icontains relays on DB backend entirely to perform
case insensitive search ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email t
Hello!
I couldn't add m2m relations in my form if I use delayed commit, i.e.
form.save(commit = False) and form.save() later on. See code at
http://dpaste.com/hold/115253/. Is there some common pattern to
workaround such issues ?
--~--~-~--~~~---~--~~
You received
On Jan 30, 6:21 pm, Karen Tracey wrote:
> > Maybe you give me one more tip: how to display error message of
> > previous wrong input and show new empty form at the same time ?
>
> Are you sure you want to do that? As a user I'd find it very annoying for a
> web form to be re-displayed with error
On Jan 30, 5:18 pm, Daniel Roseman
wrote:>
> Not certain I fully understand your flow here, but surely if in line
> 10 you just did:
> form = MediaGetForm()
> that would solve your problem? You're passing in the POST dictionary
> each time - if you want a blank form, simply don't pass
On Jan 30, 5:18 pm, Daniel Roseman
wrote:
> Not certain I fully understand your flow here, but surely if in line
> 10 you just did:
> form = MediaGetForm()
> that would solve your problem? You're passing in the POST dictionary
> each time - if you want a blank form, simply don't pass
Hello!
I believe this is a VERY basic question, that already covered
somewhere in the excellent django docs, but I couldn't find an answer
and therefor asking for some help.
In my view I have this request handler: http://dpaste.com/114650/. The
problem is that after wrong data input (i.e. no data
On Jan 19, 10:29 am, krylatij wrote:
> Sphinx
> Here
> sampleshttp://softwaremaniacs.org/blog/2007/11/04/sphinx-search-in-cicero/
> (but in Russian)
Thank you very much! I'll have a look
(Being native Russian I'll have no problem reading this text :) )
--~--~-~--~~~---
Hello
In my project I'll need to implement search facility through user's
private pages (so google custom search is not available). What is the
best option for this kind of task in django ? I'd like to use postgres
(though it's not a strict requirement, mysql based solution will be
fine) with tse
Hello!
First of all I want to apologize for maybe very basic question, but I
newbie in django and web coming from c/c++ world.
I have two models:
class Box(models.Model):
description = models.CharField(max_length=250)
id = models.IntegerField(primary_key=True)
def __unicode__(self)
up!
nobody used i18n things?
On 3 май, 16:05, Konstantin Pavlovsky <[EMAIL PROTECTED]>
wrote:
> hi all
>
> I am working with administrative interface. and want to make it
> "speak" russian
> if it possible to translate names of Classes using i18n things?
>
hi all
I am working with administrative interface. and want to make it
"speak" russian
if it possible to translate names of Classes using i18n things?
ive translated field lables with lazy gettext
[code]
manager = models.ForeignKey(User,verbose_name=_("Manager"))
ordertext = models.Text
On 9/4/06, Nate Straz <[EMAIL PROTECTED]> wrote:
>
> On Sun, Sep 03, 2006 at 11:26:22PM +0100, Konstantin Shaposhnikov wrote:
> > On 9/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > My problem is that my older/newer navigation that uses
> > >
Hi Nate,
You can pass additional filter arguments to get_next_by_pub_date
method like this:
entry.get_next_by_pub_date(is_published = True)
Regards,
Konstantin
On 9/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> In my blog I take advantage of get_next_by_FIELD (pub_
On 5/29/06, Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]> wrote:
> Hi Konstantin,
>
> On 5/29/06, Konstantin Shaposhnikov <[EMAIL PROTECTED]> wrote:
> > I suggest you to not use auto_now_add at all if you are using current
> > (post magic-removal) version
rent time before calling models.Model.save()
I am not really sure, but I seen somewhere that auto_now and
auto_now_add are going to become deprecated and it makes sense taking
into account that it is possible to achieve given functionlaity in
other way and code that supports auto_now[_add] is full of
-removal) of Django.
Regards,
Konstantin
On 5/29/06, Patrick <[EMAIL PROTECTED]> wrote:
>
> Another is:
> http://socialistsoftware.com/ and here you can find the source
> http://source.socialistsoftware.com/sssource/
>
> ciao ciao
> Patrick
> >
> > Possibly the
page on
> > the right
> > hand side called (view on site) and when i clicked on it it
> > gave meing that is very starange
> > error says page not found what should i do to make this button
> > work
>
55 matches
Mail list logo