Re: Form theory - locking a field

2020-06-24 Thread Clive Bruton
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

Re: Form theory - locking a field

2020-06-24 Thread Chetan Ganji
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.

Form theory - locking a field

2020-06-24 Thread Clive Bruton
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

[Solved?] Re: string theory and web woes

2017-04-05 Thread Mike Dewhirst
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

string theory and web woes

2017-04-05 Thread Mike Dewhirst
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

Re: Graph theory ??

2015-06-02 Thread Rafael E. Ferrero
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

Re: Graph theory ??

2015-06-02 Thread Erik Cederstrand
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

Graph theory ??

2015-06-02 Thread Rafael E. Ferrero
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

Theory

2011-04-09 Thread yangmin.li
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

Re: Model Theory 101 - Video Sharing App

2009-11-13 Thread Preston Holmes
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

Re: Model Theory 101 - Video Sharing App

2009-11-12 Thread Fred Chevitarese
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

Re: Model Theory 101 - Video Sharing App

2009-08-28 Thread thornomad
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,

Re: Model Theory 101 - Video Sharing App

2009-08-27 Thread Bill Freeman
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

Model Theory 101 - Video Sharing App

2009-08-26 Thread thornomad
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

Re: Theory: Models/Apps

2009-08-14 Thread Peter Herndon
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

Re: Theory: Models/Apps

2009-08-14 Thread Vadivel Kumar
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

Re: Theory: Models/Apps

2009-08-14 Thread TiNo
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

Re: Theory: Models/Apps

2009-08-14 Thread Jani Tiainen
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

Theory: Models/Apps

2009-08-13 Thread Vadivel Kumar
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

Re: Theory - where & how to handle common functions & views

2009-05-18 Thread TiNo
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

Re: Theory - where & how to handle common functions & views

2009-05-18 Thread zayatzz
> 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

Re: Theory - where & how to handle common functions & views

2009-05-18 Thread TiNo
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

Re: Theory - where & how to handle common functions & views

2009-05-18 Thread zayatzz
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

Theory - where & how to handle common functions & views

2009-05-16 Thread zayatzz
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

theory on using single project or multiple projects per site

2008-06-04 Thread Aljosa Mohorovic
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

Re: apache/mod_python config theory

2008-02-25 Thread Graham Dumpleton
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

Re: apache/mod_python config theory

2008-02-25 Thread Aljosa Mohorovic
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

apache/mod_python config theory

2008-02-25 Thread Aljosa Mohorovic
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