On 24 Jun 2020, at 23:03, Chetan Ganji wrote:
Try this one
https://docs.djangoproject.com/en/3.0/ref/forms/fields/#disabled
Ok, well that's a little help, because I can disable the input:
status = forms.ChoiceField(choices=Profile.status_choices,
widget=forms.RadioSelect(attrs={'disab
Try this one
https://docs.djangoproject.com/en/3.0/ref/forms/fields/#disabled
On Wed, Jun 24, 2020, 8:06 PM Clive Bruton wrote:
> I have a form in which, after filing, I would like one field to be
> locked for editing, the forms.py looks like this:
>
> **
>
> class ProfileForm(forms.
I have a form in which, after filing, I would like one field to be
locked for editing, the forms.py looks like this:
**
class ProfileForm(forms.ModelForm):
status = forms.ChoiceField(choices=Profile.status_choices,
widget=forms.RadioSelect)
class Meta:
model = P
On 6/04/2017 2:44 PM, Mike Dewhirst wrote:
I'm collecting strings from web page sources and storing extracted
data in a TextField. If it is done again, it gets added into the
TextField.
My code goes something like ...
If data not in textfield:
insert_data(data, textfield)
Got it working
I'm collecting strings from web page sources and storing extracted data
in a TextField. If it is done again, it gets added into the TextField.
My code goes something like ...
If data not in textfield:
insert_data(data, textfield)
... but no matter how I wrinkle my brow and try harder and h
Thanks Erik, Defining custom actions its what i try to do!! because, the
user can add some custom type of Action and he need to specify what to do
with.
With this, the user can perform his own graph and rules to control the
vertex.
For example, a Contact of the business can be a Provider or a Cus
Hi Rafael,
Assuming you have a static and limited set of actions, and they can only be
defined programmatically, I would do something like this:
class Vertex(models.Model):
some_field = models.CharField()
class Edge(models.Model):
from = models.ForeignKey(Vertex, related_name='outgoi
Hello everyone,
I think to do an app where i would save a directed graph.
The vertex and edges there must be dinamics.
The vertex can represent some Tag or Category... or something.
The edge who links the vertex can be N between two vertex and represent
some event or action... and let me explain h
Hi
I am reading the source code of Class Based Generic View with the
version Djang 1.3
In django/views/generic/base.py, I can understand most code of the
Class "View",but not following comments :
can some one give some detailed explain, an example maybe helpful.
thanks
# and possible attribute
On Aug 26, 4:17 pm, thornomad wrote:
>
> Caveats: I would like to keep the original "synced" data in its own
> field and the "approved" data (as edited) in separate field. I
> imagine that the data first gets brought into the "edit" field, admin
> may make changes and save, but the "originatin
Hello ...
I've made one app as you like...
http://code.google.com/p/django-youtube-syncronizer/
;)
http://chevitarese.wordpress.com
Fred Chevitarese - GNU/Linux
2009/8/28 thornomad
>
> Hi thanks for the response - I had looked at oembed, but it didn't
> seem like it would grab the title, des
Hi thanks for the response - I had looked at oembed, but it didn't
seem like it would grab the title, description, play count, etc ...
which was the information I was going for. There is also a markdown
plugin, that seems to work similiar. If I went the route of just
posting video (which I may,
Look at django-oembed. A CharField will serve for every (supported)
provider.
On Wed, Aug 26, 2009 at 8:17 PM, thornomad wrote:
>
> Hi - need some suggestions.
>
> I am trying to put together an app that allows users to submit links
> to videos at popular video sharing sites (e.g., youtube, vim
Hi - need some suggestions.
I am trying to put together an app that allows users to submit links
to videos at popular video sharing sites (e.g., youtube, vimeo, etc)
-- the links get submitted, data about the video (title, description,
play count, etc) is collected from the respective site and po
On 08/14/2009 12:36 AM, Vadivel Kumar wrote:
> I have recently started on Django .. going awesome .. I know, this
> question might have popped out several times before, but since Google
> does not yield me any results, I am writing this post. However, do
> point out resources if any in this mai
Thanks Guys ...
On Fri, Aug 14, 2009 at 1:45 PM, TiNo wrote:
>
>
> On Fri, Aug 14, 2009 at 09:12, Jani Tiainen wrote:
>
>>
>> Vadivel Kumar kirjoitti:
>> > I have recently started on Django .. going awesome .. I know, this
>> > question might have popped out several times before, but since Goog
On Fri, Aug 14, 2009 at 09:12, Jani Tiainen wrote:
>
> Vadivel Kumar kirjoitti:
> > I have recently started on Django .. going awesome .. I know, this
> > question might have popped out several times before, but since Google
> > does not yield me any results, I am writing this post. However, do p
Vadivel Kumar kirjoitti:
> I have recently started on Django .. going awesome .. I know, this
> question might have popped out several times before, but since Google
> does not yield me any results, I am writing this post. However, do point
> out resources if any in this mailing list.
>
> 1. W
I have recently started on Django .. going awesome .. I know, this question
might have popped out several times before, but since Google does not yield
me any results, I am writing this post. However, do point out resources if
any in this mailing list.
1. What is the fundamental difference of APP
On Mon, May 18, 2009 at 4:06 PM, zayatzz wrote:
>
> > Where is not such a big deal. You could write a function in view that you
> > reuse multiple times (maybe start its name with an _ to show that it is
> not
> > a public function cq just a helper function), or you could put it into a
> > util.p
> Where is not such a big deal. You could write a function in view that you
> reuse multiple times (maybe start its name with an _ to show that it is not
> a public function cq just a helper function), or you could put it into a
> util.py file and import it in your views.py
>
> How totally depends
On Sat, May 16, 2009 at 10:59 AM, zayatzz wrote:
>
> Hello
>
> I have several views that pass same info into templates. If i want to
> change information that gets passed into template then i have to
> change several views to get system up to date and this is not good.
> Its common sense to repla
Since i did not get answer ill explain my problem bit more.
in first case (views). my current views work like that:
They take request data, read session info and generate content related
to that. I understand, that i could write function that takes request
as argument. But since it has to return
Hello
I have several views that pass same info into templates. If i want to
change information that gets passed into template then i have to
change several views to get system up to date and this is not good.
Its common sense to replace them with one function instead.
Where and how should i writ
h admin app configured, so should i leave it
under shop.example.com or should i integrate in admin.example.com
5. have anything related to project theory to share?
Aljosa
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&q
define in
> apache conf via PythonPath where to find django?
>
> apache conf below is example of a way that i would like to try to
> control django version but what happens if another site uses django?
> what kind of conflicts can i expect?
>
> please post any ideas, tips
this post is oriented towards high load sites, my question is not can
i configure it this way but what performance issues can i expect.
i'm actually asking will this kind of configuration work under high
load and what would you recommend.
--~--~-~--~~~---~--~~
You r
e of a way that i would like to try to
control django version but what happens if another site uses django?
what kind of conflicts can i expect?
please post any ideas, tips, tricks, problems, theory, anything
related to configuring mod_python for django apps.
SetHandler pyth
28 matches
Mail list logo